geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

Geany hangs on "The file 'xxxxx' in the disk is more recent than the current buffer" popup on dual display [Caused by Plugin -Various debugger intergrations]

Open cacheflood opened this issue 5 years ago • 8 comments

Geany hangs on popup: Screenshot from 2020-08-07 12-34-59

After pressing 'Reload' or other, popup dissapears after minute on so (during that time Geany is not responding) and after that Geany window is stretched over both monitors. (Could this be some kind of widget resize problem?)

12:31:50: Geany INFO : Geany 1.36, en_US.UTF-8 12:31:50: Geany INFO : GTK 3.24.21, GLib 2.64.4 ..... 12:33:47: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/average.vs : C++ (UTF-8) 12:33:49: GLib DEBUG : posix_spawn avoided (workdir specified) (fd close requested) 12:34:55: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/average.include : None (UTF-8) 12:41:07: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/average.vs : C++ (UTF-8) 12:41:10: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/average.vs : C++ (UTF-8) 12:41:14: GLib DEBUG : posix_spawn avoided (workdir specified) (fd close requested) 12:41:28: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/average.include : None (UTF-8) 12:42:21: Geany INFO : /home/cacheflood/svn/coding/linux/UHVOTrack/averageinit.include : None (UTF-8) 13:11:18: GLib DEBUG : posix_spawn avoided (workdir specified) (fd close requested)

cacheflood avatar Aug 07 '20 10:08 cacheflood

Not sure about the resize issue, but from your screenshot it looks like it has a bunch of code all on one line. Geany/Scintilla is notoriously slow with extremely long lines, especially when line wrapping is enabled.

Aside from trying to disable line-wrapping, there's a couple things you can possibly do if you control whatever generated that code. If you are using C++11 or later you can use raw string literals or if not use plain C-style string literal concatenation (described on same link). Both would allow to split the generated code onto multiple lines which should help with the Geany performance issue as well as to make the generated code more readable.

Related: geany/geany#2474 (and others I can't find easily)

codebrainz avatar Aug 07 '20 11:08 codebrainz

I believe this is some kind of other issue with UI. I tested with small file just some chars and same happened. Tested and what I tough was that it takes long time was incorrect: Real problem is that the dialog do no hide away until I lost focus from geany and come back + screen size is grown big. Please see attachments from dual display.

Screenshot from 2020-08-07 17-23-59 Screenshot from 2020-08-07 17-25-41 Screenshot from 2020-08-07 17-25-46

cacheflood avatar Aug 07 '20 14:08 cacheflood

You could try running Geany from the command line with the -p/--no-plugins option. It's possible that whatever debugger plugin you have loaded is not designed to fit in the message window area when it's on the right like you have it. If it doesn't happen when no plugins are loaded, try and run it normally again but change the preference to put the message window back in the bottom to see if that's what's going on.

codebrainz avatar Aug 07 '20 14:08 codebrainz

What distro and desktop are you using?

elextr avatar Aug 07 '20 16:08 elextr

codebrainz: I will test tomorrow (too drunk at the moment... :) elextr:Fedora 32 (Workstation Edition) uname: 5.7.11-200.fc32.x86_64 geany/geany#1 SMP Wed Jul 29 17:15:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

cacheflood avatar Aug 07 '20 22:08 cacheflood

forgot: Gnome version 3.36.4 wayland.

cacheflood avatar Aug 07 '20 22:08 cacheflood

Ok trapped, its this: Screenshot from 2020-08-08 09-28-58

disabled it and now works ok.

Also changing layout as below works. Screenshot from 2020-08-08 09-32-16

cacheflood avatar Aug 08 '20 06:08 cacheflood

@cacheflood feel free to update the bug title to match the current findings.

codebrainz avatar Aug 08 '20 06:08 codebrainz