romankk 9 Posted September 10, 2021 Posted September 10, 2021 Out of a series, I have two episodes (that are perfectly playable with VLC) that I cannot watch on Emby. In the logs, I see this exception: 2021-09-10 10:20:38.851 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 5.10.0-8-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 S Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 8 Data path: /var/lib/emby Application path: /opt/emby-server/system System.ArgumentOutOfRangeException: System.ArgumentOutOfRangeException: The length cannot be greater than the capacity. (Parameter 'valueCount') at System.Text.StringBuilder.Append(Char* value, Int32 valueCount) at System.Text.StringBuilder.AppendHelper(String value) at System.Text.StringBuilder.Append(String value) at Emby.Server.MediaEncoding.Api.Hls.HlsPlaylistGenerator.GetVariantPlaylist(StreamRequest request, String name, Double[] segmentLengths, StreamState state, String rawUrl, String segmentExtension) at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetVariantPlaylistInternal(StreamRequest request, Boolean isOutputVideo, String name) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: System.Text.StringBuilder Append(Char*, Int32) I am not sure what makes these 2 episodes so special, but I am also attaching the full log. Thanks! embyserver.txt
Carlo 4561 Posted September 10, 2021 Posted September 10, 2021 Hi, I would try and remux these two episodes to rewrite the headers on the file as the issue could be as simple as bad headers or info currently written.
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 Thanks, but since I am not in a hurry, I rather wait for an update that handles this error. I just thought you might be interested in this error....
Luke 42080 Posted September 10, 2021 Posted September 10, 2021 Do you use dlna features? If not try removing that plugin, then restart the server and see if that helps. Thanks.
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 I just removed the plugin and restarted the service. Playback still doesn't work. This is the exception in the log 2021-09-10 17:01:33.466 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 5.10.0-8-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 S Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 8 Data path: /var/lib/emby Application path: /opt/emby-server/system System.OutOfMemoryException: System.OutOfMemoryException: Insufficient memory to continue the execution of the program. at System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount) at System.Text.StringBuilder.Append(Char* value, Int32 valueCount) at System.Text.StringBuilder.AppendHelper(String value) at System.Text.StringBuilder.Append(String value) at Emby.Server.MediaEncoding.Api.Hls.HlsPlaylistGenerator.GetVariantPlaylist(StreamRequest request, String name, Double[] segmentLengths, StreamState state, String rawUrl, String segmentExtension) at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetVariantPlaylistInternal(StreamRequest request, Boolean isOutputVideo, String name) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void ExpandByABlock(Int32)
Carlo 4561 Posted September 10, 2021 Posted September 10, 2021 Hi, I would reset the server itself as that log shows insufficient memory available.
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 Thank you, I understand that you are following this path, but I cannot really see that the server (i.e. OS/hardware) is the limiting factor here (see attached screenshot). Is there any heap/memory setting in the Emby service configuration?
Carlo 4561 Posted September 10, 2021 Posted September 10, 2021 Well something is limited or you wouldn't have gotten that message. Regardless of what any stats show, I'd reboot the server just to rule that out.
Luke 42080 Posted September 10, 2021 Posted September 10, 2021 1 hour ago, romankk said: I just removed the plugin and restarted the service. Playback still doesn't work. This is the exception in the log 2021-09-10 17:01:33.466 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 5.10.0-8-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 S Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 8 Data path: /var/lib/emby Application path: /opt/emby-server/system System.OutOfMemoryException: System.OutOfMemoryException: Insufficient memory to continue the execution of the program. at System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount) at System.Text.StringBuilder.Append(Char* value, Int32 valueCount) at System.Text.StringBuilder.AppendHelper(String value) at System.Text.StringBuilder.Append(String value) at Emby.Server.MediaEncoding.Api.Hls.HlsPlaylistGenerator.GetVariantPlaylist(StreamRequest request, String name, Double[] segmentLengths, StreamState state, String rawUrl, String segmentExtension) at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetVariantPlaylistInternal(StreamRequest request, Boolean isOutputVideo, String name) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void ExpandByABlock(Int32) Can you please attach the complete log file? Thanks.
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 Attaching the logs of the playback attempt after removing the DLNA plugin and restarting. embyserver-without-dlna.txt
Luke 42080 Posted September 10, 2021 Posted September 10, 2021 Have you tried rebooting the entire machine?
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 No, I didn't do that because there are other services on that machine that I would rather not interrupt. The issue is not important enough to me to go through this ordeal (including to tell a daughter that the Internet will be down, as it is also a DNS server). However, I stopped the process and restarted it again on OS level (in contrast to the restart-button in the admin interface), making sure that the process was really stopped. See attached log...(it is probably not telling you anything more than the previous ones). Furthermore, I am running a backup Emby instance on a QNAP (although version 4.5.4.0) which also cannot playback the same video. In that case, the whole service freezes and I cannot open the Emby website at all anymore. I am attaching this log as well as it may have more information. It mentions "Debug App: Master playlist", but I am not not sure if that is related. embyserver-after-shutdown.txt embyserver-qnap.txt
Carlo 4561 Posted September 10, 2021 Posted September 10, 2021 This log is still showing "Insufficient memory to continue the execution of the program." You need to restart the computer to rule this out.
romankk 9 Posted September 10, 2021 Author Posted September 10, 2021 Alright, next time I have to shut it down, I'll check Emby afterwards. 1
romankk 9 Posted September 12, 2021 Author Posted September 12, 2021 (edited) After a complete restart of the server, I still get the same exceptions when trying to playback the episode. embyserver.txt Edited September 12, 2021 by romankk
Carlo 4561 Posted September 12, 2021 Posted September 12, 2021 Hi, could you upload a copy of one of these files? You can host the file on Google Drive, Dropbox or similar service. You can post the link here or PM it to me. Thanks
romankk 9 Posted September 12, 2021 Author Posted September 12, 2021 Sure, is there a way to keep the link private, though?
romankk 9 Posted September 12, 2021 Author Posted September 12, 2021 Ok, I sent you a download link. Please let me know when you have downloaded it so that I can delete it. Thanks!
romankk 9 Posted September 13, 2021 Author Posted September 13, 2021 What I did not realize until now, and this also falsifies my statament that the video is perfectly playable with VLC, is that VLC shows that the video is supposedly 58000 hours long. This might be source of the problem (maybe exceeding some type limits when this is processed in milliseconds?)
Luke 42080 Posted September 13, 2021 Posted September 13, 2021 8 hours ago, romankk said: What I did not realize until now, and this also falsifies my statament that the video is perfectly playable with VLC, is that VLC shows that the video is supposedly 58000 hours long. This might be source of the problem (maybe exceeding some type limits when this is processed in milliseconds?) OK yes that's helpful. There is one change I can make that might help with that. It will be in the next release. Thanks. 1
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