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

Linux: Window goes white after a short time #946

Closed
OrangeDrangon opened this issue Dec 19, 2023 · 37 comments
Closed

Linux: Window goes white after a short time #946

OrangeDrangon opened this issue Dec 19, 2023 · 37 comments
Labels
bug Things that prevent or seriously impede people from doing their budget. included in next release The work is done, it's just waiting to be released.

Comments

@OrangeDrangon
Copy link

Window launches can interact a little, maybe create or open a budget, then turns white. Happens with the App Image and flatpak but the AppImage takes longer to white out.

Xserver Kde Latest Arch

~ ❌133 ❯ uname -a
Linux viper 6.6.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 14 Dec 2023 03:45:42 +0000 x86_64 GNU/Linux
@codefossa
Copy link

This appears to be happening in the latest Flatpak release now. Using Arch with KDE Wayland.

Linux arch 6.6.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Tue, 02 Jan 2024 02:28:04 +0000 x86_64 GNU/Linux

@iffy
Copy link
Contributor

iffy commented Jan 5, 2024

Latest beta or latest stable?

@codefossa
Copy link

Latest beta or latest stable?

The latest stable from the flathub repository. I downgraded to commit a28422600ada7da0333aba5e8942ab2efcfd462878bccd4a5a530e69c250d6ee which resolved the issue for me.

@codefossa
Copy link

If it helps, the console shows this during the white screen:

