Command line scanner troubles, Plex Media Scanner --index --section x, causes core dump

Server Version#: 1.19.3.2843
Last seen working on Server Version#: 1.19.3.2793
Server Device: synology_bromolow_3615xs, running DSM 6.2.2-24922 Update 4

I typically schedule media index creation during quiet periods on my Plex Server. However, I see it is now crashing with the following messages immediately after running:

"/var/packages/Plex Media Server/target/Plex Media Scanner" --index --section 15
terminate called after throwing an instance of 'boost::wrapexcept<boost::bad_any_cast>'
 what():  boost::bad_any_cast: failed conversion using boost::any_cast
sh: line 1:  8252 Aborted (core dumped) "/var/packages/Plex Media Server/target/Plex Media Scanner"  --index --section 15

Reverting back to 1.19.3.2793 and the media index creation via the command line scanner is working fine.

I have the same issue when running analyze either from the dashboard or from the command line. (i wanted to try the new skip intro feature)

when running analyze from the dashboard:

May 25, 2020 12:16:42.761 [0x7f4515ffb700] Debug — Job running: EAE_ROOT='/tmp/pms-67e8bff8-ecd9-4774-ad0f-3c805781fa3c/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/99c90e0-3095-linux-x86_64/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Media Scanner' '--index' '--analyze' '--section' '3' '--log-file-suffix' ' Analysis'
May 25, 2020 12:16:42.761 [0x7f4515ffb700] Debug — Jobs: Starting child process with pid 49983
May 25, 2020 12:16:42.764 [0x7f452da81700] Debug — Completed: [192.168.178.28:54536] 200 PUT /library/sections/3/analyze (12 live) GZIP 3ms 274 bytes (pipelined: 1)
May 25, 2020 12:16:42.778 [0x7f4537499700] Verbose — JobManager: child process with handle 49983 exited
May 25, 2020 12:16:42.778 [0x7f4537499700] Debug — Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 49983 is -6 (signal: Aborted)

with

May 25 12:16:42 kreegee Plex Media Server[17815]: terminate called after throwing an instance of 'boost::wrapexcept<boost::bad_any_cast>'
May 25 12:16:42 kreegee Plex Media Server[17815]:   what():  boost::bad_any_cast: failed conversion using boost::any_cast

in the syslog.

when running it from console:

$ '/usr/lib/plexmediaserver/Plex Media Scanner' '--index' '--section' '3' -v
terminate called after throwing an instance of 'boost::wrapexcept<boost::bad_any_cast>'
  what():  boost::bad_any_cast: failed conversion using boost::any_cast
Aborted

edit: maybe this is related to Plex Media Scanner crashing on library-level analyze ?

Nice to see I’m not the only one. I’ve rolled back until I’ve had a chance to test the 1.19.3.2852 release mentioned in that thread.

And it looks like PMS 1.19.3.2852 fixes that problem. Thanks @kreegee and @StSimm1.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.