Jump to content

Emby Server on Nvidia Shield keeps crashing when scanning library


Emiroe

Recommended Posts

Hi,

 

Everytime I try to scan my library, it gets stuck on a specific percentage (90,3%) and my server shuts down and restarts automatically. Only half my library is scanned because of this problem. I checked the error logs and it appears to be a problem with Ffprobe on my NVIDEA shield shutting down with exit code 137. Ffprobe seems to timeout on my Shield for some reason. 

 

The file in the log below is a video file which was already scanned in an earlier session (sometimes it gets a little further. sometimes it doesn't). I already removed and readded the libraries and that didn't work. Also I don't think it's a problem with the file because on my other Emby server, running on an INTEL NUC with Windows 10 the file scans normally.

 

Could somebody enlight me why it's shutting down with code 137 and how I can solve this problem on my Shield?

2019-01-26 00:09:06.774 Debug MediaEncoder: Ffprobe -i file:"/storage/ROMIJN-NAS/series/Marvel's Daredevil/Season 01/Marvel's Daredevil - S01E01 - Into the Ring Bluray-1080p.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2019-01-26 00:09:06.775 Info MediaEncoder: ProcessRun 'ffprobe' Execute: /data/data/com.emby.embyserver/files/ffmpeg/ffprobe -i file:"/storage/ROMIJN-NAS/series/Marvel's Daredevil/Season 01/Marvel's Daredevil - S01E01 - Into the Ring Bluray-1080p.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2019-01-26 00:09:06.788 Info MediaEncoder: ProcessRun 'ffprobe' Started.
2019-01-26 00:09:12.652 Info HttpServer: HTTP GET http://192.168.1.128:8096/dlna/b25ad3a323e3457faa8afad790360799/description.xml. UserAgent: Allegro-Software-WebClient/5.40b1 DLNADOC/1.50
2019-01-26 00:09:12.653 Info HttpServer: HTTP Response 200 to 192.168.1.173. Time: 2ms. http://192.168.1.128:8096/dlna/b25ad3a323e3457faa8afad790360799/description.xml
2019-01-26 00:09:23.095 Info Trakt: Timer elapsed - Processing queued items
2019-01-26 00:09:23.097 Info Trakt: No Movie Deletes to Process
2019-01-26 00:09:23.097 Info Trakt: No Movie Adds to Process
2019-01-26 00:09:23.098 Info Trakt: 4 Episode Deletes to Process
2019-01-26 00:09:23.312 Info HttpClient: POST https://api.trakt.tv/oauth/token
2019-01-26 00:09:23.749 Info HttpClient: POST https://api.trakt.tv/sync/collection/remove
2019-01-26 00:09:24.597 Info Trakt: No Episode Adds to Process
2019-01-26 00:09:24.597 Info Trakt: No Series Deletes to Process
2019-01-26 00:09:36.791 Error MediaEncoder: Timeout while running Ffprobe -i file:"/storage/ROMIJN-NAS/series/Marvel's Daredevil/Season 01/Marvel's Daredevil - S01E01 - Into the Ring Bluray-1080p.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2019-01-26 00:09:37.436 Info MediaEncoder: ProcessRun 'ffprobe' Process exited with code 137
2019-01-26 00:09:39.427 Error MediaEncoder: ProcessRun 'ffprobe' Output:
	{
	    "streams": [
	        {
	            "index": 0,
	            "codec_name": "h264",
	            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
	            "profile": "High",
	            "codec_type": "video",
	            "codec_time_base": "1001/48000",
	            "codec_tag_string": "[0][0][0][0]",
	            "codec_tag": "0x0000",
Link to comment
Share on other sites

Hi there, can you please attach the complete emby server log? thanks.

 

The complete log is over 600mb because it outputs the codec into the log like this: 

 

i edited this out and attached the edited version. If you need everything please let me know where I can upload it because this website limits my file to 90mb. I could temporarily host it on my NAS if you want.

 

5c4c0faa0f0b2_serverlog.png

Edited_log.txt

Edited by Emiroe
Link to comment
Share on other sites

Yes if you could put the complete file somewhere like dropbox or google drive that would be great, thanks.

Link to comment
Share on other sites

Hi,

 

So the problem solved itself somewhat by starting a library scan after each crash. Every scan the library filled itself a little further. I actually have 2 Shields so I wanted to check if the problem was only on one of the Shields. I installed Emby server on my other shield and set it up the same way, and that Shield also crashed multiple times during the initial library scan. What I noticed in the logs is that it crashed at the same files as the other Shield (Daredevil episodes). So maybe it has something to do with the Android not handling the files? It is strange though, because my Windows Emby installation never had this problem.

 

https://files.mycloud.com/home.php?brand=webfiles&seuuid=c716855972ac97c449876803925af776&name=Log < This is the error I got on the new installation, it is basically the same but only 90mb. I can upload more if you want.

 

I'm now having another problem (also on both Shields) which is impacting my use of it. On both Shields the server randomly crashes/restarts when transcoding media and streaming it remotely. If I check the dashboard during transcoding it seems to be able to handle it really wel so it shouldn't crash every time. If I check the logs I can't see a single reason why it would crashed. I attached the logs, but should I open a new topic for this?

 

Thank you for helping me, I really appreciate it!

Log-2.txt

Log-3.txt

Edited by Emiroe
Link to comment
Share on other sites

Hi,

 

I wanted to give some feedback because I solved the problems myself (partially). So the crashing during library scans was because of specific files. The only difference I could see between these files and other files were that they had chinese subtitles. I would like to note that the Windows Emby Server didn't have any problem with these episodes. After deleting the episodes and downloading other episodes through Sonarr the problem went away.

 

The other problem (server restarting during transcoding) had something to do with hardware acceleration. When I tured HA off, the server wouldn't randomly crash during every episode anymore, but the transcode was ofcourse very low because it had to do everything through software. I tinkered with the advanced settings and found out that the problem lies with the H.264 decoder. If I turn everything (including H.264 Encoder) on except for the H.264 decoder, both Shields run flawlessly with HA on. I hope this helps some people.

  • Like 2
Link to comment
Share on other sites

EODCrafter

If I turn everything (including H.264 Encoder) on except for the H.264 decoder

Can you explain this? It sounds confusing.......Is it On or Off? Screen Shot would Definitely help......

 

5c52faed14b92_Capture.png

Edited by EODCrafter
Link to comment
Share on other sites

Can you explain this? It sounds confusing.......Is it On or Off? Screen Shot would Definitely help......

 

5c52faed14b92_Capture.png

 

He says he unchecked the second (from the top) checkbox in your screenshot and left everything else on.

  • Like 1
Link to comment
Share on other sites

@@ebr, I'll try it....! Thanks!

 

5c52fc10d5551_Capture.png

 

 

Hey, this screenshot has the correct settings. Everything else is turned on set on auto. For me it stopped the crashing on both Shields. Did you have the same problem as me and did it solve this for you as well?

 

I also had some problems with subtitles, if I used subtitles which are in the video already (for example SUBRIP or PSGSUB) the transcode would be very slow (17 fps for example) even with HA enabled like this. The solution for this was to use plain-text .srt files and never using SUBRIP or PSGSUB. With all these settings I can run 3 simultaneous remote streams of 1080p - 8mbps on my Shield.  

Edited by Emiroe
  • Like 1
Link to comment
Share on other sites

Hi,

 

I wanted to give some feedback because I solved the problems myself (partially). So the crashing during library scans was because of specific files. The only difference I could see between these files and other files were that they had chinese subtitles. I would like to note that the Windows Emby Server didn't have any problem with these episodes. After deleting the episodes and downloading other episodes through Sonarr the problem went away.

 

The other problem (server restarting during transcoding) had something to do with hardware acceleration. When I tured HA off, the server wouldn't randomly crash during every episode anymore, but the transcode was ofcourse very low because it had to do everything through software. I tinkered with the advanced settings and found out that the problem lies with the H.264 decoder. If I turn everything (including H.264 Encoder) on except for the H.264 decoder, both Shields run flawlessly with HA on. I hope this helps some people.

 

Hi there @@Emiroe, can you give some examples of files? thanks !

Link to comment
Share on other sites

Hi there @@Emiroe, can you give some examples of files? thanks !

 

Hi,

 

I don't have the files anymore, but they can be downloaded if you or someone you know has access to newsgroups. Daredevil.S01E01.1080p.BluRay.x264.DTS-WiKi is one example. 

 

For the other problem it was every H.264 file I had in my library, it didn't really matter which file.

Edited by Emiroe
Link to comment
Share on other sites

  • 2 months later...
Luminous

I'm having the same issue on my Nvidia Shield TV... Running the latest version 4.1.0.26

HW transcoding turned off.

Link to comment
Share on other sites

I'm having the same issue on my Nvidia Shield TV... Running the latest version 4.1.0.26

HW transcoding turned off.

 

Hi, can you please attach the emby server log? thanks.

Link to comment
Share on other sites

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...