Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing in first few seconds of video #354

Open
Wemmy0 opened this issue Aug 27, 2023 · 5 comments
Open

Crashing in first few seconds of video #354

Wemmy0 opened this issue Aug 27, 2023 · 5 comments

Comments

@Wemmy0
Copy link

Wemmy0 commented Aug 27, 2023

With the recent UI changes, stremio flatpak client will sometimes crash within the first 10 seconds and hang.
Running in the terminal with flatpak run com.stremio.Stremio I can see the terminal flooded with the error:
pa_write() failed while trying to wake up the mainloop: Broken pipe hundreds of times.

Here is the output when starting playback and then stremio crashing: https://paste.rs/Xni51.txt
I know it seems like vaapi is broken for me on nvidia with fedora but this is a separate issue I think. Not an issue with stremio.

@Wemmy0
Copy link
Author

Wemmy0 commented Aug 27, 2023

Hmm, it looks like my hardware decoding is actually working:

➜  ~ vainfo
Trying display: wayland
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.18.2)
vainfo: Driver version: VA-API NVDEC driver [egl backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
➜  ~ 

But stremio is still falling back to software decoding

@TRtomasz
Copy link
Member

Stremio uses mpv, so in this matter we do not have any controll. Please ensurey you have enabled hardware accelerated decoding

@Wemmy0
Copy link
Author

Wemmy0 commented Aug 30, 2023

Hardware acceleration is setup and enabled but still crashing. I'll try with it disabled to see if it fixes the crashing.

@failafail8
Copy link

failafail8 commented Sep 24, 2023

Same issue, i think that it occurs to me only on gnome-wayland and never on kde-x11
i will try other configurations and try it longer on x11
The crash happen more or less every 20-30 minutes. its kind of new ( i use stremio almost every days) and if i remember well : it first happened after some wireplumber/gstream/pipewire/pulseaudio big updates on my opensuse tumbleweed.

https://paste.rs/7x9Ed.json = the same error
https://paste.rs/Sqrhv.json = infos at launch

if i have to give more infos to be helpful please let me now witch ones

@failafail8
Copy link

I did a snapshot rollback and it definitely seems to be related to pulseaudio 16.1-5.1 and/or pipewire-pulseaudio update.
I guess it is nothin stremio can do about it. Same for the distros since there is no stremio pckge on their repos.
I'll post the issue here https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues if u wanna follow and close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants