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
freezes frequently, unfreezes on ALT+TAB #2658
Comments
I built geany from the latest Github commit 0a0b4b0 I'll report back if the error persists or not |
|
I'm using 1.37.1 from the Ubuntu PPA, built using GTK+ v3.22.30 & GLib v2.56.4, on Peppermint 10 (x86_64, XFCE/LXDE, x11) , and having the same issue. It seems to always happen when I have a file open with unsaved changes. Edit: Nevermind. I think the issue was on my end. |
I switched to Ubuntu because of that. I don't have the bug there. I miss Manjaro. Dear developers, it would be nice if you could advise with test instructions. I don't mind building Geany from source and putting in some debug prints here and there if you let me know where to start. I use Geany like crazy every day, totally love it in fact, so I can't have it freezing on me. |
See #2665 Note that none of the devs can get a freeze because we don't use those distros so we are kinda hamstrung to do anything, but the advice on Fedora seems to be "use wayland directly, not Xwayland" |
I'll give it try. BTW, you should look into Manjaro. I really recommend it. It is as user-friendly as Ubuntu, configures everything automatically and whatnot, but has some nice additional features. Most notably 'pacman', the package manager of Arch Linux, which can handle tricky installations much better than apt. This is interesting especially for developers as it can handle multiple installations of the same package with different versions very well e.g. GTK2 and GTK3 or a 32-bit and 64-bit version of the same package. Manjaro comes with the zsh which you will absolutely love. I have even started using it on Ubuntu. And finally, Manjaro comes with a beautiful Gnome desktop, so it is definitely worth checking out. You can run a full-fledged desktop from a live-CD... Ok, thanks for the help! And also thanks for the work you put into Geany. I'm a power user! Can't use it enough, thanks for that! |
@jansalleine : Got your message, thank you! I'll give it a try. Switched from Manjaro to Ubuntu because of this bug. Looking forward to some Manjaro time :-) I don't know if this comment will be displayed on a closed issue, but I had the same problem on Arch Linux, Gnome 3, X11 Session. In this case my workaround was to edit /usr/share/applications/geany.desktop and change the "Exec" line to: |
Mh. I deleted my comment, because unfortunately after some time that bug occured again. For some weird reason not running geany in "maximized" window seems to be the only thing that "fixes" that issue for me. I wish you luck anyway :-) |
@jansalleine full screen issues have been reported before #1532 and #1787 for eg. But it still comes back to my comment above which I also said on a number of the previous issues as well. Until the problem happens to/for somebody who can (capable and has time) debug it nothing will happen unfortunately. AFAICT it doesn't happen to any of the regular contributors, but may happen as more systems upgrade to newer and still flakey components like Wayland compositors (Gnome, Sway, etc) and very flakey XWayland. But until somebody debugs the problem its not fixable. IIRC suggestions for debugging were made on previous issues but (perhaps understandably) people just found a workaround and didn't contribute further. |
Hey, so what do I have to do to provide the debug output that could help? I must admit I don't fully understand how Gnome 3 X11 session works. Does it still run through Wayland despite its name? I run Gnome 3 + X11 on my desktop and my laptop, because this seems to be the most "stable" option for the majority of the programs I use. The only exceptions are geany and xfce-terminal. Both suffer from those occasional hick-ups. |
I'm not an expert, but IIUC there are many moving parts and some possible configurations are:
So the first thing is to be absolutely sure what the setup is, newer distros like Fedora or Arch default to a wayland compositor, so its setup 2 by default, but setting It would be great if you can test all the combinations and report which work fullscreen/maximised and windowed, which don't work, and which work really badly. Once you have the worst combination (so its nice and repeatable) run Geany under GDB (see HACKING) and when its frozen type ctrl+C in the GDB window and get a |
PS, when using GDB you may not get symbols depending on your distro, but you may be able to load them from a package, or build Geany. Also always use |
PPS note that fullscreen |
@elextr As far as I can tell the session type doesn't matter at all. I usally run setup 1 (X11), but also tried setup 2 (Wayland). The "freeze" happens on both.
Unfortunately I don't have debug symbols. This is the gdb output from a quick test this morning (Gnome 3, X11, maximized Window):
I'll build geany from source to get proper gdb output... |
@jansalleine is probably not necessary to build Geany, its clear that Geany is waiting for communication, its stopped in the It confirms the theory that some keypress communication from the server is going missing, maybe something in the compositor (Wayland) or WM (X11) is interecpting the keypress and holding it, and the main part of both those is of course Gnome, but that doesn't really help us do anything about it I'm afraid. |
@elextr Yes, it seems to be an issue with Gnome then. I'll consider to open an issue there. Anyway: thank you for the quick replies and thanks to everyone working on this awesome program! I've tried a ton of text editors and IDEs in my life as a programmer and always felt the latter bloated and the former too limited. For me Geany is the perfect "middle-ground". |
After hours of aggresive googling and messing up, I found this which works wonderfully to fix this: https://extensions.gnome.org/extension/4028/wandering-pixel/ |
@shivensinha4 Awesome find! Thank you! |
You're welcome! Glad to know that it worked for you too. It's funny, if we search hard enough, the number of different threads that exist across several websites that talk about the same issue manifesting in different forms, and only a single discussion out of them mention this extension. I was too lazy to go back and post this solution on the other pages, but this was among the first links that popped up when I googled about Geany :) |
Good job, guys! |
I have this on Manjaro (x86_64, Gnome, Wayland) for a week when there was a bigger update. I installed GTK3 about ten days ago. Could that be the problem?
Please let me know if you require anything else to resolve this issue.
Thank you!
The text was updated successfully, but these errors were encountered: