Hi, This is a bit rambling but I'm kind of stuck now.
I hadn't kept up to date with git master for a while. I ran into trouble with the windows makefiles (makefile.win32) - GTK was not defined even though -DGTK is passed. So I hacked PlatGTK.cxx to define it manually, but on running the resultant Geany aborts - a backtrace showed some Scintilla code (Document::Document) causing the fault. (I also had to remove -liberty as that doesn't seem to be part of my MinGW install).
Anyway, I gave up trying to fix the makefiles and tried Waf. It seemed to work, but now when using Geany autocompletion shows an empty list. It keeps doing this for a while on typing, then later I start typing again and Geany freezes - this is not a hang, task manager doesn't show Geany using CPU. I have to kill it. This is weird, and annoying because I don't know how to get a backtrace (Ctrl-Z doesn't seem to work on my Windows gdb, and anyway the process seems stuck rather than looping). I suspect a fault with Scintilla, but it could be unrelated.
I also noticed Waf doesn't seem to use -mms-bitfields, but I'm not certain.
On 15/01/2015 14:17, Nick Treleaven wrote:
I also noticed Waf doesn't seem to use -mms-bitfields, but I'm not certain.
I think I'm wrong about that - it was based on git grep. Running 'waf -v' does show that flag (sometimes several times in the same command). I haven't found where Waf gets it from though ;-)
On 15/01/15 18:35, Nick Treleaven wrote:
On 15/01/2015 14:17, Nick Treleaven wrote:
I also noticed Waf doesn't seem to use -mms-bitfields, but I'm not certain.
I think I'm wrong about that - it was based on git grep. Running 'waf -v' does show that flag (sometimes several times in the same command). I haven't found where Waf gets it from though ;-)
c:>grep -ri mms \libs\lib\pkgconfig \libs\lib\pkgconfig/glib-2.0.pc:Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -mms-bitfields \libs\lib\pkgconfig/gtk+-2.0.pc:Cflags: -I${includedir}/gtk-2.0 -mms-bitfields \libs\lib\pkgconfig/gtk+-win32-2.0.pc:Cflags: -I${includedir}/gtk-2.0 -mms-bitfields
GTK itself defines them.
Regards, Enrico
On 15-01-15 06:17 AM, Nick Treleaven wrote:
Hi, This is a bit rambling but I'm kind of stuck now.
I hadn't kept up to date with git master for a while. I ran into trouble with the windows makefiles (makefile.win32) - GTK was not defined even though -DGTK is passed. So I hacked PlatGTK.cxx to define it manually, but on running the resultant Geany aborts - a backtrace showed some Scintilla code (Document::Document) causing the fault. (I also had to remove -liberty as that doesn't seem to be part of my MinGW install).
Related to lib iberty:
https://github.com/geany/geany/commit/1dc09597b24d19683abc597d45d7c28d37c199...
Anyway, I gave up trying to fix the makefiles and tried Waf. It seemed to work, but now when using Geany autocompletion shows an empty list. It keeps doing this for a while on typing, then later I start typing again and Geany freezes - this is not a hang, task manager doesn't show Geany using CPU. I have to kill it. This is weird, and annoying because I don't know how to get a backtrace (Ctrl-Z doesn't seem to work on my Windows gdb, and anyway the process seems stuck rather than looping). I suspect a fault with Scintilla, but it could be unrelated.
Maybe it's a bug in GTK+? Which version are you using? It might be worthwhile to test with some different version of the bundle just to see.
Cheers, Matthew Brush
On 15/01/2015 19:19, Matthew Brush wrote:
Related to lib iberty:
https://github.com/geany/geany/commit/1dc09597b24d19683abc597d45d7c28d37c199...
OK, so probably I can remove it from makefile.win32.
Anyway, I gave up trying to fix the makefiles and tried Waf. It seemed to work, but now when using Geany autocompletion shows an empty list. It keeps doing this for a while on typing, then later I start typing again and Geany freezes - this is not a hang, task manager doesn't show Geany using CPU. I have to kill it. This is weird, and annoying because I don't know how to get a backtrace (Ctrl-Z doesn't seem to work on my Windows gdb, and anyway the process seems stuck rather than looping). I suspect a fault with Scintilla, but it could be unrelated.
Maybe it's a bug in GTK+? Which version are you using? It might be worthwhile to test with some different version of the bundle just to see.
Maybe, I haven't updated it in ages (GTK 2.22.0, GLib 2.26.0), it still works for Geany master a month or two ago. But maybe some recent code triggered a bug in it, perhaps the Scintilla 1.52 update. Next week I will try and bisect the commit that did it, and perhaps try updating GTK too.
Is anyone using a recent build of Geany master on Windows (with working autocompletion)?
On 17/01/15 13:28, Nick Treleaven wrote:
On 15/01/2015 19:19, Matthew Brush wrote:
Related to lib iberty:
https://github.com/geany/geany/commit/1dc09597b24d19683abc597d45d7c28d37c199...
OK, so probably I can remove it from makefile.win32.
Anyway, I gave up trying to fix the makefiles and tried Waf. It seemed to work, but now when using Geany autocompletion shows an empty list. It keeps doing this for a while on typing, then later I start typing again and Geany freezes - this is not a hang, task manager doesn't show Geany using CPU. I have to kill it. This is weird, and annoying because I don't know how to get a backtrace (Ctrl-Z doesn't seem to work on my Windows gdb, and anyway the process seems stuck rather than looping). I suspect a fault with Scintilla, but it could be unrelated.
Maybe it's a bug in GTK+? Which version are you using? It might be worthwhile to test with some different version of the bundle just to see.
Maybe, I haven't updated it in ages (GTK 2.22.0, GLib 2.26.0), it still works for Geany master a month or two ago. But maybe some recent code triggered a bug in it, perhaps the Scintilla 1.52 update. Next week I will try and bisect the commit that did it, and perhaps try updating GTK too.
Does the empty auto completion list look like this? http://lists.geany.org/pipermail/devel/attachments/20141014/0cc74183/attachm...
This is what I experienced some time ago. I assumed it might be related to RDP which I use to connect to my Windows box. If you got the same thing and you are not using RDP, it might something more serious.
I don't remember to experience any hangs but I don't really use Geany on Windows except for making Windows builds.
Hah, I just tried the Windows nightly builds (i.e. download the ZIP and extract it over my existing Geany installation) and then the auto completion list is filled and usable again on my system. So it might be related to the differences in how the Geany binary is created (the nightlies are also built using Waf but cross-compiled, not native Windows builds).
Nick, can you confirm that the nightly builds work better?
Regards, Enrico
On 18/01/2015 14:20, Enrico Tröger wrote:
On 17/01/15 13:28, Nick Treleaven wrote:
Anyway, I gave up trying to fix the makefiles and tried Waf. It seemed to work, but now when using Geany autocompletion shows an empty list. It keeps doing this for a while on typing, then later I start typing again and Geany freezes - this is not a hang, task manager doesn't show Geany using CPU. I have to kill it. This is weird, and annoying because I don't know how to get a backtrace (Ctrl-Z doesn't seem to work on my Windows gdb, and anyway the process seems stuck rather than looping). I suspect a fault with Scintilla, but it could be unrelated.
Maybe it's a bug in GTK+? Which version are you using? It might be worthwhile to test with some different version of the bundle just to see.
Maybe, I haven't updated it in ages (GTK 2.22.0, GLib 2.26.0), it still works for Geany master a month or two ago. But maybe some recent code triggered a bug in it, perhaps the Scintilla 1.52 update. Next week I will try and bisect the commit that did it, and perhaps try updating GTK too.
Does the empty auto completion list look like this? http://lists.geany.org/pipermail/devel/attachments/20141014/0cc74183/attachm...
Yes, pretty much. I'm not using RDP.
This is what I experienced some time ago. I assumed it might be related to RDP which I use to connect to my Windows box. If you got the same thing and you are not using RDP, it might something more serious.
I don't remember to experience any hangs but I don't really use Geany on Windows except for making Windows builds.
Hah, I just tried the Windows nightly builds (i.e. download the ZIP and extract it over my existing Geany installation) and then the auto completion list is filled and usable again on my system. So it might be related to the differences in how the Geany binary is created (the nightlies are also built using Waf but cross-compiled, not native Windows builds).
Nick, can you confirm that the nightly builds work better?
I just tried it (was offline for the weekend ;-)), the nightly does have the correct autocompletion list.
Thanks for the info.