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
Macros and Numbered Bookmarks plugins crash Geany #585
Comments
Confirmed on Windows 10 Pro x64 with Geany 1.30 and Windows 7 Professional SP1 x64 Geany 1.30.1. |
I think Numbered Bookmarks crashes in the same way on windows. I think they both create a folder to store settings then crash Geany. |
Confirmed same issue with Numbered Bookmarks with same versions as above. @discorichardson How do you know they both try and create folders before crashing? Any idea which folders? I hate debugging on Windows on release builds. |
I tested loading/unloading all of the other plugins and these are the only two which had this problem. |
I've got a stack trace which reveals it crashes somewhere in GDK, the last relevant frame in the stack is
which doesn't help much. I just triggered a full debug build on my machine to get a better stack trace. |
which is k=gdk_keymap_get_entries_for_keyval(NULL,'0'+i,&gdkkmkResults,&iResults); I'll have a look at this at the weekend except anyone is faster. |
It looks like you've narrowed it down enough now. In both cases after clicking checkbox to activate the plugin a folder is successfully created, and then Geany crashes. The empty folders (on windows 7) are: |
@eht16 Is it the same function for Numbered Bookmarks? |
Just FYI, the following message occurs on enabling these plugins on Linux, so I think @eht16 is in the right area.
|
|
@codebrainz yes, exactly the same issue with Numbered Bookmarks. @b4n to the rescue. Thanks, that was exactly the error. Interestingly, on Windows I don't see the warning Lex posted. Anyway, it's easy to fix. Will do a PR. |
This fixes crashes and critial warnings. Fixes geany#585.
It sounds more like a GDK bug, it's weird something deprecated should cause a runtime assertion failure, and especially there's no reason it should crash the whole process. Oh well, GTK+ isn't exactly known for stability anymore :) |
I've tried using on 2 different PC's Both Windows, 1 is 10 Enterprise and the other 8.1 Pro, both 64bit.
When I select the "Macros" option in the plugin manager is when it crashes.
The text was updated successfully, but these errors were encountered: