Jump to content


Photo

Transcoding causes Emby server restart - Memory Leak

Emby server transcoding restart crash memory leak

  • Please log in to reply
8 replies to this topic

#1 henriquefer OFFLINE  

henriquefer

    Newbie

  • Members
  • 9 posts
  • Local time: 06:48 PM

Posted 27 June 2019 - 10:24 AM

Hi,

 

I have my Emby server on Shield TV, and everything works fine unless I want to transcode files bigger than ~2GB. The transcoding process causes the Shield to run out of memory (RAM) and it restarts the Emby Server. No error is displayed on logs since the restart is caused by the lack of memory (I checked that trough adb access to my Shield).

This problem occurs during conversion (sync) or transcoding during playback. 

 

I have already tried the following Emby versions:
4.1.1.0

4.2.0.18

4.2.0.19

4.2.0.20

 

You can check the transcoding log in attachment. 

 

Tips for developers: I don't know, but the -rtbufsize keyword for ffmpeg could limit the amount of RAM used in the process. Could this trick be an easy way to overcome this issue?

 

Thank you very much.

Attached Files



#2 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47035 posts
  • Local time: 01:48 PM

Posted 27 June 2019 - 10:55 AM

@softworkz



#3 embyciado OFFLINE  

embyciado

    Newbie

  • Members
  • 2 posts
  • Local time: 12:48 PM

Posted 01 July 2019 - 11:58 AM

A mi me sucede con archivos de menos de 1GB, teniendo una tvbox generica de 2GB de Ram a 1.5 Ghz de procesador



#4 henriquefer OFFLINE  

henriquefer

    Newbie

  • Members
  • 9 posts
  • Local time: 06:48 PM

Posted 01 July 2019 - 12:03 PM

I figured out the issue. The machine runs out of memory, and the server restarts. I rooted my Shield TV to increase swap, and now I am able to transcode with no issues. 



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138285 posts
  • Local time: 01:48 PM

Posted 01 July 2019 - 12:52 PM

Thanks for the feedback, although you shouldn't have to do that. @softworkz will be looking into this.

#6 henriquefer OFFLINE  

henriquefer

    Newbie

  • Members
  • 9 posts
  • Local time: 06:48 PM

Posted 01 July 2019 - 12:54 PM

Thanks for the feedback, although you shouldn't have to do that. @softworkz will be looking into this.

I know, but I tried some stuff on this weekend, and I was lucky increasing the available swap memory to avoid the server crash. I hope you can fix it soon. :)



#7 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1796 posts
  • Local time: 07:48 PM

Posted 04 July 2019 - 05:32 PM

@henriquefer - Are you sure that it's ffmpeg consuming a high amount of memory? Have you used any tool to verify this?



#8 henriquefer OFFLINE  

henriquefer

    Newbie

  • Members
  • 9 posts
  • Local time: 06:48 PM

Posted 04 July 2019 - 06:39 PM

Hi. I think so because I checked it with top command on adb shell. The thing os that Shield has already few amount of free RAM, and 1GB of RAM required by the ffmpeg leads to Shield run out of memory. Moreover, I overcome the issue increasing swap to like 6GB.

#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138285 posts
  • Local time: 01:48 PM

Posted 10 October 2019 - 01:07 AM

@henriquefer are you still running into this? Our 4.3 beta has an updated ffmpeg build if you'd like to try that. Thanks !







Also tagged with one or more of these keywords: Emby, server, transcoding, restart, crash, memory, leak

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users