Video format crashes Server?

This is a really strange issue and from what I can tell it only happens in Rasplex (as watching the same video over web client doesn’t cause the error). I think it might have to do with some video format as it consistently happens when I reproduce some videos but doesn’t have any issue with others. All these videos I was able to play them before on an old server version and rasplex 1.6.12 but I havent roll it back yet.

I can confirm the same error on rasplex 1.7.1 and 1.8.0 (It failed on 1.6.2 but didnt crashed the server) Server is running 1.4.4 but was also present in 1.4.3

The only error Rasplex tells me its that it couldnt find the media and the logs on the server reads

Mar 21, 2017 16:31:04.876 [4004] DEBUG - Detected character set of UTF-8. Mar 21, 2017 16:31:04.892 [5156] DEBUG - Completed: [10.33.2.92:55008] 206 GET /library/streams/469305?encoding=utf-8 (10 live) TLS 70ms 93268 bytes (pipelined: 5) Mar 21, 2017 16:31:04.939 [5156] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication. Mar 21, 2017 16:31:04.939 [5156] DEBUG - Auth: authenticated user 8373502 as ProfesoresCNSU Mar 21, 2017 16:31:04.939 [4748] DEBUG - Request: [10.33.2.92:55012 (Subnet)] GET /library/parts/25/1447949888/file.mp4 (11 live) TLS Signed-in Token (ProfesoresCNSU) Mar 21, 2017 16:31:04.939 [4748] DEBUG - Streaming Resource: Attempting to create AdHoc dp session 3f517833-0a03-4473-9287-616c559db7c9 for part 25 Mar 21, 2017 16:31:04.985 [4748] DEBUG - TranscodeUniversalRequest: using profile Generic Mar 21, 2017 16:31:04.985 [4748] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/23?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&includeBandwidths=1&X-Plex-Client-Capabilities=protocols%3Dshoutcast%2Chttp-video;videoDecoders%3Dh264{profile%3Ahigh%26resolution%3A1080%26level%3A51};audioDecoders%3Dmp3%2Caac Mar 21, 2017 16:31:04.985 [4748] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/23?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&includeBandwidths=1&X-Plex-Client-Capabilities=protocols%3Dshoutcast%2Chttp-video;videoDecoders%3Dh264{profile%3Ahigh%26resolution%3A1080%26level%3A51};audioDecoders%3Dmp3%2Caac Mar 21, 2017 16:31:05.001 [5156] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication. Mar 21, 2017 16:31:05.001 [5156] DEBUG - Auth: authenticated user 8373502 as ProfesoresCNSU Mar 21, 2017 16:31:05.001 [4592] DEBUG - Request: [127.0.0.1:61457 (Loopback)] GET /library/metadata/23 (11 live) GZIP Signed-in Token (ProfesoresCNSU) Mar 21, 2017 16:31:05.001 [4592] DEBUG - Audio Stream: 41, Subtitle Stream: 469305 Mar 21, 2017 16:31:05.001 [4592] DEBUG - We're going to try to auto-select an audio stream for account 8373502. Mar 21, 2017 16:31:05.001 [4592] DEBUG - Selecting best audio stream for part ID 87129 (autoselect: 1 language: en) Mar 21, 2017 16:31:05.001 [4592] DEBUG - Audio Stream: 486345, Subtitle Stream: 486343 Mar 21, 2017 16:31:05.001 [4592] DEBUG - Audio Stream: 43, Subtitle Stream: 469306 Mar 21, 2017 16:31:05.001 [4592] DEBUG - It took 0.0 sec to serialize a list with 1 elements. Mar 21, 2017 16:31:05.017 [5156] DEBUG - Completed: [127.0.0.1:61457] 200 GET /library/metadata/23 (11 live) GZIP 14ms 2745 bytes Mar 21, 2017 16:31:05.017 [4748] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/metadata/23?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&includeBandwidths=1&X-Plex-Client-Capabilities=protocols%3Dshoutcast%2Chttp-video;videoDecoders%3Dh264{profile%3Ahigh%26resolution%3A1080%26level%3A51};audioDecoders%3Dmp3%2Caac Mar 21, 2017 16:31:08.449 [5156] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication. Mar 21, 2017 16:31:08.449 [5156] DEBUG - Auth: authenticated user 1 as videotecaCNSU Mar 21, 2017 16:31:08.449 [5156] DEBUG - Auth: Came in with a super-token, authorization succeeded. Mar 21, 2017 16:31:08.449 [5156] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication. Mar 21, 2017 16:31:08.449 [5156] DEBUG - Auth: Came in with the master token, authorization succeeded. Mar 21, 2017 16:31:08.449 [4004] DEBUG - Request: [127.0.0.1:61458 (Loopback)] GET /status/sessions (13 live) Signed-in Token (videotecaCNSU) Mar 21, 2017 16:31:08.449 [4004] DEBUG - [Now] Adding 0 sessions. Mar 21, 2017 16:31:08.449 [4004] DEBUG - It took 0.0 sec to serialize a list with 0 elements. Mar 21, 2017 16:31:08.449 [5156] DEBUG - Completed: [127.0.0.1:61458] 200 GET /status/sessions (13 live) 4ms 292 bytes (pipelined: 1) Mar 21, 2017 16:31:08.449 [4592] DEBUG - Request: [127.0.0.1:61459 (Loopback)] GET /library/sections (12 live) GZIP Signed-in Token (videotecaCNSU) Mar 21, 2017 16:31:08.464 [4592] DEBUG - It took 0.0 sec to serialize a list with 13 elements. Mar 21, 2017 16:31:08.464 [5156] DEBUG - Completed: [127.0.0.1:61459] 200 GET /library/sections (11 live) GZIP 14ms 1740 bytes Mar 21, 2017 16:31:08.464 [4652] DEBUG - Job running: C:\Program Files (x86)\Plex\Plex Media Server\CrashUploader.exe "--directory=C:\Users\adminplex\AppData\Local\Plex Media Server\Crash Reports\1.4.4.3495-edef59192" --version=1.4.4.3495-edef59192 "--platform=windows-i386 (6.1 (Build 7601))" --serverUuid=1631e731c3c83e1e68bab59cc79704bf330c6efb --userId=videoteca@launidad.edu.ar --url=https://crashreport.plexapp.com
server running on
Plex Media Server v1.4.4.3495-edef59192 - Microsoft PC x64 - build: windows-i386 english - GMT -03:00
Windows version: 6.1 (Build 7601), language en-US
6 1598 MHz processor(s): Architecture=0, Level=6, Revision=16130 Processor Identifier=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel

On a stranger twist, I created an optimised version within Plex and tried to play that version.

And it worked! for a short time until I try to reproduce the error on another video and seems like that video got corrupted also. Im still publishing this case here as I couldn’t cause the error on other clients (web, android and windows 10 phone)

Hey @videotecaCNSU. I just want to say thank you for helping out on the rasplex forum so much. That kind of participation is what keeps this community alive, so thanks for donating your time. :slight_smile:

Have you tried running mediainfo on both original and optimized versions to see what the differences are?

Have you tried the PMS Plexpass v1.5.0.3501? And is this a remote server versus local?

thanks @benjaminwolf, I just try to give something back

I haven’t tried it yet, but I will as soon as I can back up the database just in case. I also plan to build a second server just to test if the error its really on the files or if its something else on the rasplex+server combination

About the versions are both created from the same setup Im using for all videos, the only difference I can really see is that the crash seems to happen on versions not optimized for streaming but I really dont think thats the reason.

Anyway I will paste it here as soon as I confirm the problem is caused by the video.

Oh, you are going to love this…

Same videos on a backup server I had worked fine on 1.2.7 before updating
as soon as I updated it to 1.4.4 and even on 1.5.0 it started to crash the server

example of a broken file

General
Complete name                            : C:\videos\peliculas\BTtF2\Back To The Future Part 2.720p.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
File size                                : 1.66 GiB
Duration                                 : 1 h 48 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 198 kb/s
Movie name                               : Back to the Future Part II 1080p
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Writing application                      : HandBrake 0.10.2 2015060900

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 48 min
Bit rate                                 : 2 000 kb/s
Width                                    : 998 pixels
Height                                   : 722 pixels
Display aspect ratio                     : 1.85:1
Original display aspect ratio            : 1.85:1
Frame rate mode                          : Variable
Frame rate                               : 23.976 (24000/1001) FPS
Minimum frame rate                       : 23.810 FPS
Maximum frame rate                       : 24.390 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.116
Stream size                              : 1.51 GiB (91%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=14000 / vbv_bufsize=14000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1 h 48 min
Bit rate mode                            : Variable
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 149 MiB (9%)
Title                                    : Stereo / Stereo
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16

example of a video that its working

General
Unique ID                                : 245928095732943790554537533223260358484 (0xB904074381B81381ECC06AFCCA8F8754)
Complete name                            : C:\videos\peliculas\The.Imitation.Game.2014.1080p.BluRay.x264\The.Imitation.Game.2014.720p.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.69 GiB
Duration                                 : 1 h 54 min
Overall bit rate                         : 2 119 kb/s
Movie name                               : The.Imitation.Game.2014.1080p
Writing application                      : HandBrake rev5474
Writing library                          : libmkv 0.6.5.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 54 min
Bit rate                                 : 2 000 kb/s
Width                                    : 1 280 pixels
Height                                   : 532 pixels
Display aspect ratio                     : 2.40:1
Original display aspect ratio            : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.122
Stream size                              : 1.55 GiB (92%)
Writing library                          : x264 core 142 r2389 956c8d8
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=10000 / vbv_bufsize=10000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode                                     : Dolby Digital
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1 h 54 min
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 105 MiB (6%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Ok maybe this one its a better example of a file working as its also an mp4 and its practically identical

General
Complete name                            : C:\videos\peliculas\Suckerpunch extended\Sucker punch extended cut (2011).720p.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
File size                                : 1.96 GiB
Duration                                 : 2 h 7 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 198 kb/s
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Writing application                      : HandBrake 0.10.2 2015060900

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 7 min
Bit rate                                 : 2 000 kb/s
Width                                    : 1 280 pixels
Height                                   : 534 pixels
Display aspect ratio                     : 2.40:1
Original display aspect ratio            : 2.40:1
Frame rate mode                          : Variable
Frame rate                               : 23.976 FPS
Minimum frame rate                       : 23.810 FPS
Maximum frame rate                       : 24.390 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.122
Stream size                              : 1.78 GiB (91%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=14000 / vbv_bufsize=14000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 2 h 7 min
Bit rate mode                            : Variable
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 175 MiB (9%)
Title                                    : Stereo / Stereo
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16

Yup, I had to roll back the server to 1.2.7 to avoid the error

Servers version
1.5.0
1.4.4
1.4.3
1.3.4
1.3.3
1.3.2
all reported the same error on the same videos

what OS is your backup server?

@daniel.cull said:
what OS is your backup server?

Win 7 32 bits, I could probably test it also on an ubuntu machine I also have around

seems very bizarre to be honest

if you installed PMP on one of your machines and played the file are you sure PMS would not crash?

I will try to test some other clients tomorrow. From what I can tell this error its probably only possible when it isn´t necessary any transcoding

did you try those files in plexweb already?

plexweb, the android and windows phone client.

In all of them it works just fine

all directplay?

There was a mix bag I need to retest tomorrow. Including forcing rasplex to transcode everything. For shure I was able to play it from the web client with direct play and couldn’t force windows phone to direct play it for some reason.

If I haven’t mentioned already, all test are run from the same vlan as the server.

@benjaminwolf at least i figure it out that with a soft reset you can fix the duplicated UUID when you clone rasplex installations without reflashing

@videotecaCNSU Yeah, that UUID setting makes cloning the rPi’s much easier. :slight_smile:

Would you be willing to upload a sample somewhere of one of the videos that is not working? We’ll need it to test with internally and possibly pass it onto the lead developer.

The plot thickens…
I couldt get a direct play from the web client (but i did get a video and audio direct stream) and it worked without crashes
I tried Android, windows phone and PMP on direct play and they didnt present any crash.
I tried always transcode on rasplex and it also didnt crash.

From what I can tell this error its only present with Rasplex on direct play scenarios with those videos. I guess I have to upload a whole movie for someone else to test it

Oh my joy!

I tried playing the same media from an ubuntu server. And it worked fine on most of the troublesome videos (maybe pointing out that could be a problem located on windows servers); until with one of the videos I was able to crash Rasplex (crash id 0323-1638) and forcing a reboot, plus a crash on the service of the server.

Guess I should start uploading some examples to a file share service

@videotecaCNSU said:
Oh my joy!

I tried playing the same media from an ubuntu server. And it worked fine on most of the troublesome videos (maybe pointing out that could be a problem located on windows servers); until with one of the videos I was able to crash Rasplex (crash id 0323-1638) and forcing a reboot, plus a crash on the service of the server.

Guess I should start uploading some examples to a file share service

it would be good if the logs/crash report were based on the latest version of PMS and Rasplex, the logs are PMS 1.4.4.3495.0 and 1.7.1 Rasplex.

Plex Media Server 1.5.1 just dropped as well.

@daniel.cull said:
it would be good if the logs/crash report were based on the latest version of PMS and Rasplex, the logs are PMS 1.4.4.3495.0 and 1.7.1 Rasplex.

Plex Media Server 1.5.1 just dropped as well.

Ok shure, here you have (crash id 0327-1509 0327-1520) Im still trying to upload the videos somewhere and looking to what could be wrong of the format