Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Closed #1781 via #1799. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#event-1555190251
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
@elextr: Good catch! :clap: The first plugin in my list is Addons. If I give it a help function then in the good case I get the desired help (e.g. auto-mark). But in the bad case it opens the wrong help now (Addons) instead of crashing. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368329739
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Hmmm...will try to give the first plugin a help. If your assumption is true it should then open the wrong help instead of crashing. But I will be gone now, maybe I got time for it in the evening. Thanks for your help. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368308246
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
So somewhere maybe the PM is reading the active row instead of remembering which plugin its enabling, so its suddenly getting a disconnect between a plugin it thought had help and one that doesn't. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368307298
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
I can confirm that. The click speed in the bad case is that fast that the first row of the table gets selected shortly. In the good case without the crash, the selected row does not change. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368307123
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
I am currently on a different machine and only have Geany core plugins (all of which have no help) so I can't try it again, but one thing I noticed is that if you double click on the checkbox the selected row jumps to the top. Maybe you are double clicking and changing the selected row and confusing the PM. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368306848
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Never mind. I can confirm it is the click speed between the On-Off which matters: - clicking in a one second speed (like _"21 - click - 22 -click - 23 - click"_) "solves" the problem, no crash - if I click fast then a single "On-Off-On-Help" or "Off-On-Help" sequence is enough to get the crash -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368306808
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Oh, I read @codebrainz versions, oops :) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368306510
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
> No GTK 3.18.9, GLib 2.48.2 I think you mis-read something. This are exactly the versions I use. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368306329
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
> Are you using the same GTK/glib versions? No GTK 3.18.9, GLib 2.48.2 I think its far more likely to be sensitive to the time between on and off, on is the thing that loads the .so and links symbols, ok, its likely to be faster the second and subsequent times, but still its some work. And if your version of Glib tries to do the module load asynchronously the UI may be active before everything is set up. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368305891
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
I just downloaded the current master version of geany into a new, fresh directory and built that. No difference, sill crashes (just to be sure I did not mess something up in my other folder). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368305828
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
To point one thing out: it does not happen always but in far more than 50% of my attempts. I tried waiting after the multiple On-Off-On-Switching. So I waited 5, 10 and 20seconds before clicking on "Help" but it did not make a difference. Still crashes. So as you say if something is "out of sync" it seems to stay "out of sync", waiting for something to finish does not seem to help (and my machine did not seem to be busy with anything during the waiting time. This is just my impression from "listening" - I did not check any system monitors). Are you using the same GTK/glib versions? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368304572
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
The plugin doesn't matter. I can re-produce it with every plugin that supports the help button/which has got an help button. To be explicit I re-produced it with this plugins: - Auto-Close - Auto-Mark - Code Navigation - Commander - Define formatter - GeanyCtags - Latex - Macros - Project Organizer - Spell Check - Workbench I think it is not plugin related. The Number bookmarks crashed by just enabling/disabling it but that is definitely another plugin specific issue. I will re-test now and see if waiting some seconds after the on-off phase makes a difference. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368304008
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
The line in the [BT](https://github.com/geany/geany/blob/7d2e6182110a24b505c732f221dd79415f174024/src/plugins.c#L1868) indicates that cbs.help is null, and thats set [here](https://github.com/geany/geany/blob/7d2e6182110a24b505c732f221dd79415f174024/src/plugins.c#L539) which as you can see will set NULL in some circumstances, maybe fast activation/deactivation gets it out of sync. Activation may include loading the .so and therefore may be a slow process (relatively speaking) so your fast click might intercept a previous action. Just check that the plugin is actually enabled, even though the help is enabled, maybe its getting out of sync. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368303253
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Cannot reproduce, @LarsGit223 which plugin? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368302510
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Ok, I can only reproduce it with a GTK3 based build. Here is the backtrace: ``` (gdb) bt #0 0x in ?? () #1 0x7799dc4e in pm_on_plugin_button_clicked (button=, user_data=0x6) at plugins.c:1868 #2 0x755b1fa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #3 0x755c3fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #4 0x755ccd5c in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #5 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #6 0x755b21d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #7 0x755cc9a6 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #8 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #9 0x76b2c6ad in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #10 0x76b2c715 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #11 0x755b1fa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #12 0x755c3afc in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #13 0x755ccd5c in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #14 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #15 0x76b2a7a0 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #16 0x701cbe40 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6 #17 0x701cb8ab in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6 #18 0x755b2cf5 in g_cclosure_marshal_generic_va () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #19 0x755b21d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #20 0x755cc9a6 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #21 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #22 0x76bd8891 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #23 0x755b4dbe in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #24 0x755b21d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #25 0x755cc9a6 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #26 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #27 0x76bd5bee in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #28 0x76bd722b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #29 0x76bd9de5 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #30 0x76ba9beb in gtk_event_controller_handle_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #31 0x76d5abfb in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #32 0x76c1f09a in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #33 0x755b21d4 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #34 0x755cc4b8 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #35 0x755cd08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #36 0x76d5cc3c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #37 0x76c1c3be in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #38 0x76c1e1bc in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #39 0x7678bd92 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #40 0x750d7197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #41 0x750d73f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #42 0x750d7712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #43 0x76c1d395 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #44 0x77999246 in main_lib (argc=1, argv=0x7fffdd08) at libmain.c:1250 #45 0x7735b830 in __libc_start_main (main=0x4005d0 , argc=1, argv=0x7fffdd08, init=, fini=, rtld_fini=, stack_end=0x7fffdcf8) at ../csu/libc-start.c:291 #46 0x00400609 in _start () ``` > I did try that with several different plugins, built against GTK+ 3.22/GLib > 2.54.1. I read in another thread that GTK 3.22 is the only stable version. I am on Ubuntu 16.04, Geany running on GTK 3.18.9, GLib 2.48.2. So maybe it is not a geany issue but I cannot judge that. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368301597
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
I did try that with several different plugins. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368242966
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Cannot re-produce it myself now. I am now on GTK2. Will try some time later again with GTK3. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368242807
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
Did you try enabling/disabling a plugin fast? (On-Off-On-Off-On-Off-On-Help ==> crash) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368242218
Re: [Github-comments] [geany/geany] Geany crashes if help is clicked in Plugin Manager (not on the first time) (#1781)
I cannot reproduce here. Could [post a backtrace](https://www.geany.org/Support/Bugs) to see where it's crashing? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1781#issuecomment-368241573