Androktasie 1 Posted June 1, 2019 Share Posted June 1, 2019 (edited) Hello, I'm using a Shield Android TV (2015) with Shield Experience 7.2.3 (30.6.131.70) installed. After upgrading Emby Server to either 4.1.0.26, 4.1.1.0 or 4.2.0.10, the Emby service will randomly and frequently crash while merely browsing the library as it loads thumbnails and other images. This problem can be triggered with both the web frontend (Chrome and Firefox), and also the official Emby app for Android TV. I do *not* have the CoverArt plugin installed. When the crash occurs, any and all access to the server is halted until the service automatically restarts itself. A new embyserver.txt log file is generated as the service is restarted. Also if the Emby Server GUI frontend was open at the time of the crash, it closes back to the Android launcher. The problem is not specific to any one library folder. I'm not seeing any immediate cause for this issue in the logs, though I have attached them for 4.2.0.10. This was not an issue with 4.0.2.0, and downgrading the server back to that version appears to alleviate the issue. Please let me know if you require additional details, and thank you for making such clean-looking software. I'm a recent convert after years of managing my database in XMBC/Kodi/SPMC. embyserver.txt hardware_detection-63695022488.txt embyserver-63695022583.txt Edited June 1, 2019 by Androktasie 1 Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 1, 2019 Share Posted June 1, 2019 I suspect a corrupt image of some sort. Look at all your images (including the cache) for any that are 0 bytes in length. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 1, 2019 Author Share Posted June 1, 2019 I suspect a corrupt image of some sort. Look at all your images (including the cache) for any that are 0 bytes in length. Thank you for the reply. I just ran a search within com.emby.embyserver\files\cache, for "extension:png size:empty" and also "extension:jpg size:empty" and got 0 results. I ran the same searches under my libraries' source folders and also got 0 results. I don't believe this is tied to a specific image or directory. Navigating into the same location immediately after the crash works just fine, it's only on subsequent directories later on that the crash resurfaces. Is it possible that the Android OS is closing Emby due to memory usage since the shield only has 3GB of RAM? If so, how should I go about getting a logcat(?) to capture this when it happens? Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 1, 2019 Share Posted June 1, 2019 If you install the Android Debug Bridge somewhere you should be able to tail the logcat. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 1, 2019 Author Share Posted June 1, 2019 If you install the Android Debug Bridge somewhere you should be able to tail the logcat. Thank you. I was able to get adb running and clear the logcat to get a clean set of logs. The logcat starts just before I start the Emby service and ends just after the crash. It appears to be dying from a segfault. --------- beginning of crash 06-02 00:53:27.715 15972 16048 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x27effb6dc0 in tid 16048 embyserver.txt embyserver-63695033609.txt hardware_detection-63695033590.txt hardware_detection-63695033618.txt logcat.log Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 1, 2019 Share Posted June 1, 2019 Thanks ! Just to rule it out, if you uninstall the dlna plugin and then restart the server, does that have an impact? Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 1, 2019 Author Share Posted June 1, 2019 Thanks ! Just to rule it out, if you uninstall the dlna plugin and then restart the server, does that have an impact? Hi Luke, I just deleted the DLNA plugin, stopped and restarted the service, and still experienced the crash with 4.2.0.10. Please let me know if there's any other logs etc that you need. I appreciate the help. Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 1, 2019 Share Posted June 1, 2019 Is this a valid png file? /storage/GTI_ARCADIA/Videos/Television/Farscape/logo.png Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 1, 2019 Author Share Posted June 1, 2019 Seems to be, yes. Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 1, 2019 Share Posted June 1, 2019 What about these files? 2019-06-02 00:53:26.558 Debug Skia: Opening /storage/emulated/0/Android/data/com.emby.embyserver/files/metadata/library/b1/b158d6a0e6f5a9a9e3434fdd92328f83/poster.jpg for decoding without forceCleanBitmap 2019-06-02 00:53:26.562 Debug Skia: Opening /storage/emulated/0/Android/data/com.emby.embyserver/files/metadata/library/16/16fe489361e11d9bd862943277c5117f/poster.jpg for decoding without forceCleanBitmap 2019-06-02 00:53:26.564 Debug Skia: Opening /storage/emulated/0/Android/data/com.emby.embyserver/files/metadata/library/e5/e5d63b151f36fbc6b89630f782743429/poster.jpg for decoding without forceCleanBitmap 2019-06-02 00:53:26.570 Debug Skia: Opening /storage/emulated/0/Android/data/com.emby.embyserver/files/metadata/library/b4/b491489a85696a0d8658a31ac9caf9f1/poster.jpg for decoding without forceCleanBitmap 2019-06-02 00:53:26.575 Debug Skia: Opening /storage/emulated/0/Android/data/com.emby.embyserver/files/metadata/library/de/de658acba2003114babec77484af7c95/poster.jpg for decoding without forceCleanBitmap Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 2, 2019 Author Share Posted June 2, 2019 Hi, I just checked and all of those files are good. I can upload them if needed. Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 2, 2019 Share Posted June 2, 2019 No that's ok. I'm looking To adding more image processing error handling. Let's see if that helps in the next beta. Thanks. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 2, 2019 Author Share Posted June 2, 2019 Okay, thank you. For what it's worth I just tested against Shield Experience 7.2.3+ (30.6.131.8) and still encountered the problem. Renaming the entire com.emby.embyserver directory to start from scratch was also ineffective. I'll keep an eye out for the new beta. Thanks again! Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 4, 2019 Share Posted June 4, 2019 Can you please try the new beta? thanks. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 4, 2019 Author Share Posted June 4, 2019 (edited) Unfortunately it's still an issue with 4.2.0.12. I've attached debug logs and a fresh logcat. Please let me know if there's anything else I can do to help. Also on a whim (after capturing the logs) I temporarily removed all my theme.mp3 files but unfortunately it didn't make any difference. embyserver.txt embyserver-63695265719.txt hardware_detection-63695265702.txt hardware_detection-63695265728.txt logcat.log Edited June 4, 2019 by Androktasie Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 4, 2019 Share Posted June 4, 2019 I've replaced the beta apk with an updated version. Can you please try that? Thanks. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 5, 2019 Author Share Posted June 5, 2019 Sure thing. Thank you again for the assistance. embyserver.txt embyserver-63695353936.txt hardware_detection-63695353912.txt hardware_detection-63695353945.txt logcat.log Link to comment Share on other sites More sharing options...
badwhip 4 Posted June 10, 2019 Share Posted June 10, 2019 is there a shiled tv beta apk? the current version doesn’t run very well with lots of volley errors etc. Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 11, 2019 Share Posted June 11, 2019 is there a shiled tv beta apk? the current version doesn’t run very well with lots of volley errors etc. @@badwhip let's look at an example. Please attach the information requested in how to report a problem. thanks ! Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 13, 2019 Author Share Posted June 13, 2019 So, I recently picked up a Synology DS1019+ and tried rebuilding my Emby server from scratch on it using 4.1.1.0. Unlike when I rebuilt the Shield server from scratch on June 2nd, the NAS seems to have no issues with browsing multiple directories and not crashing. On average the Emby process is taking about 1GB of memory on the NAS if that gives you any indication of how big my library is. I know it's not a total apples-to-apples comparison, but it seems like the Synology build is much more stable in any case. Plus, I can actually write to the media folders now since that wasn't possible with 4.0.2.0 on the Shield. I just tried the Shield again with 4.2.0.12v2 now that my storage is faster, but same issue persists. I picked up a lifetime Premiere license though as thanks for the troubleshooting efforts. If you're still wanting to troubleshoot the Shield version, I'm always happy to test new builds and capture logs or provide any data you need. I don't like being beaten by technology. Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 13, 2019 Share Posted June 13, 2019 the Emby process is taking about 1GB of memory on the NAS I'm just guessing but that may be the key as that is fully 1/3 of the RAM on the device and Android probably isn't optimized for apps that use that much actual memory. Link to comment Share on other sites More sharing options...
Androktasie 1 Posted June 13, 2019 Author Share Posted June 13, 2019 (edited) It's definitely possible. This weekend I'll try rebuilding the Shield server again and only set up my TV or Anime library to reduce the overall footprint and see if that makes a difference. What's odd though is now that I'm looking at the Shield's RAM usage with 4.2.0.12v2 using the top command, I don't see Emby's RES memory ever going above roughly 300MB, with %MEM staying at 10.1% or below before it crashes. VIRT is 1.8GB, but that's still below Pluto's 2.2G and Youtube's 2.6G (both background, closed processes). Beyond that, can you think of any major jumps between 4.0.2.0 and 4.1.0.26 that would explain why the older version is still stable with the same library? There's so many changes listed between those versions I wouldn't know where to start looking. Edited June 13, 2019 by Androktasie Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 13, 2019 Share Posted June 13, 2019 It looks to me like a crash coming from the image processing library that we're using, skiasharp. Link to comment Share on other sites More sharing options...
danielhopfen 1 Posted June 26, 2019 Share Posted June 26, 2019 News about the problem? i have a lifetime license and 2 Nvidia Shields. I wish it worked. Thanks Link to comment Share on other sites More sharing options...
Luke 37067 Posted June 26, 2019 Share Posted June 26, 2019 Have you tried the latest beta? thanks. Link to comment Share on other sites More sharing options...
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