Jump to content


Photo

Emby Server on Nvidia Shield keeps crashing when scanning library


  • Please log in to reply
16 replies to this topic

#1 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 25 January 2019 - 07:31 PM

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",


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 126578 posts
  • Local time: 10:55 AM

Posted 26 January 2019 - 01:11 AM

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



#3 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 26 January 2019 - 03:48 AM

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

Attached Files


Edited by Emiroe, 26 January 2019 - 03:48 AM.


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 126578 posts
  • Local time: 10:55 AM

Posted 26 January 2019 - 04:06 PM

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



#5 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 28 January 2019 - 05:23 AM

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.myclou...5af776&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!

Attached Files


Edited by Emiroe, 28 January 2019 - 05:23 AM.


#6 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 31 January 2019 - 07:45 AM

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.


  • ebr and EODCrafter like this

#7 EODCrafter OFFLINE  

EODCrafter

    Advanced Member

  • Members
  • 680 posts
  • Local time: 09:55 AM
  • LocationSouthEastern USA

Posted 31 January 2019 - 09:37 AM

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, 31 January 2019 - 09:41 AM.


#8 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 44118 posts
  • Local time: 10:55 AM

Posted 31 January 2019 - 09:42 AM

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.


  • EODCrafter likes this

#9 EODCrafter OFFLINE  

EODCrafter

    Advanced Member

  • Members
  • 680 posts
  • Local time: 09:55 AM
  • LocationSouthEastern USA

Posted 31 January 2019 - 09:44 AM

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

 

5c52fc10d5551_Capture.png


Edited by EODCrafter, 31 January 2019 - 09:45 AM.


#10 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 31 January 2019 - 04:10 PM

@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, 31 January 2019 - 04:11 PM.

  • EODCrafter likes this

#11 EODCrafter OFFLINE  

EODCrafter

    Advanced Member

  • Members
  • 680 posts
  • Local time: 09:55 AM
  • LocationSouthEastern USA

Posted 31 January 2019 - 06:58 PM

No, just wanted to test different settings. Thanks!

#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 126578 posts
  • Local time: 10:55 AM

Posted 01 February 2019 - 01:06 AM

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 !



#13 Emiroe OFFLINE  

Emiroe

    Newbie

  • Members
  • 6 posts

Posted 02 February 2019 - 09:36 AM

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, 02 February 2019 - 09:37 AM.


#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 126578 posts
  • Local time: 10:55 AM

Posted 02 February 2019 - 08:47 PM

Thanks for the info.

#15 Luminous OFFLINE  

Luminous

    Newbie

  • Members
  • 3 posts

Posted 22 April 2019 - 03:02 PM

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

#16 EODCrafter OFFLINE  

EODCrafter

    Advanced Member

  • Members
  • 680 posts
  • Local time: 09:55 AM
  • LocationSouthEastern USA

Posted 22 April 2019 - 08:27 PM

.


Edited by EODCrafter, 23 April 2019 - 04:52 AM.


#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 126578 posts
  • Local time: 10:55 AM

Posted 27 April 2019 - 03:37 PM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users