-
Notifications
You must be signed in to change notification settings - Fork 272
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
Debugger fails with "Error loading file" #309
Comments
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.
Odd. It would be interesting to know exactly what program you tried and how you built it and tried it.
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). |
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
|
Would be useful if someone could provide a backtrace since it will show where the crash happens. |
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?
|
@Top-Dog did you actually mean version 1.23 ? |
Can you re-rerun Geany passing |
@elextr yes; geany 1.23.1 (built on May 19 2013 with GTK 2.24.18, GLib 2.37.0)
@codebrainz This is the updated backtrace:
|
Unfortunately you don't seem to have debugging symbols for the plugin so it doesn't tell where the problem is. |
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. |
@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. |
@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? |
Linux: Ubuntu trusty (3.13.0-68-generic / i686)
Geany 1.25 (built on Jul 13 2015 with GTK 2.24.23, GLib 2.40.2)
Installing from Ubuntu repositories (geany v1.23) caused the same problem, so I tried installing from ppa:geany-dev/ppa. Problem remains. All packages starting with "geany" installed, except for geany-plugin-markdown, geany-plugin-scope.
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.
Then I downloaded a sample .c source file, compiled it and tried to debug it - same problem.
Starting geany from shell in order to try to get some output or stack trace did not help much. All I got was the following: (output on console immediately after pressing "OK" on "Error loading file" dialog)
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed
(geany:30320): GLib-CRITICAL **: g_hash_table_destroy: assertion 'hash_table != NULL' failed
Is there any way I can get a decent stack trace of what caused the "Error loading file"?
The text was updated successfully, but these errors were encountered: