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: 1094974" data-attributes="member: 52219"><p>[USER=52265]@TheBatfink[/USER], the TraktPlugin will write out a stacktrace if it encounters an exception whilst trying to get the controls above. So that will explain seeing those errors. Perhaps your freeze is unrelated as you have encountered the errors before.</p><p></p><p>[CODE]</p><p>private GUIFacadeControl GetFacade(int facadeID)</p><p> {</p><p> int i = 0;</p><p> GUIFacadeControl facade = null;</p><p></p><p> // window init message does not work unless overridden from a guiwindow class</p><p> // so we need to be ensured that the window is fully loaded</p><p> // before we can get reference to a skin control</p><p> try</p><p> {</p><p> do</p><p> {</p><p> // get current window</p><p> var window = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow);</p><p></p><p> // get facade control</p><p> facade = window.GetControl(facadeID) as GUIFacadeControl;</p><p> if (facade == null) Thread.Sleep(100);</p><p></p><p> i++;</p><p> }</p><p> while (i < 50 && facade == null);</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> TraktLogger.Error("MediaPortal failed to get the active control");</p><p> TraktLogger.Error(ex.StackTrace);</p><p> }</p><p></p><p> if (facade == null)</p><p> {</p><p> TraktLogger.Debug("Unable to find Facade [id:{0}], check that trakt skin settings are correctly defined!", facadeID.ToString());</p><p> }</p><p></p><p> return facade;</p><p> }</p><p>[/CODE]</p><p></p><p>Most of the time it should return null and print out a debug warning to log. Best way to go forward with this is remove the setting in Trakt.SkinSettings.xml which instructs the plugin to load a dashboard on BasicHome if there is no dashboard controls defined. Otherwise ensure they are there.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1094974, member: 52219"] [USER=52265]@TheBatfink[/USER], the TraktPlugin will write out a stacktrace if it encounters an exception whilst trying to get the controls above. So that will explain seeing those errors. Perhaps your freeze is unrelated as you have encountered the errors before. [CODE] private GUIFacadeControl GetFacade(int facadeID) { int i = 0; GUIFacadeControl facade = null; // window init message does not work unless overridden from a guiwindow class // so we need to be ensured that the window is fully loaded // before we can get reference to a skin control try { do { // get current window var window = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow); // get facade control facade = window.GetControl(facadeID) as GUIFacadeControl; if (facade == null) Thread.Sleep(100); i++; } while (i < 50 && facade == null); } catch (Exception ex) { TraktLogger.Error("MediaPortal failed to get the active control"); TraktLogger.Error(ex.StackTrace); } if (facade == null) { TraktLogger.Debug("Unable to find Facade [id:{0}], check that trakt skin settings are correctly defined!", facadeID.ToString()); } return facade; } [/CODE] Most of the time it should return null and print out a debug warning to log. Best way to go forward with this is remove the setting in Trakt.SkinSettings.xml which instructs the plugin to load a dashboard on BasicHome if there is no dashboard controls defined. Otherwise ensure they are there. [/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