Stremio / stremio-bugs

🐛 Post bug reports in Issues here
63 stars 10 forks source link

Bug: Crashing issue when trying to start video. #817

Open Acecool opened 8 months ago

Acecool commented 8 months ago

I have tried enabling / disabling hardware encoding, and opening videos in different windows. Now, I am waiting for it to crash again with output to logs.txt in my shortcut. So far it hasn't crashed but right now I'm not trying to start videos - I'm just porting over my list.

Windows 10, 22H2, 3080TI, 7800x3d, 64gb ddr5 @ 6600 cl32. Fresh windows install with all updates and .net, etc.. installed.

Acecool commented 8 months ago

Log file bits at the end say issue with skipping - which I did notice just before the crash. But memory usage wasn't abnormal, cpu, etc.. was all low.

[cplayer] Opening done: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
     Subs  --sid=1 --slang=eng 'English (SDH)' (subrip)
[vd] Container reported FPS: 23.976024
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] Looking at hwdec h264-d3d11va...
[vd] Could not create device.
[vd] Looking at hwdec h264-dxva2...
[vd] Trying hardware decoding via h264-dxva2.
[vd] Pixel formats supported by decoder: cuda dxva2_vld d3d11va_vld d3d11 yuv420p
[vd] Codec profile: High (0x64)
[vd] Requesting pixfmt 'dxva2_vld' from decoder.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     eac3 - ATSC A/52B (AC-3, E-AC-3)
[ad] Opening decoder eac3
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: eac3 (ATSC A/52B (AC-3, E-AC-3))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: cuda dxva2_vld d3d11va_vld d3d11 yuv420p
[vd] Codec profile: High (0x64)
[vd] Requesting pixfmt 'dxva2_vld' from decoder.
[mkv] select track 2
[mkv] refresh seek to -11.000000
[sub/ass] libass API version: 0x1502000
[sub/ass] libass source: commit: 0d170d9a1d7e7fee948141eac988c1e6391dfc62
[sub/ass] Shaper: FriBidi 1.0.11 (SIMPLE) HarfBuzz-ng 3.2.0 (COMPLEX)
[sub/ass] Setting up fonts...
[sub/ass] Using font provider directwrite (with GDI)
[sub/ass] Done.
Track switched:
 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
 (+) Subs  --sid=1 --slang=eng 'English (SDH)' (subrip)
[cplayer] Set property: sid="1" -> 1
[cplayer] Set property: time-pos=0.000000 -> 1
[mkv] queuing seek to 0.000000 (cascade)
[cplayer] hr-seek, skipping to 0.000000
[mkv] execute seek (to 0.000000 flags 32)
[mkv] seek done
[vd] Pixel formats supported by decoder: cuda dxva2_vld d3d11va_vld d3d11 yuv420p
[vd] Codec profile: High (0x64)
[vd] Requesting pixfmt 'dxva2_vld' from decoder.
Using hardware decoding (dxva2).
[vd] Decoder format: 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
VO: [libmpv] 1920x1080 dxva2_vld[nv12]
[cplayer] VO: Description: render API for libmpv
[vo/opengl-cb] reconfig to 1920x1080 dxva2_vld[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[libmpv_render] Window size: 3840x2160 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 1920x1080 (1:1)
[libmpv_render] Video display: (0, 0) 1920x1080 -> (0, 0) 3840x2160
[libmpv_render] Video scale: 2.000000/2.000000
[libmpv_render] OSD borders: l=0 t=0 r=0 b=0
[libmpv_render] Video borders: l=0 t=0 r=0 b=0
[cplayer] first video frame after restart shown
[af] [in] 48000Hz 5.1(side) 6ch floatp
[af] [userspeed] 48000Hz 5.1(side) 6ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz 5.1(side) 6ch floatp
[ao] Trying audio driver 'wasapi'
[ao/wasapi] requested format: 48000 Hz, 5.1(side) channels, floatp
[ao/wasapi] No device specified. Selecting default.
[ao/wasapi] Selecting device '{8af0e0b4-7dc4-4136-9675-96445c135488}' (Speakers (ROCCAT Khan AIMO))
[ao/wasapi] Monitoring changes in device {0.0.0.00000000}.{8af0e0b4-7dc4-4136-9675-96445c135488}
[ao/wasapi] Trying 5.1(side) float (32/32 bits) @ 96000hz (shared) -> ok
[ao/wasapi] Accepted as 5.1(side) float @ 96000hz -> 5.1(side) float (32/32 bits) @ 96000hz (shared)
[ao/wasapi] Device period: 10 ms
[ao/wasapi] Buffer frame count: 4800 (50 ms)
[ao/wasapi] IAudioClock::GetFrequency gave a frequency of 2304000.
[ao/wasapi] device buffer: 4800 samples.
[ao/wasapi] using soft-buffer of 19200 samples.
AO: [wasapi] 96000Hz 5.1(side) 6ch float
[cplayer] AO: Description: Windows WASAPI audio output (event mode)
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz 5.1(side) floatp -> 96000Hz 5.1(side) float
[af] [out] 96000Hz 5.1(side) 6ch float
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000, audio=playing, video=playing
[cplayer] Set property: sub-pos="98" -> 1
[sub/ass] fontselect: (sans-serif, 400, 0) -> ArialMT, 0, ArialMT
[libmpv_render] Reallocating OSD texture to 2048x256.
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: pause=true -> 1
[cplayer] Set property: sub-pos="98" -> 1
[cplayer] Set property: pause=false -> 1
[libmpv_render] Reallocating OSD texture to 2048x512.
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: pause=true -> 1
[cplayer] Set property: sub-pos="98" -> 1
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: pause=false -> 1
[cplayer] Set property: sub-pos="98" -> 1
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: sub-pos="98" -> 1
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: sub-pos="98" -> 1
[mkv] Corrupt file detected. Trying to resync starting from position 525596118...
[mkv] Cluster found at 526559383.
Invalid audio PTS: 485.376000 -> 486.496000

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

[ffmpeg] stream level seek from 539090401 to 539796613
[mkv] Corrupt file detected. Trying to resync starting from position 539797390...
[mkv] Cluster found at 540069389.
[cplayer] Set property: sub-pos="83" -> 1
[ffmpeg/video] h264: mmco: unref short failure
Invalid audio PTS: 497.024000 -> 498.144000
[cplayer] Set property: sub-pos="98" -> 1
Invalid video timestamp: 498.289000 -> 496.996000
[libmpv_render/dxva2-egl] Failed to flush frame after 8 ms
[cplayer] Set property: sub-pos="83" -> 1
[cplayer] Set property: pause=true -> 1
[libmpv_render] Window size: 3840x2080 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 1920x1080 (1:1)
[libmpv_render] Video display: (0, 0) 1920x1080 -> (71, 0) 3697x2080
[libmpv_render] Video scale: 1.925521/1.925926
[libmpv_render] OSD borders: l=71 t=0 r=72 b=0
[libmpv_render] Video borders: l=71 t=0 r=72 b=0
Acecool commented 8 months ago

Left it running overnight, no video playing. First video opened, crash.

I tried with hardware encoding disabled.

memory usage is 32% of 64GB and cpu is at 10% right now while doing a few things.

[vd] Container reported FPS: 23.976024
[vd] Codec list:
[vd]     hevc - HEVC (High Efficiency Video Coding)
[vd]     hevc_qsv (hevc) - HEVC video (Intel Quick Sync Video acceleration)
[vd]     hevc_cuvid (hevc) - Nvidia CUVID HEVC decoder
[vd] Opening decoder hevc
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 16 logical cores.
[vd] Requesting 16 threads for decoding.
[vd] Selected codec: hevc (HEVC (High Efficiency Video Coding))
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     eac3 - ATSC A/52B (AC-3, E-AC-3)
[ad] Opening decoder eac3
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: eac3 (ATSC A/52B (AC-3, E-AC-3))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] DR failed - disabling.
[mkv] select track 2
[mkv] refresh seek to -11.000000
[sub/ass] libass API version: 0x1502000
[sub/ass] libass source: commit: 0d170d9a1d7e7fee948141eac988c1e6391dfc62
[sub/ass] Shaper: FriBidi 1.0.11 (SIMPLE) HarfBuzz-ng 3.2.0 (COMPLEX)
[sub/ass] Setting up fonts...
[sub/ass] Using font provider directwrite (with GDI)
[sub/ass] Done.
Track switched:
 (+) Video --vid=1 (*) (hevc 3840x1606 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)

