Bug Chocolate and "unable to lauch" box

 
no supporters

Hi

I have an issue with seeing the box “unable to lauch.. disable mediabrowser”. I can reproduce this error with this sequence of steps.

  1. Launch mediabrowser
  2. Navigate to a movie detail page
  3. Press the button “Guide”
  4. Choose a channel
  5. Wait a couple of minutes and the box will be shown

I can’t find any error in the mediabrowser core log or any of the others logs. I have set the log level to verbose. However I found his in the event log for media center and the event comes every time I see the “unable to lauch ..” box

    Exception System.Reflection.TargetInvocationException: Destinationen for en aktivering udløste en undtagelse.

ved System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   ved System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   ved System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   ved System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   ved System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   ved System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   ved Microsoft.MediaCenter.UI.Template.FastPropertyInfo.FastClrPropertyInfo.GetValue(Object obj)
   ved Microsoft.MediaCenter.UI.ObjectPath.PropertyOperations.Get(Object instance, String stPath, Boolean fThrowOnError)
   ved Microsoft.MediaCenter.UI.ObjectPath.Get(Object instance, Int32 idxStart, Int32 nCount, Boolean fErrorOnNullReturn, Boolean fThrowOnError)
   ved Microsoft.MediaCenter.UI.ObjectPath.Get(Object instance)
   ved Microsoft.MediaCenter.UI.Set.ApplyWorker(Object args)
   ved Microsoft.MediaCenter.UI.Set.Apply(IRulesHost rulesHost)
   ved Microsoft.MediaCenter.UI.Template.RuleCollection.Update(IRulesHost rulesHost)
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.NewUiZone.ImplementUiTask(UiTask task, Object param)
   ved Microsoft.MediaCenter.UI.UiZone.ProcessUiTask(UiTask task, Object param)
   ved Microsoft.MediaCenter.UI.UiSession.ProcessDataBinding()
   ved Microsoft.MediaCenter.UI.DeferredCall.Dispatch()
   ved Microsoft.MediaCenter.Queues.Dispatcher.MainLoop(Queue queue)
   ved Microsoft.MediaCenter.UI.UIDispatcher.MainLoop(Queue queue, LoopCondition condition)
   ved Microsoft.MediaCenter.UI.UIDispatcher.Run(LoopCondition condition)
   ved MediaCenter.Extensibility.Host.Main(String[] args)

InnerException System.InvalidOperationException: Application does not have permission to call "Experience.get_Transport" when not active.


Server stack trace: 
   ved MediaCenter.Extensibility.ExtensibilityAutomation.EnforceApplicationPermission(String method, Boolean bThrowOnError)
   ved MediaCenter.Extensibility.ExtensibilityAutomation.Microsoft.MediaCenter.Hosting.Infrastructure.ITargetThreadInvokeMessageFilter.ProcessMessage(TargetThreadInvokeMBRO obj, IMessage msg)
   ved Microsoft.MediaCenter.Hosting.Infrastructure.TargetThreadSink.SyncProcessMessage(IMessage msg)
   ved Microsoft.MediaCenter.Hosting.Infrastructure.SinkHelpers.SyncDispatch(IMessageSink sink, IMethodCallMessage msgMethodCall)

Exception rethrown at [0]: 
   ved System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   ved System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   ved Microsoft.MediaCenter.AddIn.MediaExperience.get_Transport()
   ved Microsoft.MediaCenter.MediaExperience.get_Transport()
   ved Chocolate.ChocHelper.get_VideoBackdropApplicable()

I’m using chocolate as theme. If I change the theme to default the error goes away

 
votes newest oldest
 
  • Created:over 1 year ago

Is anyone maintaining Chocolate these days?

 
  • Neil pushed changes in October. – sinjen over 1 year ago
 
  • Created:11 months ago
  • Modified:11 months ago

From looking at the error message you have a problem with the Video Backdrop

Chocolate.ChocHelper.get_VideoBackdropApplicable()

I have made some changes to the way the video backdrop is run in the new version of chocolate on this topic, could you report back if this has fixed your problem or not.

 
  • I will try it out and report back to you – hhb97b 11 months ago
 
  • Created:11 months ago

I copied the dll file into C:\ProgramData\MediaBrowser\Plugins and overwrite the old file. I check mb configuration which said v 1.6.0. Dont know if this is correct – the post said 1.6.1. Then I restarted 7mc.

I have tried it a couple of times. One time it worked, but most of the times it failed

 Exception System.Reflection.TargetInvocationException: Destinationen for en aktivering udløste en undtagelse.

