getting lots of media scanner crashes after upgrade dmesg provides:
[17321.074193] Plex Media Scan[1967]: segfault at 7f7e5fb29d89 ip 00007f7e1d1a942c sp 00007ffdfd65d6b0 error 4 in libjemalloc.so.1[7f7e1d10e000+133000]
i can downgrade to previous version and have no issues, attached are the logs, can anyone provide some insight?
[16591.908271] Plex Media Scan[28083]: segfault at 0 ip (null) sp 00007f86b6125928 error 14 in Plex Media Scanner[400000+42e000]
[16812.974507] Plex Media Scan[30278]: segfault at 0 ip (null) sp 00007fd9e6125928 error 14 in Plex Media Scanner[400000+42e000]
[17321.074193] Plex Media Scan[1969]: segfault at 0 ip (null) sp 00007f7e17925928 error 14
[17321.074193] Plex Media Scan[1967]: segfault at 7f7e5fb29d89 ip 00007f7e1d1a942c sp 00007ffdfd65d6b0 error 4 in libjemalloc.so.1[7f7e1d10e000+133000]
[17321.074197] in Plex Media Scanner[400000+42e000]
There are some files in your library which it does NOT like and causing problems. As I see the scanner logs (where you can also look)…
Here is one instance of many.
Plex Media Scanner Analysis.log:Mar 10, 2017 08:51:02.027 [0x7fc691874800] ERROR - [FFMPEG] - moov atom not found
Plex Media Scanner Analysis.log:Mar 10, 2017 08:51:02.027 [0x7fc691874800] ERROR - Exception extracting thumbnail from media file '/data/Anime/The Disastrous Life of Saiki K/Season 1/The Disastrous Life of Saiki K - S01E14 - ’Sup Homies!! Outsider + A Transfer Student- The First Encounters + Mr. and Mrs. Nendou Together! + Reviving Café Mami! + Guilty or Not Guilty!! A Theft Case.mp4' (Could not parse /data/Anime/The Disastrous Life of Saiki K/Season 1/The Disastrous Life of Saiki K - S01E14 - ’Sup Homies!! Outsider + A Transfer Student- The First Encounters + Mr. and Mrs. Nendou Together! + Reviving Café Mami! + Guilty or Not Guilty!! A Theft Case.mp4 (error=-1094995529): Invalid data found when processing input)
That’s not a valid MP4. It might be a AVI, renamed to MP4… no way of knowing.
What happens when you play that specific file in external player ?
Edit: Having thought about this, there is ONE other possibility. The codec involved might be corrupt. If you have doubt, let’s check.
in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs you see the subdirectory containing them.
If any are zero-length this is NOT good… Delete it.
If one is notably shorter than the other… Also not good… Delete it too.
Now select your largest video library (using multi-select) and Analyze the media. This will force download fresh codecs.
Hello ChuckPA,
Thank you for looking into this, that file did not pass MD5 which means it was corrupted, do you have a list of the other files causing the issues?
just incase, here is the codecs:
-rw-r–r-- 1 plex plex 433080 Mar 5 15:46 libaac_decoder.so
-rw-r–r-- 1 plex plex 354616 Mar 5 15:46 libaac_encoder.so
-rw-r–r-- 1 plex plex 301160 Mar 5 15:46 libac3_decoder.so
-rw-r–r-- 1 plex plex 292104 Mar 5 15:46 libac3_encoder.so
-rw-r–r-- 1 plex plex 435784 Mar 5 15:46 libdca_decoder.so
-rw-r–r-- 1 plex plex 322344 Mar 5 15:46 libeac3_decoder.so
-rw-r–r-- 1 plex plex 1378376 Mar 5 15:46 libh264_decoder.so
-rw-r–r-- 1 plex plex 1086440 Mar 5 15:47 libhevc_decoder.so
-rw-r–r-- 1 plex plex 1270088 Mar 5 15:46 liblibx264_encoder.so
-rw-r–r-- 1 plex plex 323784 Mar 5 15:46 libmp3_decoder.so
-rw-r–r-- 1 plex plex 487944 Mar 5 15:46 libmpeg1video_decoder.so
-rw-r–r-- 1 plex plex 484008 Mar 5 15:46 libmpeg2video_decoder.so
-rw-r–r-- 1 plex plex 683560 Mar 5 15:46 libmpeg4_decoder.so
-rw-r–r-- 1 plex plex 629432 Mar 5 15:46 libmsmpeg4v3_decoder.so
-rw-r–r-- 1 plex plex 909816 Mar 5 15:46 libvc1_decoder.so
-rw-r–r-- 1 plex plex 286312 Mar 5 15:46 libvp6f_decoder.so
-rw-r–r-- 1 plex plex 1528008 Mar 5 15:46 libvp9_decoder.so
-rw-r–r-- 1 plex plex 303048 Mar 5 15:46 libwmav2_decoder.so
-rw-r–r-- 1 plex plex 629432 Mar 5 15:46 libwmv1_decoder.so
-rw-r–r-- 1 plex plex 909816 Mar 5 15:46 libwmv3_decoder.so
Hello ChuckPA,
it was this file: /data/Anime/The Disastrous Life of Saiki K/Season 1/The Disastrous Life of Saiki K - S01E14 - ’Sup Homies!! Outsider + A Transfer Student- The First Encounters + Mr. and Mrs. Nendou Together! + Reviving Café Mami! + Guilty or Not Guilty!! A Theft Case.mp4
I’m getting the same errors after upgrading to 1.4.3.3433 on Ubuntu 12.04.5 LTS (32 bit). I’ll buy that I have a file that is giving problems as well but why was I not getting segfaults in 1.4.2? Also, when these segfaults are happening is this meaning that the scan/update is stopping or does the process continue while just skipping that file? How do I figure out which file is causing the issues?
I really miss the days when Plex just worked… I cringe every time an update is released anymore.
It’s most likely because Ubuntu 12’s glibc is growing increasingly incompatible with the glibc version PMS is built with. At the core of PMS and Ubuntu itself is glibc . What version of glibc do you have installed on your system?
ldd --version should show you easily. That’s where to start looking at the why?
Hello ChuckPA,
unfortunately it popped up again, i have attached the logs, here is the output from ldd --version:
ldd (Ubuntu GLIBC 2.24-3ubuntu2) 2.24
Here is the dmesg message:
[10985.369227] Plex Media Scan[6250]: segfault at 0 ip (null) sp 00007f67b11258d8 error 14 in Plex Media Scanner[400000+42e000]
I know I need to do an update but regardless, the person above stated he was using Ubuntu 16 and had the same such situation… a file didn’t trigger a segfault while running 1.4.2 but now does so when running 1.4.3 … I would think that Plex being able to realize something is wrong with a file and moving on would be ideal and seemingly what it was doing in the last version.
Also, I’m trying to track down what file would be causing this but the log files are an absolute mess.
root@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs# ls -la total 41808 drwxr-xr-x 3 plex nogroup 4096 Mar 15 14:19 . drwxr-xr-x 13 plex plex 4096 Mar 15 14:03 .. -rw-r--r-- 1 plex plex 374 Feb 23 23:44 Plex Crash Uploader.1.log -rw-r--r-- 1 plex plex 374 Feb 12 04:17 Plex Crash Uploader.2.log -rw-r--r-- 1 plex plex 269 Dec 20 01:07 Plex Crash Uploader.3.log -rw-r--r-- 1 plex plex 374 Dec 17 01:37 Plex Crash Uploader.4.log -rw-r--r-- 1 plex plex 374 Dec 17 01:35 Plex Crash Uploader.5.log -rw-r--r-- 1 plex plex 374 Feb 24 21:37 Plex Crash Uploader.log -rw-r--r-- 1 plex plex 10104 Mar 4 00:11 Plex DLNA Server.1.log -rw-r--r-- 1 plex plex 389 Feb 24 21:37 Plex DLNA Server.2.log -rw-r--r-- 1 plex plex 389 Feb 23 23:45 Plex DLNA Server.3.log -rw-r--r-- 1 plex plex 503727 Feb 22 01:03 Plex DLNA Server.4.log -rw-r--r-- 1 plex plex 389 Feb 12 04:19 Plex DLNA Server.5.log -rw-r--r-- 1 plex plex 391 Mar 14 14:03 Plex DLNA Server.log -rw-r--r-- 1 plex plex 350 Dec 13 2015 Plex DLNA Server.log.1 -rw-r--r-- 1 plex plex 12853 Dec 6 2015 Plex DLNA Server.log.2 -rw-r--r-- 1 plex plex 0 Dec 5 2015 Plex DLNA Server.log.3 -rw-r--r-- 1 plex plex 12503 Dec 3 2015 Plex DLNA Server.log.4 -rw-r--r-- 1 plex plex 2126 Nov 22 2015 Plex DLNA Server.log.5 -rw-r--r-- 1 plex plex 0 Mar 14 14:03 Plex DLNA Server Neptune.log -rw-r--r-- 1 plex plex 0 Feb 28 00:13 Plex DLNA Server Neptune.old.log -rw-r--r-- 1 plex plex 512 Mar 15 14:07 Plex Media Scanner.1.log -rw-r--r-- 1 plex plex 512 Mar 15 14:07 Plex Media Scanner.2.log -rw-r--r-- 1 plex plex 513 Mar 15 14:05 Plex Media Scanner.3.log -rw-r--r-- 1 plex plex 1089 Mar 15 14:05 Plex Media Scanner.4.log -rw-r--r-- 1 plex plex 512 Mar 15 14:03 Plex Media Scanner.5.log -rw-r--r-- 1 plex plex 535 Mar 15 14:15 Plex Media Scanner Analysis.1.log -rw-r--r-- 1 plex plex 535 Mar 15 14:11 Plex Media Scanner Analysis.2.log -rw-r--r-- 1 plex plex 535 Mar 15 14:09 Plex Media Scanner Analysis.3.log -rw-r--r-- 1 plex plex 535 Mar 15 14:06 Plex Media Scanner Analysis.4.log -rw-r--r-- 1 plex plex 535 Mar 15 13:58 Plex Media Scanner Analysis.5.log -rw-r--r-- 1 plex plex 535 Mar 15 14:16 Plex Media Scanner Analysis.log -rw-r--r-- 1 plex plex 1595 Mar 6 2016 Plex Media Scanner Analysis.log.1 -rw-r--r-- 1 plex plex 1236 Mar 6 2016 Plex Media Scanner Analysis.log.2 -rw-r--r-- 1 plex plex 977 Mar 6 2016 Plex Media Scanner Analysis.log.3 -rw-r--r-- 1 plex plex 977 Mar 6 2016 Plex Media Scanner Analysis.log.4 -rw-r--r-- 1 plex plex 977 Mar 6 2016 Plex Media Scanner Analysis.log.5 -rw-r--r-- 1 plex plex 19143 Mar 15 05:53 Plex Media Scanner Chapter Thumbnails.1.log -rw-r--r-- 1 plex plex 9476 Mar 15 05:52 Plex Media Scanner Chapter Thumbnails.2.log -rw-r--r-- 1 plex plex 714 Mar 15 05:52 Plex Media Scanner Chapter Thumbnails.3.log -rw-r--r-- 1 plex plex 1062 Mar 15 05:51 Plex Media Scanner Chapter Thumbnails.4.log -rw-r--r-- 1 plex plex 1422 Mar 15 05:49 Plex Media Scanner Chapter Thumbnails.5.log -rw-r--r-- 1 plex plex 6506 Mar 15 05:54 Plex Media Scanner Chapter Thumbnails.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.1.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.2.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.3.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.4.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.5.log -rw-r--r-- 1 plex plex 546 Mar 15 04:10 Plex Media Scanner Deep Analysis.log -rw-r--r-- 1 plex plex 512 Mar 15 14:19 Plex Media Scanner.log -rw-r--r-- 1 plex plex 352 Mar 6 2016 Plex Media Scanner.log.1 -rw-r--r-- 1 plex plex 352 Mar 6 2016 Plex Media Scanner.log.2 -rw-r--r-- 1 plex plex 8584 Mar 6 2016 Plex Media Scanner.log.3 -rw-r--r-- 1 plex plex 352 Mar 6 2016 Plex Media Scanner.log.4 -rw-r--r-- 1 plex plex 352 Mar 6 2016 Plex Media Scanner.log.5 -rw-r--r-- 1 plex plex 830564 Mar 14 14:01 Plex Media Server.1.log -rw-r--r-- 1 plex plex 5242903 Mar 14 08:48 Plex Media Server.2.log -rw-r--r-- 1 plex plex 5242987 Mar 13 01:33 Plex Media Server.3.log -rw-r--r-- 1 plex plex 5242893 Mar 11 04:06 Plex Media Server.4.log -rw-r--r-- 1 plex plex 5242909 Mar 9 21:28 Plex Media Server.5.log -rw-r--r-- 1 plex plex 1997934 Mar 15 14:20 Plex Media Server.log -rw-r--r-- 1 plex plex 5242949 Mar 4 2016 Plex Media Server.log.1 -rw-r--r-- 1 plex plex 194370 Feb 25 2016 Plex Media Server.log.2 -rw-r--r-- 1 plex plex 5242957 Feb 25 2016 Plex Media Server.log.3 -rw-r--r-- 1 plex plex 5243038 Feb 19 2016 Plex Media Server.log.4 -rw-r--r-- 1 plex plex 2200663 Feb 13 2016 Plex Media Server.log.5 drwxr-xr-x 2 plex nogroup 20480 Mar 15 10:46 PMS Plugin Logs root@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs#
Matching these files to dates is a nightmare… things just don’t seem to line up… and worse yet, it seems that many files are identical (for instance, look at deep analysis for 1, 2, 3, 4, and 5… they are all the same file.
Those files may look like a mess but they make a lot of sense to me (an acquired tast ).
Also, if you’d like to increase them, add LogNumFiles="10"`` to your Preferences.xml` file when PMS isn’t running.
As for PMS realizing a file is damaged in a way not at all expected (since most of us preview our media first), Yes, it should. Making it bullet-proof takes time. That’s what the Log files tell me… what was it doing last. I can see the time marks and thread IDs. From those I have a more clear understanding of the current state.
If you’re more stable on 1.4.2, then please stay with it while we figure this out. There have been other issues with 1.4.3. There’s got to be something in common and when we find it… a “Doooh” moment but isn’t that how it always is?
@jadechessink said:
Hello ChuckPA,
unfortunately it popped up again, i have attached the logs, here is the output from ldd --version:
ldd (Ubuntu GLIBC 2.24-3ubuntu2) 2.24
Here is the dmesg message:
[10985.369227] Plex Media Scan[6250]: segfault at 0 ip (null) sp 00007f67b11258d8 error 14 in Plex Media Scanner[400000+42e000]
In the Plex Media Scanner “.1” log, you’ll see the image files it was trying to create.
the last one listed there before the restart is:
"Mar 15, 2017 05:09:22.902 [0x7f51fcbff700] DEBUG - Created chapter thumbnail for metadata item 59325, media item 122745 for chapter number 16:6001704 at /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/e/60548ab3960e2d35d9b6c6d1ca30b69f0e68192.bundle/Contents/Chapters/chapter16.jpg"
In Plex Media Scanner.log it picks back up fresh, adds the iNotify events to the list (startup), and then picks up. If you go into that bundle directory and look at the chapters, figure out the actual time stamp for Chapter 15 and start to play there, if there is file damage in the playback, you have the answer. This is what the Scanner choked on, then you found it. This type of information is priceless! All we would need to do after this is remux & Skip from the beginning through chapter 15, truncating at chapter 17. I can submit that to engineering as something easily reproducible and they’ll take it from there
Hello ChuckPA,
i found the file in question and it played flawlessly, it also passed md5. the chapter thumbnail also seems to be generated successfully as it is a full picture, should i be looking for something else?
I’m glad you found it. it plays flawlessly. Also good. You have the complete set of chapter thumbnails?
The challenge now is to find out what it started next. Now we trace back into your Logs and see what followed the successful one. Check it out and see what happens.
If need be, create a new directory and new library then copy the movie there. (make the whole operation ‘atomic’) . If it’s against successful there, see if we can start adding ‘just enough’ (I know, a real crap shoot) to make it fail. We have to find ‘the list’ of files which were analyzed. That’s not an easy task either.
Don’t know if relevant to the scanner crashes here but Version 1.5.1 has just been released fro Plex Pass and it has a fix for the scanner crash/hang and subsequent crash on exit