Comments (11)
I have tried debugging a python script, (setting debug target to .py file and .pyc) - both gave me "Error laoding file" when I press the Start button
I then tried debugging a bash script (.sh) - same problem.
The debugger plugin currently only supports GDB as a backend, and GDB doesn't support those languages. AFAIK, it only supports compiled languages, including Ada, C, C++, Objective-C, Pascal and a few others.
Then I downloaded a sample .c source file, compiled it and tried to debug it - same problem.
Odd. It would be interesting to know exactly what program you tried and how you built it and tried it.
Is there any way I can get a decent stack trace of what caused the "Error loading file"?
You could run Geany under a debugger (like GDB) and stop it when the dialog appears, and then get the backtrace. Not quite sure how it would help though, it's probably "just" GDB that is refusing your file for some reason (probably unrecognized format).
from geany-plugins.
I'm getting a very similar error too when trying to debug a C application (just a simple hello world program) with Geany 1.23.1 I've selected the correct program for the Target location
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:5691): GLib-CRITICAL **: Source ID 1196 was not found when attempting to remove it
Segmentation fault (core dumped)
from geany-plugins.
Would be useful if someone could provide a backtrace since it will show where the crash happens.
from geany-plugins.
Hop this helps. I'm running geany via Bash on Win10 using Xming Server, so I could only attach to the running process. Might need to rebuild geany with -g flag?
(gdb) continue
Continuing.Program received signal SIGSEGV, Segmentation fault.
__strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
32 ../sysdeps/x86_64/multiarch/../strchr.S: No such file or directory.
(gdb) bt
#0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
#1 0x00007f8dc1bf5740 in ?? () from /usr/lib/x86_64-linux-gnu/geany/debugger.so
#2 0x00007f8dc8ca8ce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f8dc8ca9048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f8dc8ca930a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f8dca4eb447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#6 0x000000000044a626 in main ()
(gdb)
from geany-plugins.
@Top-Dog did you actually mean version 1.23 ?
from geany-plugins.
Can you re-rerun Geany passing --g-fatal-warnings
argument and post this backtrace?
from geany-plugins.
@elextr yes; geany 1.23.1 (built on May 19 2013 with GTK 2.24.18, GLib 2.37.0)
I tried to build the latest 1.32 but got some errors
libtool: warning: '/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libcairo.la' seems to be moved
libtool: warning: '/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libfreetype.la' seems to be moved
/bin/sed: can't read Development/geany-1.32.tar/geany-1.32/geany-1.32/src/libgeany.la: No such file or directory
libtool: error: 'Development/geany-1.32.tar/geany-1.32/geany-1.32/src/libgeany.la' is not a valid libtool archive
@codebrainz This is the updated backtrace:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fc28ccafc13 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007fc28ccafc13 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007fc28ccafd72 in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fc28ccc806a in g_string_free () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fc285bf2d71 in ?? () from /usr/lib/x86_64-linux-gnu/geany/debugger.so
#4 0x00007fc28cca5648 in g_list_foreach () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007fc285bf2eea in ?? () from /usr/lib/x86_64-linux-gnu/geany/debugger.so
#6 0x00007fc285bf4477 in ?? () from /usr/lib/x86_64-linux-gnu/geany/debugger.so
#7 0x00007fc28cca8ce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007fc28cca9048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007fc28cca930a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007fc28e4eb447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x000000000044a626 in main ()
from geany-plugins.
Unfortunately you don't seem to have debugging symbols for the plugin so it doesn't tell where the problem is.
from geany-plugins.
Thanks for looking into the problem. I can't however remember exactly I tried to debug a python script when I logged this bug. Since python is not a language I work in frequently, I probably tried to debug some script I downloaded. I am currently using Geany 1.27 on Ubuntu 16.04 and I have not used Geany debugger for quite some time. At the time of this bug I was still using Ubuntu 14.04.
from geany-plugins.
@Top-Dog Please try version 1.27 or newer, because it fixed a lot of issues, and I'm pretty sure I remember the warnings you're seeing are part of it.
Instead of building yourself if you have issues with this, try using the latest pre-builds from Geany's website, they should be very up-to-date.
from geany-plugins.
@johnbester: do you see a chance to re-produce the problem? It's quite old and we are now on geany-plugins 1.35. Or do you think we should close it?
from geany-plugins.
Related Issues (20)
- 2.0.0: build fails end compile time warnings HOT 10
- 2.0.0: test suite fails with cppcheck 2.13.1 (unrecognized command line option: "--template") HOT 3
- How to install markdown plugin on Mac M1 HOT 6
- Is it possible to open "spelling suggestions" menu using keyboard ? HOT 3
- Add a typst plugin HOT 4
- SVG and X3D markup languages HOT 4
- Make updatechecker plugin for MacOS HOT 17
- BUG during tab-browsing with the keyboard in the sidebar when a new tab is in the sidebar HOT 5
- Feature request - extend plugin Save Actions - code fixers HOT 7
- A release of a click on the tab-title of a plugin-tab in the sidebar should put the content of the tab in focus HOT 6
- Default plugins folder incorrect / not found HOT 1
- Line Operations plugin outputs "Value: 0" to terminal when Geany launches HOT 3
- overview causes geany to crash when crating a new file and clicking in the file area. HOT 7
- plugin idea: cyclomatic complexity somewhere near the functionname in the symbol list. HOT 1
- help with plugin writing docs HOT 5
- GeanyGenDoc crash HOT 12
- Problem with debugging: the system cannot find the specified file
- Wish: Plugin for creating random password HOT 1
- Feature request: NumberedBookmarks Plugin should remember bookmarks when Geany is exited.
- NumberedBookmarks : Allow warning of bookmarks becoming invalid to be suppressed (Feature Request)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geany-plugins.