ved System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   ved System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   ved System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   ved System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   ved System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   ved System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   ved Microsoft.MediaCenter.UI.Template.FastPropertyInfo.FastClrPropertyInfo.GetValue(Object obj)
   ved Microsoft.MediaCenter.UI.ObjectPath.PropertyOperations.Get(Object instance, String stPath, Boolean fThrowOnError)
   ved Microsoft.MediaCenter.UI.ObjectPath.Get(Object instance, Int32 idxStart, Int32 nCount, Boolean fErrorOnNullReturn, Boolean fThrowOnError)
   ved Microsoft.MediaCenter.UI.ObjectPath.Get(Object instance)
   ved Microsoft.MediaCenter.UI.Set.ApplyWorker(Object args)
   ved Microsoft.MediaCenter.UI.Set.Apply(IRulesHost rulesHost)
   ved Microsoft.MediaCenter.UI.Template.RuleCollection.Update(IRulesHost rulesHost)
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.View.UpdateBindings()
   ved Microsoft.MediaCenter.UI.NewUiZone.ImplementUiTask(UiTask task, Object param)
   ved Microsoft.MediaCenter.UI.UiZone.ProcessUiTask(UiTask task, Object param)
   ved Microsoft.MediaCenter.UI.UiSession.ProcessDataBinding()
   ved Microsoft.MediaCenter.UI.DeferredCall.Dispatch()
   ved Microsoft.MediaCenter.Queues.Dispatcher.MainLoop(Queue queue)
   ved Microsoft.MediaCenter.UI.UIDispatcher.MainLoop(Queue queue, LoopCondition condition)
   ved Microsoft.MediaCenter.UI.UIDispatcher.Run(LoopCondition condition)
   ved MediaCenter.Extensibility.Host.Main(String[] args)

InnerException System.InvalidOperationException: Application does not have permission to call "Experience.get_Transport" when not active.


Server stack trace: 
   ved MediaCenter.Extensibility.ExtensibilityAutomation.EnforceApplicationPermission(String method, Boolean bThrowOnError)
   ved MediaCenter.Extensibility.ExtensibilityAutomation.Microsoft.MediaCenter.Hosting.Infrastructure.ITargetThreadInvokeMessageFilter.ProcessMessage(TargetThreadInvokeMBRO obj, IMessage msg)
   ved Microsoft.MediaCenter.Hosting.Infrastructure.TargetThreadSink.SyncProcessMessage(IMessage msg)
   ved Microsoft.MediaCenter.Hosting.Infrastructure.SinkHelpers.SyncDispatch(IMessageSink sink, IMethodCallMessage msgMethodCall)

Exception rethrown at [0]: 
   ved System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   ved System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   ved Microsoft.MediaCenter.AddIn.MediaExperience.get_Transport()
   ved Microsoft.MediaCenter.MediaExperience.get_Transport()
   ved Chocolate.ChocHelper.get_ShowNowPlayingButton()
 
  • When you Press the button “Guide” what are you referring to? – kenzo 11 months ago
 
  • Created:11 months ago
  • Modified:11 months ago

The guide button is the button with the red circle in the picture. This button show the epg/Tv Guide

The images is located here – http://imageshack.us/photo/my-images/401/mceremote.jpg

 
  • thanks for the explanation I cannot repeat the steps to cause the error as I don’t have TV setup on my media centre. Is it only when you try to load the tv guide the problem accurse? – kenzo 11 months ago
  • I haven’t found any other way to reproduce the error. But it is not when loading the tv guide(or when in the tv guide), but when I have choosen a channel. Then after a minut or so then the error occurs. – hhb97b 11 months ago
 
  • Created:11 months ago

I have taken a picture of the error, sorry for the picture quality

http://img259.imageshack.us/img259/5505/billede012b.jpg

 
  • Thanks for the image, does this box only appear when you are watching live TV or in any other part of media centre? – kenzo 11 months ago
  • Only when watching live tv. Isnt it possibilistisk to catch the exception and then do notning? I Can test to see if this effects other functionality – hhb97b 11 months ago
  • I have been looking over the code and the repo online I have noticed that neil made a few amendments to the code when it comes to live TV; I will have a look at his code to see if I can isolate the problem. – kenzo 11 months ago
  • Super :) – hhb97b 11 months ago
  • I have just released a new version of chocolate and was wondering if you could test it out using live TV, there is a few things you will need to do first and that is make sure that the Enable Backdrop Video is not selected and then try live TV as this should stop the error for now. I am still working on the way chocolate runs video backdrops and I hope to have it sorted soon. – kenzo 11 months ago
  • show 2 more comments