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 Plugins
Popular Plugins
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
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="Sebastiii" data-source="post: 1240864" data-attributes="member: 60104"><p>Hey <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>I've maybe another bug, i was trying to look at [USER=68833]@ajs[/USER] issue :</p><p></p><p>[code][2018-03-02 21:33:31,351] [Error ] [CheckConnection] [ERROR] - MediaPortal: Unhandled exception occured</p><p>[2018-03-02 21:33:31,371] [Log ] [CheckConnection] [ERROR] - Exception: System.NullReferenceException: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта.</p><p> в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)</p><p> в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)</p><p> в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout)</p><p> в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0()</p><p> в System.Threading.ThreadHelper.ThreadStart_Context(Object state)</p><p> в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</p><p> в System.Threading.ThreadHelper.ThreadStart() Message: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта. Site : System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean) Source : System.Windows.Forms Stack Trace: в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)</p><p> в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)</p><p> в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout)</p><p> в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0()</p><p> в System.Threading.ThreadHelper.ThreadStart_Context(Object state)</p><p> в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</p><p> в System.Threading.ThreadHelper.ThreadStart()</p><p>[/code]</p><p></p><p>And i have run into MP crash :</p><p>[code]Application: MediaPortal.exe</p><p>Framework Version: v4.0.30319</p><p>Description: The process was terminated due to an unhandled exception.</p><p>Exception Info: System.IO.FileNotFoundException</p><p></p><p>Server stack trace:</p><p> at TraktAPI.Extensions.JSONExtensions.FromJSONDictionary[T](String json)</p><p> at TraktAPI.Extensions.DateTimeExtensions.OlsenToWindowsTimezone(String olsenTimezone)</p><p> at TraktPlugin.GUI.GUICommon.SetShowProperties(TraktShowSummary show)</p><p> at TraktPlugin.TraktDashboard.OnTrendingShowSelected(GUIListItem item, GUIControl parent)</p><p> at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)</p><p> at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)</p><p> at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)</p><p> at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Object, System.Runtime.Remoting.Proxies.MessageData ByRef)</p><p> at MediaPortal.GUI.Library.GUIListItem+ItemSelectedHandler.EndInvoke(System.IAsyncResult)</p><p> at MediaPortal.GUI.Library.GUIListItem.itemSelectedCallback(System.IAsyncResult)</p><p> at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)</p><p> at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink)</p><p> at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object)</p><p> at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)</p><p> at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)</p><p> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)</p><p> at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()</p><p> at System.Threading.ThreadPoolWorkQueue.Dispatch()</p><p> at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()</p><p></p><p>[/code]</p><p></p><p>So looked the code and add a try catch here : </p><p></p><p>[code=csharp]/// <summary></p><p> /// Returns the corresponding Olsen timezone e.g. 'Atlantic/Canary' into a Windows timezone e.g. 'GMT Standard Time'</p><p> /// </summary></p><p> public static string OlsenToWindowsTimezone(this string olsenTimezone)</p><p> {</p><p> if (olsenTimezone == null)</p><p> return null;</p><p></p><p> if (_timezoneMappings == null)</p><p> {</p><p> try</p><p> {</p><p> _timezoneMappings = Resources.OlsenToWindows.FromJSONDictionary<Dictionary<string, string>>();</p><p> }</p><p> catch (Exception)</p><p> {</p><p> return null;</p><p> }</p><p> }</p><p></p><p> string windowsTimezone;</p><p> _timezoneMappings.TryGetValue(olsenTimezone, out windowsTimezone);</p><p></p><p> return windowsTimezone;</p><p> }[/code]</p><p></p><p>This try / catch seems to do the work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p><p>I've reproduced it but starting MP with load last plugin (here Trakt) and start to navigate <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> and boom <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[ATTACH=full]196615[/ATTACH]</p><p></p><p></p><p>I have also noted a possible bull reference exception here "DateTimeFormatInfo.CurrentInfo' (just after above code) for <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /></p><p></p><p>[code=csharp]public static string ToLocalisedDayOfWeek(this DateTime date)</p><p> {</p><p> return DateTimeFormatInfo.CurrentInfo.GetDayName(date.DayOfWeek);</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1240864, member: 60104"] Hey :) I've maybe another bug, i was trying to look at [USER=68833]@ajs[/USER] issue : [code][2018-03-02 21:33:31,351] [Error ] [CheckConnection] [ERROR] - MediaPortal: Unhandled exception occured [2018-03-02 21:33:31,371] [Log ] [CheckConnection] [ERROR] - Exception: System.NullReferenceException: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта. в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout) в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0() в System.Threading.ThreadHelper.ThreadStart_Context(Object state) в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) в System.Threading.ThreadHelper.ThreadStart() Message: СÑылка на объект не указывает на ÑкземплÑÑ€ объекта. Site : System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean) Source : System.Windows.Forms Stack Trace: в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) в TraktPlugin.GUI.GUIUtils.ShowNotifyDialog(String heading, String text, String image, String buttonText, Int32 timeout) в TraktPlugin.TraktPlugin.<>c.<GUIWindowManager_OnActivateWindow>b__34_0() в System.Threading.ThreadHelper.ThreadStart_Context(Object state) в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) в System.Threading.ThreadHelper.ThreadStart() [/code] And i have run into MP crash : [code]Application: MediaPortal.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException Server stack trace: at TraktAPI.Extensions.JSONExtensions.FromJSONDictionary[T](String json) at TraktAPI.Extensions.DateTimeExtensions.OlsenToWindowsTimezone(String olsenTimezone) at TraktPlugin.GUI.GUICommon.SetShowProperties(TraktShowSummary show) at TraktPlugin.TraktDashboard.OnTrendingShowSelected(GUIListItem item, GUIControl parent) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Object, System.Runtime.Remoting.Proxies.MessageData ByRef) at MediaPortal.GUI.Library.GUIListItem+ItemSelectedHandler.EndInvoke(System.IAsyncResult) at MediaPortal.GUI.Library.GUIListItem.itemSelectedCallback(System.IAsyncResult) at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink) at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() [/code] So looked the code and add a try catch here : [code=csharp]/// <summary> /// Returns the corresponding Olsen timezone e.g. 'Atlantic/Canary' into a Windows timezone e.g. 'GMT Standard Time' /// </summary> public static string OlsenToWindowsTimezone(this string olsenTimezone) { if (olsenTimezone == null) return null; if (_timezoneMappings == null) { try { _timezoneMappings = Resources.OlsenToWindows.FromJSONDictionary<Dictionary<string, string>>(); } catch (Exception) { return null; } } string windowsTimezone; _timezoneMappings.TryGetValue(olsenTimezone, out windowsTimezone); return windowsTimezone; }[/code] This try / catch seems to do the work :P I've reproduced it but starting MP with load last plugin (here Trakt) and start to navigate :P and boom :) [ATTACH=full]196615[/ATTACH] I have also noted a possible bull reference exception here "DateTimeFormatInfo.CurrentInfo' (just after above code) for :P [code=csharp]public static string ToLocalisedDayOfWeek(this DateTime date) { return DateTimeFormatInfo.CurrentInfo.GetDayName(date.DayOfWeek); }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
Contact us
RSS
Top
Bottom