home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Popular Skins
Titanius
OMG!!!! Have you found a bug?? Read this!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ltfearme" data-source="post: 1095154" data-attributes="member: 52219"><p>Good points [USER=52265]@TheBatfink[/USER], I didn't look closely enough at your log. Yes I would expect the error to appear in the trakt log file and have that error logged before it.</p><p></p><p>Having a look at GUIWindow.LoadSkin() method in MediaPortal source shows there is some exception handling as well which writes out a stacktrace and shows that error:</p><p></p><p>[CODE]</p><p>// add thread check to log calls not running in main thread/GUI</p><p> String threadName = Thread.CurrentThread.Name;</p><p> if (threadName != "MPMain" && threadName != "Config Main")</p><p> {</p><p> Log.Error("LoadSkin: Running on wrong thread - StackTrace: '{0}'", Environment.StackTrace);</p><p> }</p><p>[/CODE]</p><p></p><p>Obviously MediaPortal does not like entering that method on another thread which indeed is what is happening when loading a dashboard in the background. I won't be changing that, what it probably should not have done is even get that far, I think from having a look at the MediaPortal code it should of returned from GUIWindowManager.GetWindow after getting the window from the dictionary (why it was not there might have something to do with it being cleared...race condition / timing related...who knows without debugging).</p><p></p><p>In retrospect it's probably a little overkill to have that while loop in trakt trying to get a reference to the facade (if the skin doesnt have the correct skinsettings it can get stuck for 100ms * 50 = 5 secs! So very important to have skin settings defined correctly. I might look at find a better way that using that loop, even when you do have it the facade defined in the window it might loop once or twice.</p><p></p><p>I'll presume you won't ever see this issue (or atleast very slim chance) with the controls defined in windows that the skin tells the Trakt plugin about so see how you go with that. I suspect Titan would have the same problem if users remove Trakt from BasicHome but SkinSettings is not updated.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1095154, member: 52219"] Good points [USER=52265]@TheBatfink[/USER], I didn't look closely enough at your log. Yes I would expect the error to appear in the trakt log file and have that error logged before it. Having a look at GUIWindow.LoadSkin() method in MediaPortal source shows there is some exception handling as well which writes out a stacktrace and shows that error: [CODE] // add thread check to log calls not running in main thread/GUI String threadName = Thread.CurrentThread.Name; if (threadName != "MPMain" && threadName != "Config Main") { Log.Error("LoadSkin: Running on wrong thread - StackTrace: '{0}'", Environment.StackTrace); } [/CODE] Obviously MediaPortal does not like entering that method on another thread which indeed is what is happening when loading a dashboard in the background. I won't be changing that, what it probably should not have done is even get that far, I think from having a look at the MediaPortal code it should of returned from GUIWindowManager.GetWindow after getting the window from the dictionary (why it was not there might have something to do with it being cleared...race condition / timing related...who knows without debugging). In retrospect it's probably a little overkill to have that while loop in trakt trying to get a reference to the facade (if the skin doesnt have the correct skinsettings it can get stuck for 100ms * 50 = 5 secs! So very important to have skin settings defined correctly. I might look at find a better way that using that loop, even when you do have it the facade defined in the window it might loop once or twice. I'll presume you won't ever see this issue (or atleast very slim chance) with the controls defined in windows that the skin tells the Trakt plugin about so see how you go with that. I suspect Titan would have the same problem if users remove Trakt from BasicHome but SkinSettings is not updated. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Popular Skins
Titanius
OMG!!!! Have you found a bug?? Read this!
Contact us
RSS
Top
Bottom