[45:0105/110316.944273:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[45:0105/110329.703166:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[45:0105/110336.444017:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

Any action taken after that message appears results in a white window. I've also tried removing the data directory in ~/.var/app which did not resolve the issue.

@iffy
Copy link
Contributor

iffy commented Jan 5, 2024

Looks like it's this issue: electron/electron#32760

For my notes I'm going to try duplicating this locally then doing some combination of these:

app.disableHardwareAcceleration()
app.commandLine.appendSwitch('ignore-gpu-blacklist');
app.commandLine.appendSwitch('disable-gpu');
app.commandLine.appendSwitch('disable-gpu-compositing');

@iffy iffy added bug Things that prevent or seriously impede people from doing their budget. included in next release The work is done, it's just waiting to be released. labels Jan 5, 2024
@iffy
Copy link
Contributor

iffy commented Jan 15, 2024

Included in v0.73.1 release (AUTOMATED COMMENT)

@iffy iffy closed this as completed Jan 15, 2024
@iffy
Copy link
Contributor

iffy commented Jan 24, 2024

I've had reports of the windows going white after a few seconds on various systems:

  • opensuse with gnome 45.2
  • Fedora 39 - KDE w/ AMD graphics card
  • POP_OS

@iffy iffy reopened this Jan 24, 2024
@iffy
Copy link
Contributor

iffy commented Jan 25, 2024

Can someone experiencing this problem try this build: https://www.dropbox.com/scl/fo/s1qy0t7abm4lz4i6oohw0/h?rlkey=03ca2zmj7rdn5sa19hlv3sgyv&dl=0

@codefossa
Copy link

I am still seeing the issue occur in the build linked above. I didn't see any logs this time outside of normal info being written out. No errors or anything.

It seems to be on a timer. It takes about maybe 2 seconds then goes white regardless of the window being displayed. It will happen on the budget selection screen as well, so you don't even have to get to view the regular application window. When it goes white, the elements are not clickable, even if you click the correct spot, so it seems that they're gone, like it's a blank webpage.

Just to add to your list above, I'm on Arch using KDE Wayland with the 6.7.1 Zen kernel and an AMD laptop GPU. The issue has occurred for me now on both the Flatpak and Appimage.

@blakedheld
Copy link

I can add this issue is affecting me too, the build linked in Dropbox has the same issue, but without the GetVSyncParametersIfAvailable() log. I am running Intel on Arch, with the 6.7.1 kernel, and hyprland.

@iffy
Copy link
Contributor

iffy commented Jan 29, 2024

Can someone try with this build? https://www.dropbox.com/scl/fo/g4534teh1vdkz7j773q1q/h?rlkey=jjh0i3bvla4p0bwp1fcehudbv&dl=0

I still haven't been able to duplicate this in a VM on my side (which makes this a lot of guesswork).

@blakedheld
Copy link

Just gave it a shot, the error is persisting with no messages in the console.
buckets

@codefossa
Copy link

I continue to have the same issue with your new build. I thought this may be an issue with xwayland, but I tried running it on Plasma X11 and still had the same outcome.

@CyborgYeti
Copy link

log.txt

I still get the white screen, log attached.

@iffy
Copy link
Contributor

iffy commented Jan 29, 2024

Does it work to run ./Buckets.AppImage --no-sandbox?

@blakedheld
Copy link

The issue still persists when ran with the --no-sandbox flag for me.

@CyborgYeti
Copy link

log.txt

Same issue here, too.

@codefossa
Copy link

I actually extracted the appimage and ran it for my tests. I tried both the normal AppRun and bucketsbeta. Both had the issue for me.

@iffy
Copy link
Contributor

iffy commented Jan 29, 2024

I'm starting a build with an upgraded version of Electron to see if that will fix it. In the meantime, can someone run it with devtools open and see if there's a JavaScript error. I'm guessing it's not Javascript because even the menu bar appears to be white, but I'd like to rule it out.

export DEVTOOLS=1
./Buckets.AppImage

@CyborgYeti
Copy link

Screenshot from 2024-01-29 19-24-20

I am not familiar
Screenshot from 2024-01-29 19-26-03

Fumbling to export the log, so here is a screenshot.

@CyborgYeti
Copy link

@codefossa
Copy link

With devtools enabled, in my terminal I saw the output of the following. In the JS console, nothing.

[29078:0129/144147.115483:ERROR:CONSOLE(1)] "Uncaught (in promise) TypeError: Failed to fetch", source: devtools://devtools/bundled/panels/elements/elements.js (1)

@iffy iffy changed the title Beta Window Goes White After Some Use Linux: Window goes white after a short time Jan 29, 2024
@iffy
Copy link
Contributor

iffy commented Jan 29, 2024

@mphartzheim
Copy link

Another build to try: https://www.dropbox.com/scl/fo/md61qrv8d11wqkyg5r4ae/h?rlkey=pkl9fmdi8ltb0tavm6masfob2&dl=0

This build appears to be working for me. Had it open a few minutes and it hasn't gone white.

@CyborgYeti
Copy link

Looks good here, too.

@blakedheld
Copy link

Build is working for me as well.

@iffy
Copy link
Contributor

iffy commented Jan 30, 2024

Thank you all so much for testing! I will get this fix out in a published version soon.

Does it still work if you launch it like this?

BUCKETS_ENABLE_HARDWARE_ACCELERATION=1 ./Buckets.AppImage

@blakedheld
Copy link

Thank you so much for working on this! Launching with BUCKETS_ENABLE_HARDWARE_ACCELERATION=1 ./Buckets.AppImage results in me getting the GetVSyncParametersIfAvailable() message again; however, the app works perfectly fine.

@codefossa
Copy link

This build works for me as well! With BUCKETS_ENABLE_HARDWARE_ACCELERATION=1 I got the messages blakedheld mentioned, but it didn't seem to hurt anything.

@iffy
Copy link
Contributor

iffy commented Jan 30, 2024

One last one to try if you get a chance: https://www.dropbox.com/scl/fo/m9ede1aezrtdfpew3rl6m/h?rlkey=iqjl9tnt9ptte8igmoaatzgtc&dl=0 This one uses the latest Electron 26 rather than 28, because 27 dropped support for older versions of macOS that we'd still like to support.

@codefossa
Copy link

That new build is still working well for me.

@blakedheld
Copy link

The most recent build you linked appears to be working fine, but it errors out when I attempt to open my existing budget file. Creating a new one works just fine.

@iffy
Copy link
Contributor

iffy commented Jan 30, 2024

but it errors out when I attempt to open my existing budget file

If you opened the budget file with any of the prior builds (in this issue), it upgraded it to the beta database schema (which is incompatible with the stable version). I'm guessing that's what happened?

@blakedheld
Copy link

Apologies, I forgot to pull my backup before testing the most recent build and that is exactly what happened. The most recent version you linked is working perfectly, and the aforementioned error, GetVSyncParametersIfAvailable(), is no longer present.

@iffy
Copy link
Contributor

iffy commented Jan 31, 2024

Included in v0.73.3 release (AUTOMATED COMMENT)

@codefossa
Copy link

@iffy When could I expect Flathub to receive this fix? The main version listed there is still broken.
https://flathub.org/apps/com.budgetwithbuckets.Buckets

@iffy
Copy link
Contributor

iffy commented Feb 9, 2024

I would have thought it would have been out simultaneously. Let me check that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that prevent or seriously impede people from doing their budget. included in next release The work is done, it's just waiting to be released.
Projects
None yet
Development

No branches or pull requests

6 participants