FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
12.65k stars 779 forks source link

[Bug]: Plasmashell restarts and Freetube crashes on launch #4075

Open Arndorferd opened 10 months ago

Arndorferd commented 10 months ago

Guidelines

Describe the bug

  1. launch freetube portable version or latest arch repository version

  2. Plasmashell from KDE Plasma version: 5.27.8 crashes oftentimes along with freetube

Expected Behavior

Freetube launches without crashing itself or plasmashell

Issue Labels

causes crash

FreeTube Version

v0.19.0

Operating System Version

6.5.3-1-Manjaro

Installation Method

Portable

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

Not Sure

Additional Information

Produces TypeError on launch, not sure if related

TypeError: Cannot destructure property 'value' of 'object null' as it is null.
    at /home/linux/Desktop/freetube-0.19.0-linux-portable-x64/resources/app.asar/dist/main.js:2:240440
    at async _ (/home/linux/Desktop/freetube-0.19.0-linux-portable-x64/resources/app.asar/dist/main.js:2:240396)
    at async App.<anonymous> (/home/linux/Desktop/freetube-0.19.0-linux-portable-x64/resources/app.asar/dist/main.js:2:245665)
[198187:0925/171506.149060:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[198187:0925/171507.234691:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!

Nightly Build

absidue commented 10 months ago

This could the be same as #3998, could you check if the suggested solution works for you?

Arndorferd commented 10 months ago

No because flatpak in general works. However it doesnt integrate well with my plasma theme so I generally avoid flatpaks. If I would have a guess, I think its because Flatpak likes to use GTK and this appears like an issue with how this program interacts with Qt. My Qt version is 5.15.10.

Arndorferd commented 10 months ago

Out of curiosity I tested on x11 and it still happens but with less consistency than on wayland.

absidue commented 10 months ago

The relevant part of the log is GetVSyncParametersIfAvailable() failed, which is probably linked to this upstream issue in Electron: https://github.com/electron/electron/issues/32760

The only workaround in that thread is to disable hardware acceleration, which for a video playing app like FreeTube, is definitely not something we want to do.

Arndorferd commented 10 months ago

Is it a red herring? Thats just logs from starting the program in terminal. I thought you may know more. Im not sure how to get more detailed information at this point. Suspecting program interaction with qt or plasmashell is the issue.

Cyanide-1 commented 9 months ago

No because flatpak in general works. However it doesnt integrate well with my plasma theme so I generally avoid flatpaks. If I would have a guess, I think its because Flatpak likes to use GTK and this appears like an issue with how this program interacts with Qt. My Qt version is 5.15.10.

Freetube uses electron, not GTK.

Cyanide-1 commented 9 months ago

Which package are you using? Manjaro is known for issues like this.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

PapaBones commented 5 months ago

Have the same issue, KDE-Plasma, Arch Linux, Nvidia GPU on x11 though mine's not the flatpak but the version from the AUR. This usually happens when another fullscreen window is on another display(i.e. a game). Freetube did crash once or twice @ launch but usually just runs and then randomly crashes. Don't know if it is related and whether or not I should open a new issue up.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.