[cplayer] Set property: sid="1" -> 1
[cplayer] Set property: time-pos=33.825000 -> 1
[mkv] queuing seek to 33.825000 (cascade)
[cplayer] hr-seek, skipping to 33.825000
[mkv] execute seek (to 33.825000 flags 32)
[mkv] Seeking to 9439738508 to read header element 0x1c53bb6b.
[ffmpeg] stream level seek from 37960 to 9439738508
[mkv] Parsing cues...
[ffmpeg] stream level seek from 9440406907 to 71142186
[mkv] seek done
[cplayer] Set property: sub-pos="98" -> 1
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[vd] Using software decoding.
[vd] Decoder format: 3840x1606 yuv420p10 bt.2020-ncl/bt.2020/pq/limited/auto SP=3.773399 CL=uhd
[vd] Using container aspect ratio.
[vf] [in] 3840x1606 yuv420p10 bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
[vf] [userdeint] 3840x1606 yuv420p10 bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x1606 yuv420p10 bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
[vf] [autorotate] (disabled)
[vf] [convert] 3840x1606 yuv420p10 bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
[ffmpeg/video] hevc: get_buffer() failed
[ffmpeg/video] hevc: thread_get_buffer() failed
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[autoconvert] Converting yuv420p10 -> yuv420p
[swscale] using 12 threads for scaling
[swscale] Not using zimg, falling back to swscale.
[ffmpeg] swscaler: Lanczos scaler, from yuv420p10le to yuv420p using MMXEXT
[ffmpeg] swscaler: using unscaled yuv420p10le -> yuv420p special converter
[vf] [out] 3840x1606 yuv420p bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
Cannot convert decoder/filter output to any format supported by the output.
[vf] filter output EOF
VO: [libmpv] 3840x1606 yuv420p
[cplayer] VO: Description: render API for libmpv
[vo/opengl-cb] reconfig to 3840x1606 yuv420p bt.2020-ncl/bt.2020/pq/limited/display SP=3.773399 CL=uhd
[ffmpeg/video] hevc: Error parsing NAL unit Stremio/stremio-core#1.
[libmpv_render] Window size: 3840x2160 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 3840x1606 (1:1)
[libmpv_render] Video display: (0, 0) 3840x1606 -> (0, 277) 3840x1606
[libmpv_render] Video scale: 1.000000/1.000000
[libmpv_render] OSD borders: l=0 t=277 r=0 b=277
[libmpv_render] Video borders: l=0 t=277 r=0 b=277
[libmpv_render] Texture for plane 0: 3840x1606
[libmpv_render] Texture for plane 1: 1920x803
[libmpv_render] Texture for plane 2: 1920x803
[libmpv_render] No advanced processing required. Enabling dumb mode.
[cplayer] first video frame after restart shown
[af] [in] 48000Hz 5.1(side) 6ch floatp
swiezaczek commented 7 months ago

Give it a shot by setting the override settings to System (Enhanced) in the stremio.exe compatibility settings tab. You may try to run it as administrator as well.