After updating to geany 1.30.1 + geany-plugins 1.30, geany allways crashes (segmentation fault) when closing project with project organizer plugin enabled. Tested on windows 10 & ubuntu 16.04 x64
Submitted pull request https://github.com/geany/geany-plugins/pull/550 for this.
@techee FYI
``` Thread 1 "geany" received signal SIGSEGV, Segmentation fault. 0x00007fffe0016aa2 in expand_path (utf8_expanded_path=0x13cf090 "", select=select@entry=0) at prjorg-sidebar.c:1168 1168 foreach_slist (elem, prj_org->roots) (gdb) bt #0 0x00007fffe0016aa2 in expand_path (utf8_expanded_path=0x13cf090 "", select=select@entry=0) at prjorg-sidebar.c:1168 #1 0x00007fffe0016c5f in expand_on_idle (ptr=0x8659a0) at prjorg-sidebar.c:1224 #2 0x00007ffff529945a in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #3 0x00007ffff5299810 in () at /usr/lib/libglib-2.0.so.0 #4 0x00007ffff5299b32 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0 #5 0x00007ffff724ed05 in gtk_main () at /usr/lib/libgtk-3.so.0 #6 0x00007ffff79a7a40 in main_lib (argc=<optimized out>, argv=<optimized out>) at ../../src/libmain.c:1236 #7 0x00007ffff4cad511 in __libc_start_main () at /usr/lib/libc.so.6 #8 0x000000000040061a in _start () ```
Reverting 8111515 helps
I can't reproduce it myself but I think the reason is that the idle function gets called after project is closed. Can someone confirm that #555 helps?
I think I experienced this bug very infrequently. P/O is one of the plugins I always have activated and once in a blue moon I got a crasher. Hopefully this is the problem because it didn't happen enough for me to troubleshoot it :)
Hi! I've installed `geany 1.30.1-1~xenial1 & geany-plugins 1.30+dfsg-1~xenial1` from this ppa: https://launchpad.net/~geany-dev/+archive/ubuntu/ppa in a virual Ubuntu 16.04 x64 machine and enabling project organizer plugin the crash occurs every time I close an open project. I've cloned this repo and compiled only projectorganizer plugin aplying @techee [#555](https://github.com/geany/geany-plugins/pull/555) and I can confirm that the crash is gone. It works!
Thanks
I think the crash depends on when idle functions are exactly called and could be specific to the used gtk/glib versions - I for instance have never seen it.
I've uploaded an updated patch in #555 - @interoceto could you test it?
Hi all! @techee Tested [#555](https://github.com/geany/geany-plugins/pull/555) in virtual Ubuntu machine (named above) and all seems to run as expected. No more crashes. Tested: Create new project. Switch from open project to the new one and viceversa. Close project. Close geany with an opened project. Open geany and the project is correctly opened.
Thank you!
Closed #549.
@techee I can confirm that #559 Solves this issue.
Thanks
github-comments@lists.geany.org