Open sagarchalise opened 12 years ago
Can you post the code of the plugin being loaded (if any)?
Also can you try deleting (or emptying) the file ~/.config/geany/plugins/geanypy/plugins/.loaded_plugins
and see if it still crashes?
I was not trying to load any plugin written with geanypy. I guess I have to load GeanyPy
first and it happened when I was loading/enabling GeanyPy
. I tried what you said but still doesnot work. It crashes with segmentation fault as soon as I check the plugin loading box for GeanyPy
.
Hmm, any chance of trying again with gdb
or even valgrind
and using the -v
argument to Geany? I can't tell what's going on from that backtrace since the calls before that memory access message are all inside Python itself.
If I enable it through geany.conf
and then load gdb I get this otherwise its the same as above when I run geany and then enable it
(gdb) run -v
Starting program: /usr/bin/geany -v
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Geany-INFO: Geany 0.21, en_US.utf8
Geany-INFO: GTK 2.24.9, GLib 2.30.2
Geany-INFO: System data dir: /usr/share/geany
Geany-INFO: User config dir: /home/sagarchalise/.config/geany
Geany-INFO: Added filetype Cython (52).
Geany-INFO: Added filetype Scala (53).
Geany-INFO: Added filetype Genie (54).
[New Thread 0x7fffeddea700 (LWP 6749)]
Geany-INFO: Loaded: /usr/lib/geany/addons.so (Addons)
Geany-INFO: Loaded: /usr/lib/geany/geanydoc.so (Doc)
Geany-INFO: Loaded: /usr/lib/geany/geanygendoc.so (Documentation Generator)
Geany-INFO: Loaded: /usr/lib/geany/export.so (Export)
Geany-INFO: Loaded: /usr/lib/geany/geanyextrasel.so (Extra Selection)
Geany-INFO: Loaded: /usr/lib/geany/gproject.so (GProject)
Geany-INFO: Loaded: /usr/lib/geany/geanylipsum.so (GeanyLipsum)
GeanyPG: Using libgpgme version: 1.3.1
Geany-INFO: Loaded: /usr/lib/geany/geanypg.so (GeanyPG)
Geany-INFO: Loaded: /usr/lib/geany/htmlchars.so (HTML Characters)
Geany-INFO: Loaded: /usr/lib/geany/geanyinsertnum.so (Insert Numbers)
Lua Script: Using support library path: /usr/lib/geany-plugins/geanylua/libgeanylua.so
==>> Lua Script: Building menu from '/usr/share/geany-plugins/geanylua'
Lua Script: File not found /usr/share/geany-plugins/geanylua/hotkeys.cfg
Geany-INFO: Loaded: /usr/lib/geany/geanylua.so (Lua Script) Geany-INFO: Loaded: /usr/lib/geany/geanymacro.so (Macros) Geany-INFO: Loaded: /usr/lib/geany/geanynumberedbookmarks.so (Numbered Bookmarks) Geany-INFO: Loaded: /usr/lib/geany/shiftcolumn.so (Shift Column) Geany-INFO: Loaded: /usr/lib/geany/spellcheck.so (Spell Check) Geany-INFO: Loaded: /usr/lib/geany/splitwindow.so (Split Window) Geany-INFO: Loaded: /usr/lib/geany/tableconvert.so (Tableconvert) Geany-INFO: Loaded: /usr/lib/geany/treebrowser.so (TreeBrowser) Geany-INFO: Loaded: /usr/lib/geany/pretty-print.so (XML PrettyPrinter) Geany-INFO: Loaded: /usr/lib/geany/xmlsnippets.so (XML Snippets) Geany-INFO: Loaded: /usr/lib/geany/zencoding.so (Zen Coding)
Program received signal SIGSEGV, Segmentation fault. 0x00007fffe8a1a565 in PyObject_GetAttrString () from /usr/lib/libpython2.7.so.1.0 (gdb) bt
---Type
UPDATE: Seems like I need to load the GeanyPy
plugin first then I need to load others. Its working right now. let me see if I can trace something more.
It's probably a conflict with the Zen Coding plugin since both load the Python interpreter and I have doubts whether this would work OK. Eventually I want to port the Zen Coding plugin to be a GeanyPy plugin to avoid this conflict.
Do you mind trying combinations of both to see if it is a conflict?
Well I am using both. If I enable geanypy
through geany.conf and then start enabling other plugins through GUI. I havenot faced any problem. On a very different note, Does GeanyPy
work with older geany
i.e. 0.20 or 0.19 ?. I want to package GeanyPy
and Geany-Zencoding
for ubuntu
as well as archlinux
. Especially in ubuntu, 0.21 is not shipped until 12.04, so wanted to know if it works on older version ? I have already setup ppa https://launchpad.net/~chalisesagar/+archive/geany-extras.
Anyway let me see if I can catch anything else. But now its working smoothly [Both plugins].
Got this error on gdb and bt
Program received signal SIGSEGV, Segmentation fault. 0x00007fffe8a1a565 in PyObject_GetAttrString () from /usr/lib/libpython2.7.so.1.0 (gdb) bt
0 0x00007fffe8a1a565 in PyObject_GetAttrString () from /usr/lib/libpython2.7.so.1.0
1 0x00007fffe8a1a8b6 in PyObject_HasAttrString () from /usr/lib/libpython2.7.so.1.0
2 0x00007fffe8a895f0 in ensure_fromlist () from /usr/lib/libpython2.7.so.1.0
Cannot access memory at address 0x7fffffffc5c8