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
Electron apps stop redrawing #27889
Comments
Same for me under Arch Linux with Gnome, electron version is v10.4.0 and kernel is 5.10.16-arch1-1. EDIT: I see your issue is the opposite of mine, your version 10.4.0 works while for me that version doesn't |
Hard to know how to move forward on this, since it's not something that happens consistently and, if it's happening in VSC and Fiddle and Hello World, probably not dependent on a particular code path in the client application. Since you're using Fiddle already, any chance you could bisect through the Electron versions and see if there's a particular release where this behavior first appears? Maybe that would give a clearer path on how to move this issue forward. |
The difficulty I have here is that it's quite hard to reproduce with the simple "hello world" app, so it's hard to be certain that the behavior doesn't occur on any given Electron version. It's much easier to reproduce on a more complex app like VSCode or Fiddle itself. What I could try is building Fiddle itself against a variety of Electron versions, if that would be helpful. |
So, I built Fiddle with a range of electron versions. I found that electron@10.4.0 was fine, while electron@11.0.0-beta.1 was not - so this seems to have been introduced with Electron 11. Is there anything I can do to narrow this down further? |
Huh; for completeness, I tried testing with Electron 12 and 13 - I can't reproduce it there. So it may be that my bug only affects the Electron 11 series... |
@richvdh you could use the Bisect feature of Electron Fiddle to try to narrow down where it was fixed. Be sure to enable Nightly versions in the preferences (under the Electron tab) |
@nornagon sorry, I'm not that familiar with some of this tooling, so I could use a bit of help here. I've been using the Fiddle app itself to test with because I can't reliably reproduce the bug with a simple "Hello World" app. Can you give me any pointers for getting Fiddle set up to build a non-trivial application, so that I can use its bisect feature? |
to confirm: I've not had any problems with apps based on Electron 12, so this seems to be limited to Electron 11. |
Great, glad to hear it's fixed in Electron 12. Electron 11 is now accepting security fixes only, so I'm going to close this out. |
Preflight Checklist
Issue Details
Actual Behavior
Sometimes, when resizing a window for an electron app, it seems to get stuck in a state where it is not being redrawn. See the following screenshot, which is the result of dragging a "hello world" application around in front of an electron-fiddle window:
To be clear: this is not a transient effect during the resize: no redraws happen to this window until I resize it again. Resizing the window a bit more wakes it up and normality is restored.
While the window is in this state, I can interact with the application as normal, if I can guess where the controls are - I just can't see them!
Some applications seem more prone to this problem than others. The electron-fiddle app is awful; VSCode and element-desktop also suffer. The "Hello world" app supplied with electron-fiddle suffers rarely, but as per the screenshot, still fails occasionally. (This leads me to speculate that the problem may be related to the amount of work being done by the app during the redraw.)
To Reproduce
While this is easy to reproduce on my system, I'm not aware of any foolproof ways of reproducing it elsewhere :/
Additional Information
I imagine my desktop environment is somehow relevant, though I've tried a few things in an attempt to pin this down:
The text was updated successfully, but these errors were encountered: