siddhartha 11 Posted November 6, 2016 Posted November 6, 2016 Using Version 3.1.6153.29987 dev What is happening is that parsing the JSON DLNA profile into XML is throwing HTML character encoding errors on: "XmlRootAttributes":[{"Name":"xmlns:sec","Value":"http://www.sec.co.kr/"}] It doesn't like the colon in xmlns:sec. This breaks many DLNA profiles. 2016-11-05 20:22:47.0217 Error HttpServer: Error processing request for /emby/Sessions/015f6f54691a834cc77c6db4a06deddb/Playing?ItemIds=f20f67bcc15e0a148f01c5c7c743de15&PlayCommand=PlayNow&startPositionTicks=17022467170 *** Error Report *** Version: 3.1.6153.29987 Command line: C:\Users\Marx\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 4 Program data path: C:\Users\Marx\AppData\Roaming\Emby-Server Application Path: C:\Users\Marx\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Invalid name character in 'xmlns:sec'. The ':' character, hexadecimal value 0x3A, cannot be included in a name. ServiceStack.HttpError No Stack Trace Available InnerException: System.ArgumentException Invalid name character in 'xmlns:sec'. The ':' character, hexadecimal value 0x3A, cannot be included in a name. at System.Xml.XmlWellFormedWriter.CheckNCName(String ncname) at System.Xml.XmlWellFormedWriter.WriteStartAttribute(String prefix, String localName, String namespaceName) at Emby.Dlna.Didl.DidlBuilder.GetItemDidl(DlnaOptions options, BaseItem item, BaseItem context, String deviceId, Filter filter, StreamInfo streamInfo) at Emby.Dlna.PlayTo.PlayToController.CreatePlaylistItem(BaseItem item, User user, Int64 startPostionTicks, String mediaSourceId, Nullable`1 audioStreamIndex, Nullable`1 subtitleStreamIndex) at Emby.Dlna.PlayTo.PlayToController.<SendPlayCommand>d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Emby.Server.Implementations.Session.SessionManager.<SendPlayCommand>d__74.MoveNext() If I replace xmlns:sec with just sec as a test, I get: 2016-11-05 20:35:07.6239 Error HttpServer: Error processing request for /emby/Sessions/015f6f54691a834cc77c6db4a06deddb/Playing?ItemIds=f20f67bcc15e0a148f01c5c7c743de15&PlayCommand=PlayNow&startPositionTicks=17022467170 *** Error Report *** Version: 3.1.6153.29987 Command line: C:\Users\Marx\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 4 Program data path: C:\Users\Marx\AppData\Roaming\Emby-Server Application Path: C:\Users\Marx\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Token StartAttribute in state Element Content would result in an invalid XML document. ServiceStack.HttpError No Stack Trace Available InnerException: System.InvalidOperationException Token StartAttribute in state Element Content would result in an invalid XML document. at System.Xml.XmlWellFormedWriter.ThrowInvalidStateTransition(Token token, State currentState) at System.Xml.XmlWellFormedWriter.AdvanceState(Token token) at System.Xml.XmlWellFormedWriter.WriteStartAttribute(String prefix, String localName, String namespaceName) at System.Xml.XmlWriter.WriteAttributeString(String localName, String value) at Emby.Dlna.Didl.DidlBuilder.WriteItemElement(DlnaOptions options, XmlWriter writer, BaseItem item, BaseItem context, Nullable`1 contextStubType, String deviceId, Filter filter, StreamInfo streamInfo) at Emby.Dlna.Didl.DidlBuilder.GetItemDidl(DlnaOptions options, BaseItem item, BaseItem context, String deviceId, Filter filter, StreamInfo streamInfo) at Emby.Dlna.PlayTo.PlayToController.CreatePlaylistItem(BaseItem item, User user, Int64 startPostionTicks, String mediaSourceId, Nullable`1 audioStreamIndex, Nullable`1 subtitleStreamIndex) at Emby.Dlna.PlayTo.PlayToController.<SendPlayCommand>d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Emby.Server.Implementations.Session.SessionManager.<SendPlayCommand>d__74.MoveNext()
MadJeff 0 Posted November 6, 2016 Posted November 6, 2016 I'm getting a similar XML error after upgrading to the latest beta 3.1.210.0 to my LG55LB6100. It was working perfectly prior to today's update. The LG sees Emby just fine, but when I hit it I get the No Files error on the TV and no folders show. I've rebooted the PC and the TV. 2016-11-05 18:30:54.0788 Info HttpServer: HTTP Response 200 to 10.1.1.136. Time: 90ms. http://10.1.1.170:8096/dlna/959852b49f364a5e9acf349e545368d6/contentdirectory/control 2016-11-05 18:31:06.1402 Info HttpServer: HTTP GET http://10.1.1.170:8096/dlna/959852b49f364a5e9acf349e545368d6/icons/logo240.png. UserAgent: FXUI 2016-11-05 18:31:06.1402 Info HttpServer: HTTP Response 200 to 10.1.1.136. Time: 0ms. http://10.1.1.170:8096/dlna/959852b49f364a5e9acf349e545368d6/icons/logo240.png 2016-11-05 18:31:10.5512 Info HttpServer: HTTP POST http://10.1.1.170:8096/dlna/959852b49f364a5e9acf349e545368d6/contentdirectory/control. UserAgent: Linux/3.0.13 UPnP/1.0 LGE_DLNA_SDK/1.6.0 [TV][LG]55LB6100-UG/04.03.07 DLNADOC/1.50 2016-11-05 18:31:10.5512 Error UpnpContentDirectory: Error processing control request *** Error Report *** Version: 3.1.210.0 Command line: C:\Users\Media\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 4 Program data path: C:\Users\Media\AppData\Roaming\Emby-Server Application Path: C:\Users\Media\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe One or more errors occurred. System.AggregateException at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at Emby.Dlna.Service.BaseControlHandler.ProcessControlRequestInternal(ControlRequest request) at Emby.Dlna.Service.BaseControlHandler.ProcessControlRequest(ControlRequest request) InnerException: System.InvalidOperationException Token StartAttribute in state Element Content would result in an invalid XML document. at System.Xml.XmlWellFormedWriter.ThrowInvalidStateTransition(Token token, State currentState) at System.Xml.XmlWellFormedWriter.AdvanceState(Token token) at System.Xml.XmlWellFormedWriter.WriteStartAttribute(String prefix, String localName, String namespaceName) at System.Xml.XmlWriter.WriteAttributeString(String localName, String value) at Emby.Dlna.Didl.DidlBuilder.WriteFolderElement(XmlWriter writer, BaseItem folder, Nullable`1 stubType, BaseItem context, Int32 childCount, Filter filter, String requestedId) at Emby.Dlna.ContentDirectory.ControlHandler.<HandleBrowse>d__24.MoveNext()
Luke 42077 Posted November 6, 2016 Posted November 6, 2016 Awesome, thanks for the report. Let me know if the next build resolves it.
siddhartha 11 Posted November 6, 2016 Author Posted November 6, 2016 Confirmed working as of Version 3.1.6154.23749 dev. Thanks!
MadJeff 0 Posted November 7, 2016 Posted November 7, 2016 The new beta build also resolved my issue this evening. =)
johnbury 4 Posted November 12, 2016 Posted November 12, 2016 Hooray!! Searched the forum before reporting this same behaviour (unable to play to my new TV (LG 65UH770) everything fine up until hitting 'Play' (on iPad cleint) then nothing. I hadn't tried for a couple of days so read the thread and tried again, and hey presto all is well. Thanks community and team!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now