Jump to content

Accessing library marked as "Unset (mixed content)" crashes EMC


Recommended Posts

Posted (edited)

I have a couple of top level libraries which consist of some online and some offline content.

 

This is actually caused by libraries that are marked as "Unset (mixed content)" - I can no longer browse any of these from EMC.

 

There's been a change to the dev server that is now causing EMC to crash when I enter into one of those libraries from the EHS.

 

I've noticed that issue is different on my two installs of EMC (both on 286) - on Win 10, EMC crashes when entering into the library. But on my main Win 8 HTPC (where Emby Server is also installed) EMC crashes when just scrolling onto the library.

 

 

EMC log

 

Server log

Edited by AdrianW
Posted

Turns out that it's not offline content - it's any library marked as "Unset (mixed content)" that I can no longer access from EMC.

Posted

Can you please find and post the Windows Event log error?  Thx.

Posted

Hopefully this is what you're after:

Exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.MediaCenter.UI.ObjectPath.MethodOperations.Invoke(Object instance, String stPath, Object[] arArgs)
   at Microsoft.MediaCenter.UI.Template.InvokeMethodService.MethodInvoke(IVirtualPropertyObject vpoHost, ObjectPath ipMethod, ObjectPath ipResult, Object objTransformer, Object objOwner, IList exHandlers)
   at Microsoft.MediaCenter.UI.Invoke.ApplyWorker(Object args)
   at Microsoft.MediaCenter.Queues.Dispatcher.MainLoop(Queue queue)
   at Microsoft.MediaCenter.UI.UIDispatcher.MainLoop(Queue queue, LoopCondition condition)
   at MediaCenter.Extensibility.Host.Main(String[] args)

InnerException System.ArgumentNullException: Value cannot be null.
Parameter name: prefsId

at MediaBrowser.ApiInteraction.ApiClient.GetDisplayPrefs(String prefsId)
   at MediaBrowser.Library.Entities.Folder.LoadDisplayPreferences()
   at MediaBrowser.Library.FolderModel.LoadDisplayPreferences()
   at MediaBrowser.Library.FolderModel.get_DisplayPrefs()
   at MediaBrowser.Application.<>c__DisplayClassb7.<Navigate>b__b6()
   at MediaBrowser.Library.Entities.BaseItem.SelectAction(Item item)
Posted

Luke, is the Display Prefs ID no longer being filled in for these items?  That value should never be null as the server should derive some sort of ID for all folders.

 

Or, is this due to a change in the model?

 

Adrian, did this get released into the stable version yesterday?

Posted

Ah, I had this very late last night (half asleep) forgot to report today. Looks like you've found it but for info I'm on Dev everything and it was indeed my unset folders causing this.

Posted (edited)

I'm on dev as well - it was a dev server update around 5th or 6th November.

 

Still occurring on 3.0.5791.23954

Edited by AdrianW
Posted

i've looked and i don't see how it could be missing. is it possible there is a url where you're forgetting to request the DisplayPreferencesId field? or is it possibly coming through as Guid.Empty in some cases? 

Posted

I don't know why it would be different with the only change being on the server side.

 

More likely a model mis-match type of issue.  Did anything change in the model?

Posted

Hi guys, just updated to Server 3.0.5792.25141 and EMC 3.0.287.0 and Unset folders are now behaving, thank you ;)  

Posted

Please make sure indexing is still doing what you expect.  Thanks.

Posted

Hi guys, just updated to Server 3.0.5792.25141 and EMC 3.0.287.0 and Unset folders are now behaving, thank you ;)  

 

Working for me also.  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...