Open dencrypt opened 5 years ago
Out of curiosity: are you using inputstream.adaptive? Because it can't handle the new ad delivery on Twitch. There was a workaround basically "spoofing" the platform reported to avoid ads but it seems to have been patched on Twitch's end now. In my case Kodi doesn't crash though, just hangs on black screen.
I also have this problem. Kodi crashes not only when an ad starts, it's also crashing when an ad ends. Also it's way more than 50%. I'm more in the 95%. If I want to watch a stream I have to start Kodi, wait for the ad to play trough and the crash afterwards and then start Kodi again and I can watch the stream. If the stream has an ad suddenly in the middle Kodi crashes instantly and I have to repeat the steps from above. inputstram.adaptive is turned off. I had massive problems with it in the past. (constant quality changes, stream pausing and forwarding constantly)
I can confirm I get this error both with inputstream.adaptive on and off. Posting DEBUG error log below with the inputstream OFF. So I don't think it has anything to do with the problem itself. kodi_crashlog-20190908_124527.log
I have made some tinkering with this problem and found some clues. When disabling "Reset Cache on refresh" kodi does not crash anymore. However the stream still freezes more often than not when the commercials starts to play. Seems to not be any difference using inputstream or not.
It's an improvment but still not a workaround. But at least I can just stop the stream and start it again without starting up kodi.
I still get a lot of crashes even with the setting Reset cache on refresh
disabled. Doesn't matter if inputstream.adaptive
is turned on or off. In fact I haven't gotten a single freeze, it's either a crash or no crash.
Edit: Not sure what happened but there are no ads anymore since a few days for me so currently I can watch streams without Kodi crashing all the time again.
Still having issues! Excerpt from crash log showed:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383
[Current thread is 1 (Thread 0x7f4291811700 (LWP 15454))]
Thread 1 (Thread 0x7f4291811700 (LWP 15454)):
#0 __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:383
#1 0x00007f42e74061a6 in ?? () from /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1
#2 0x00007f42e73ccd4c in ?? () from /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1
#3 0x00007f42e73bbbd9 in ?? () from /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1
#4 0x00005588aa5bcbb7 in VDPAU::CDecoder::Render(AVCodecContext*, AVFrame*, void const*, unsigned int, VdpBitstreamBuffer const*) ()
#5 0x00005588ab0adb20 in ff_vdpau_common_end_frame ()
#6 0x00005588aaca4df4 in ?? ()
#7 0x00005588aafb2668 in ff_h264_field_end ()
#8 0x00005588aa9ef640 in ?? ()
#9 0x00005588aa93df10 in ?? ()
#10 0x00005588aa940d80 in avcodec_send_packet ()
#11 0x00005588aa5706e0 in CDVDVideoCodecFFmpeg::AddData(DemuxPacket const&) ()
#12 0x00005588aa562440 in CVideoPlayerVideo::Process() ()
#13 0x00005588aa346b93 in CThread::Action() ()
#14 0x00005588aa38be8e in CThread::staticThread(void*) ()
#15 0x00007f431ae51669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#16 0x00007f4318a09323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Will disable VDPAU (hardware acceleration) and report if it fixes the issue.
And yes, apparently, disabling it helped a ton. I guess the video component isn't resetting the stream properly and VDPAU is quite confused (as you would expect from HW decoders)
Twitch is inserting "ads" again which are in fact "Twitch is currently running an ad"-text-videos with a countdown. The switch to the "ad"-video always works but it seems to get stuck in an infinitive loop and constantly resetting/reloading the countdown until Kodi crashes.
Will disable VDPAU (hardware acceleration) and report if it fixes the issue.
And yes, apparently, disabling it helped a ton.
Indeed, this seems to resolve the crash issue. The setting is in Settings->Player->Video->Hardware acceleration, make sure you see the expert options.
I started having this issue, streams simply freeze and/or crash whenever twitch starts playing commercials.
The interesting part is that I also get the same behavior when using the Kodi pluto.tv add-on, same freezing and crashing when ads start to play.
Is this is Inputstream issue? I've ensured I'm not using Adaptive. Any solution to this?
Any solution to this?
No, just a workaround: disable hardware acceleration. I haven't had a crash ever since disabling it.
The setting is in Settings->Player->Video->Hardware acceleration, make sure you see the expert options.
Confirming this same bug on a fresh Ubuntu 20.04.01 installation. Also confirming that disabling video hardwarde acceleration fixes the crash completely (as described above) . The bug manifests as others have described; at the terminal:
$ kodi
Yatse connects through remote interface, ToKodi is invoked, waiting screen with 15s timer appears, then app crashes:
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
Segmentation fault (core dumped)
The latest stable version is:
$ kodi --version
18.6 Debian package version: 2:18.6+dfsg1-2ubuntu1 Media Center Kodi from Debian
Copyright (C) 2005-2019 Team Kodi from Debian - http://kodi.tv
Also, so much love to everyone here contributing, you know you are making a big difference in the success of xbmc/Kodi itself <3
Can confirm crashes of Kodi with a fresh installation of Ubuntu 22.04, Kodi 20.1+git20230312 (from deb https://ppa.launchpadcontent.net/team-xbmc/ppa/ubuntu/ jammy main
), and plugin.video.twitch 3.0.1.
For me, the crashes occurred at the end of the "Commercial break in progress"-countdown.
Disabling VAAPI avoids the crashes in my setup as well.
Been having lots of those intermittent crashes, some channels have more, screen freezes forever and the only way to fix it is to do a hard restart
I'm having this too, it plays some music and shortly after everything freezes.
This bug has been bothering me for years so I decided to create a repro. The crash manifests itself both on Linux (VAAPI) and Windows (DXVA) with Kodi 20.2. Interestingly it doesn't always crash, but it's like 90% of the time. Unfortunately I don't know the codebase well enough to decide if it's an issue in ffmpeg or Kodi.
Happy to report that Kodi 21.0-beta1 seems to have fixed the issue.
See play_me.m3u8
in the attached archive. The individual segments play fine by themselves. Shoutout to the Korean streamer that I pulled the HLS stream from :)
Here's the relevant stack trace and packet that krashes Kodi:
Thread 1 (Thread 0x7fd10bb32640 (LWP 14248)):
#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:317
#1 0x00007fd1783563f5 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#2 0x00007fd17837a38b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
#3 0x00007fd1b7a2b49c in vaCreateBuffer () from /lib/x86_64-linux-gnu/libva.so.2
#4 0x000055ec97607553 in ff_vaapi_decode_make_slice_buffer ()
#5 0x000055ec9761041d in ?? ()
#6 0x000055ec97348a32 in ?? ()
#7 0x000055ec9729d6d1 in ?? ()
#8 0x000055ec9729e3f8 in avcodec_send_packet ()
#9 0x000055ec9634d9ab in CDVDVideoCodecFFmpeg::AddData(DemuxPacket const&) ()
#10 0x000055ec963f78c7 in CVideoPlayerVideo::Process() ()
#11 0x000055ec9667f635 in CThread::Action() ()
#12 0x000055ec9668024b in ?? ()
#13 0x000055ec96680d7d in ?? ()
#14 0x00007fd1b5f33253 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#15 0x00007fd1b6429b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#16 0x00007fd1b64bba00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Sometimes (I would say 50% of the time) when ads start showing in the client, kodi crashes. kodi_crashlog-20190707_111653.log