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

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] #995

Open
cacheflood opened this issue Aug 7, 2020 · 8 comments

Comments

@cacheflood
Copy link

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)

@codebrainz
Copy link
Member

codebrainz commented Aug 7, 2020

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)

@cacheflood
Copy link
Author

cacheflood commented Aug 7, 2020

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

@codebrainz
Copy link
Member

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.

@elextr
Copy link
Member

elextr commented Aug 7, 2020

What distro and desktop are you using?

@cacheflood
Copy link
Author

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
Copy link
Author

cacheflood commented Aug 7, 2020

forgot: Gnome version 3.36.4 wayland.

@cacheflood
Copy link
Author

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

@codebrainz codebrainz transferred this issue from geany/geany Aug 8, 2020
@codebrainz
Copy link
Member

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

@cacheflood cacheflood changed the title Geany hangs on "The file 'xxxxx' in the disk is more recent than the current buffer" popup on dual display Geany hangs on "The file 'xxxxx' in the disk is more recent than the current buffer" popup on dual display [Plugin -Various debugger intergrations Aug 8, 2020
@cacheflood cacheflood changed the title Geany hangs on "The file 'xxxxx' in the disk is more recent than the current buffer" popup on dual display [Plugin -Various debugger intergrations 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] Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants