bugs in Git tree

Questions specific to Megatunix - alternate tuning software that runs on unix and windows.
Note that Megatunix is obsolete.

Moderator: djandruczyk

piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

bugs in Git tree

Post by piledriver »

Issue with the latest git pull (about 10 minutes ago) seeing same with tarball under Ubuntu 10.04 or Mandriva 2010.0 or 2010.1, only installed/setup Ubuntu to test Megatunix (fresh install) in case of some Debianism issues, but the problem appears identical.

root@gobook:~# megatunix
The program 'megatunix' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadIDChoice (invalid resource ID chosen for this connection)'.
(Details: serial 1265 error_code 14 request_code 1 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

This IIRC means it crashed, and that's about it.

Now the weird thing--- It works FINE... occasionally.
... seems to possibly be bombing out on ECU interrogation.
(no issues with TunerStudio/Megatune in windows or TS in Linux)

Your "Ubuntu how-to" works as well under Mandriva as it does under 10.04, with the exception of glade naming IIRC.
(it's just called "glade' under Mandriva and 10.04)
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: How to Install MegaTunix on Ubuntu Linux (all versions)

Post by djandruczyk »

piledriver wrote:Issue with the latest git pull (about 10 minutes ago) seeing same with tarball under Ubuntu 10.04 or Mandriva 2010.0 or 2010.1, only installed/setup Ubuntu to test Megatunix (fresh install) in case of some Debianism issues, but the problem appears identical.

root@gobook:~# megatunix
The program 'megatunix' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadIDChoice (invalid resource ID chosen for this connection)'.
(Details: serial 1265 error_code 14 request_code 1 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

This IIRC means it crashed, and that's about it.

Now the weird thing--- It works FINE... occasionally.
... seems to possibly be bombing out on ECU interrogation.
(no issues with TunerStudio/Megatune in windows or TS in Linux)

Your "Ubuntu how-to" works as well under Mandriva as it does under 10.04, with the exception of glade naming IIRC.
(it's just called "glade' under Mandriva and 10.04)

Latest git has several bugs in it that are being worked upon, so errors are to be expected. You'd need to recompile it with debugging enabled and run it under GDB to get a meaningful trace that may help with debugging.
i.e.
./configure --enable-debug ; make clean ; make ; sudo make install
cd src
gdb ./megatunix
gdb> run
when it crashes
type "bt" and send me the result.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: How to Install MegaTunix on Ubuntu Linux (all versions)

Post by piledriver »

For comparison, I installed the Win version, it also had serious issues connecting:
It also crashed once trying. (below is only one of many attempts, this one worked eventually)

Code: Select all

Initiating background ECU interrogation...
Command "c" (MS-II Clock), returned 1 bytes
Command "A" (MS-I Runtime Vars), returned 98 bytes
Command "Q" (ECU Revision), returned 10 bytes (SEtaRl303)
Command "S" (ECU Signature), returned 60 bytes (MS2/Extra Alpha pre3.0.3u 20100520 22:31EDT(c)KC/JSM/JBMS2)
Firmware NOT DETECTED, Enable Interrogation debugging, retry interrogation,
close megatunix, and send ~/MTXlog.txt to the author for analysis with a note
describing which firmware you are attempting to talk to.
USER Initiated ECU interrogation...
Command "c" (MS-II Clock), returned 1 bytes
Command "A" (MS-I Runtime Vars), returned 108 bytes
Command "Q" (ECU Revision), returned 11 bytes (SEtaRl30.3)
Firmware NOT DETECTED, Enable Interrogation debugging, retry interrogation,
close megatunix, and send ~/MTXlog.txt to the author for analysis with a note
describing which firmware you are attempting to talk to.
USER Initiated ECU interrogation...
Command "c" (MS-II Clock), returned 1 bytes
Command "A" (MS-I Runtime Vars), returned 141 bytes
Command "Q" (ECU Revision), returned 20 bytes (MS2Extra Rel 3.0.3s)
Command "S" (ECU Signature), returned 32 bytes (S/xr lh r303 2102 2:3ETcK/S/BS)
Detected Firmware: MS-II-Extra V3.0.x series
Loading Settings from: "C:\Program Files\MegaTuni...........
FWIW, The interrogation under (for example) TS also appears to initially fail,(it doesn't load up like it connected, but it also doesn't error out)... once you load a saved project it immediately communicates and loads up. The loading of an existing project (eliminating the need to autodetect) is not an option with megatunix, might be something to consider.

...Or it might be due to me running 303u...

If it's of any help, this is where it bombs out under Ubuntu or Mandriva.

I set it up with debugging and send you a backtrace ASAP.
(EDIT--bt gives no debug info, it's bombing in an external lib, loading up the debug repos/pkgs and trying again)

Also note--- FWIW the latest GTK runtime (2.16) is apparently missing libgdkglext, the 2.12 version you recommend works (of course).
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: How to Install MegaTunix on Ubuntu Linux (all versions)

Post by piledriver »

Stepping through the code in ddd, it's not actually crashing per se...
It appears to be failing to interrogate and then shutting itself down, possibly returning an error.

It actually works fine about 1 in 10 tries, and once loaded has no issues.

Since this is git code, is there another more appropriate thread?
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: How to Install MegaTunix on Ubuntu Linux (all versions)

Post by djandruczyk »

piledriver wrote:Stepping through the code in ddd, it's not actually crashing per se...
It appears to be failing to interrogate and then shutting itself down, possibly returning an error.

It actually works fine about 1 in 10 tries, and once loaded has no issues.

Since this is git code, is there another more appropriate thread?
I split off the thread. That sort of behavior, where it fails during interrogation a large part of the time but mtx works stably afterwards indicates a threading issue, where the interrogation routine is calling a GTK+ call when it should not (the interrogation runs sa thread. In almost every gui toolkit only one thread can make GUI calls, so mtx uses tricks to allow other threads to do it (message passing), but its possible to make gui calls from a thread and not have an immediate direct failure, which makes it very difficult to find the bug.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

Using the latest checked out using Git on the master branch I have the same start up crash as described previously.
And it also regularly crashes when using the program even if it manages to start up.

Any recommendations of a different branch to check out that does not have this bug?
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

mahler wrote:Using the latest checked out using Git on the master branch I have the same start up crash as described previously.
And it also regularly crashes when using the program even if it manages to start up.

Any recommendations of a different branch to check out that does not have this bug?
be helpful and compile it with debugging symbols (./configure --enable-debug ; make clean ; make ; sudo make install )
and run it under GDB and get a trace of the failure.
cd src
gdb ./megatunix
gdb> run

when it crashes, type "bt" to a get a trace, and copy/paste the information here. Please do it MULITPLE times to see if it crashes in the same place or not.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

Here are the results of compiling Megatunix with --enable-debug and recording back traces.
The problem described in this thread (X bad window) only happened once but it crashed in various other situations.


startup, bad X window, crash

Code: Select all

(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11590)]
[New Thread 0xb0c88b70 (LWP 11591)]
[Thread 0xb0c88b70 (LWP 11591) exited]
The program 'megatunix' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 1287 error_code 3 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Thread 0xb15d2b70 (LWP 11590) exited]

Program exited with code 01.
(gdb) bt
No stack.
(gdb) 
statup hang
During start up it would hang while performing interrogation on a running controller for over a minute.

Code: Select all

jeri@bishop src$ gdb ./megatunix 
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix...done.
(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11248)]
[New Thread 0xb0c88b70 (LWP 11249)]
[Thread 0xb0c88b70 (LWP 11249) exited]
^C
Program received signal SIGINT, Interrupt.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb7280916 in *__GI___poll (fds=0xb7304ff4, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb5a730f0 in ?? () from /usr/lib/libxcb.so.1
#3  0xb5a75761 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4  0xb7ccb7a6 in _XReply () from /usr/lib/libX11.so.6
#5  0xb7cc0cd1 in XTranslateCoordinates () from /usr/lib/libX11.so.6
#6  0xb785977b in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#7  0xb7859992 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8  0xb7859daf in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#9  0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#10 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#11 0xb74b21b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#12 0xb79d0c24 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x0807f629 in pf_dispatcher (data=0x0) at dispatcher.c:140
#14 0xb74aea6c in ?? () from /lib/libglib-2.0.so.0
#15 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#17 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#18 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb)

Code: Select all

jeri@bishop src$ gdb ./megatunix 
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix...done.
(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11519)]
[New Thread 0xb0c88b70 (LWP 11520)]
[Thread 0xb0c88b70 (LWP 11520) exited]
^C
Program received signal SIGINT, Interrupt.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb7280916 in *__GI___poll (fds=0xb7304ff4, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb5a730f0 in ?? () from /usr/lib/libxcb.so.1
#3  0xb5a75761 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4  0xb7ccb7a6 in _XReply () from /usr/lib/libX11.so.6
#5  0xb7cc0cd1 in XTranslateCoordinates () from /usr/lib/libX11.so.6
#6  0xb785977b in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#7  0xb7859992 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8  0xb7859daf in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#9  0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#10 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#11 0xb74b21b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#12 0xb79d0c24 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x0807f629 in pf_dispatcher (data=0x0) at dispatcher.c:140
#14 0xb74aea6c in ?? () from /lib/libglib-2.0.so.0
#15 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#17 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#18 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb) 
select rpmdot crash
This crash happens when you start up megatunix, select logview, select realtime variables then select 'rpmdot'.
Other variables, such as rpm, can be selected and the problem will not occur.

Code: Select all

(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11023)]
[New Thread 0xb0c88b70 (LWP 11024)]
[Thread 0xb0c88b70 (LWP 11024) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, 
    loc=0xb7305380) at strtol_l.c:298
298     strtol_l.c: No such file or directory.
        in strtol_l.c
(gdb) bt
#0  0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, 
    group=0, loc=0xb7305380) at strtol_l.c:298
#1  0xb71f2620 in *__GI_strtol (nptr=0x0, endptr=0x0, base=10) at strtol.c:110
#2  0x0809dd70 in build_v_value (object=0x84ce6e0) at logviewer_gui.c:533
#3  0x0809d784 in populate_viewer () at logviewer_gui.c:381
#4  0x0809d51d in view_value_set (widget=0xc1bb500, data=0x0)
    at logviewer_gui.c:311
#5  0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#6  0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0xb756f62d in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#9  0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#10 0xb7aa721a in gtk_toggle_button_toggled () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb7aa7262 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#13 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#14 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#15 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#17 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#18 0xb7919a3a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb7aa6f68 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#21 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#22 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#23 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#24 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#25 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#26 0xb7919ada in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb7919b23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb79d6e24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#30 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb756f276 in ?? () from /usr/lib/libgobject-2.0.so.0
#32 0xb7570a83 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#33 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb7b031c6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb79cf47d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb79d0807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#37 0xb7859dda in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#38 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#40 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#41 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#42 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb) 

Code: Select all

(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11119)]
[New Thread 0xb0c88b70 (LWP 11120)]
[Thread 0xb0c88b70 (LWP 11120) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, 
    loc=0xb7305380) at strtol_l.c:298
298     strtol_l.c: No such file or directory.
        in strtol_l.c
(gdb) bt
#0  0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, 
    group=0, loc=0xb7305380) at strtol_l.c:298
#1  0xb71f2620 in *__GI_strtol (nptr=0x0, endptr=0x0, base=10) at strtol.c:110
#2  0x0809dd70 in build_v_value (object=0xb013b6e0) at logviewer_gui.c:533
#3  0x0809d784 in populate_viewer () at logviewer_gui.c:381
#4  0x0809d51d in view_value_set (widget=0xcad6540, data=0x0)
    at logviewer_gui.c:311
#5  0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#6  0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0xb756f62d in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#9  0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#10 0xb7aa721a in gtk_toggle_button_toggled () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb7aa7262 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#13 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#14 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#15 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#17 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#18 0xb7919a3a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb7aa6f68 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#21 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#22 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#23 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#24 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#25 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#26 0xb7919ada in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb7919b23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb79d6e24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#30 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb756f276 in ?? () from /usr/lib/libgobject-2.0.so.0
#32 0xb7570a83 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#33 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb7b031c6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb79cf47d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb79d0807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#37 0xb7859dda in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#38 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#40 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#41 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#42 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb)

Code: Select all

GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix...done.
(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11452)]
[New Thread 0xb0c88b70 (LWP 11453)]
[Thread 0xb0c88b70 (LWP 11453) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=0, 
    loc=0xb7305380) at strtol_l.c:298
298     strtol_l.c: No such file or directory.
        in strtol_l.c
(gdb) bt
#0  0xb71f28bc in *__GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, 
    group=0, loc=0xb7305380) at strtol_l.c:298
#1  0xb71f2620 in *__GI_strtol (nptr=0x0, endptr=0x0, base=10) at strtol.c:110
#2  0x0809dd70 in build_v_value (object=0x84cbae0) at logviewer_gui.c:533
#3  0x0809d784 in populate_viewer () at logviewer_gui.c:381
#4  0x0809d51d in view_value_set (widget=0xc2f40a8, data=0x0)
    at logviewer_gui.c:311
#5  0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#6  0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0xb756f62d in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#9  0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#10 0xb7aa721a in gtk_toggle_button_toggled () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb7aa7262 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#13 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#14 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#15 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#17 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#18 0xb7919a3a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb7aa6f68 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#21 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#22 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#23 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#24 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#25 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#26 0xb7919ada in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb7919b23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb79d6e24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#30 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb756f276 in ?? () from /usr/lib/libgobject-2.0.so.0
#32 0xb7570a83 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#33 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb7b031c6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb79cf47d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb79d0807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#37 0xb7859dda in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#38 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#40 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#41 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#42 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb) 
3D View crash
This crash happens any time the '3D View' button is clicked when editing a table (VE, ignition, etc).

Code: Select all

jeri@bishop src$ gdb ./megatunix 
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix...done.
(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11553)]
[New Thread 0xb0c88b70 (LWP 11554)]
[Thread 0xb0c88b70 (LWP 11554) exited]
[New Thread 0xb0c88b70 (LWP 11569)]
[New Thread 0xaf4ffb70 (LWP 11570)]
[Thread 0xb0c88b70 (LWP 11569) exited]

Program received signal SIGSEGV, Segmentation fault.
0xaecaf2d0 in ?? ()
(gdb) bt
#0  0xaecaf2d0 in ?? ()
#1  0xb7fad952 in gdk_gl_get_proc_address () from /usr/lib/libgdkglext-x11-1.0.so.0
#2  0xb7fa604e in gdk_gl_get_glPolygonOffsetEXT ()
   from /usr/lib/libgdkglext-x11-1.0.so.0
#3  0x08068c04 in ve3d_realize (widget=0x8381520, data=0x0) at 3d_vetable.c:909
#4  0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#5  0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#6  0xb756fa20 in ?? () from /usr/lib/libgobject-2.0.so.0
#7  0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#8  0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#9  0xb7b09fcb in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7b0a898 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb798ea58 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#13 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#14 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#15 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#18 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb7911a95 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#23 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#24 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#25 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#26 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#27 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#28 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#29 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#30 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#31 0xb7911a95 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#33 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#34 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#35 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#36 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#37 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#38 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#39 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#40 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb7b1c654 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#42 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#43 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#44 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#45 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#46 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#47 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#48 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#49 0xb7b1c7c0 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#50 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#51 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#52 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#53 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#54 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#55 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#56 0xb7b0b092 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#57 0xb7b0add2 in gtk_widget_show_all () from /usr/lib/libgtk-x11-2.0.so.0
#58 0x08068255 in create_ve3d_view (widget=0x8d1fa70, data=0x0) at 3d_vetable.c:620
#59 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#60 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#61 0xb756f62d in ?? () from /usr/lib/libgobject-2.0.so.0
#62 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#63 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#64 0xb7919a3a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#65 0xb791aff8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#66 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#67 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#68 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#69 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#70 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#71 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#72 0xb7919ada in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#73 0xb7919b23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#74 0xb79d6e24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#75 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#76 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#77 0xb756f276 in ?? () from /usr/lib/libgobject-2.0.so.0
#78 0xb7570a83 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#79 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#80 0xb7b031c6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#81 0xb79cf47d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#82 0xb79d0807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#83 0xb7859dda in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#84 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#85 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#86 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#87 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#88 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb) 

Code: Select all

jeri@bishop src$ gdb ./megatunix 
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix...done.
(gdb) run
Starting program: /home/jeri/MegaTunix-work/megatunix-0.9.22/src/megatunix 
[Thread debugging using libthread_db enabled]
[New Thread 0xb15d2b70 (LWP 11655)]
[New Thread 0xb0c88b70 (LWP 11656)]
[Thread 0xb0c88b70 (LWP 11656) exited]

Program received signal SIGSEGV, Segmentation fault.
0xafd8d2d0 in ?? ()
(gdb) bt
#0  0xafd8d2d0 in ?? ()
#1  0xb7fad952 in gdk_gl_get_proc_address () from /usr/lib/libgdkglext-x11-1.0.so.0
#2  0xb7fa604e in gdk_gl_get_glPolygonOffsetEXT ()
   from /usr/lib/libgdkglext-x11-1.0.so.0
#3  0x08068c04 in ve3d_realize (widget=0x99ff510, data=0x0) at 3d_vetable.c:909
#4  0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#5  0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#6  0xb756fa20 in ?? () from /usr/lib/libgobject-2.0.so.0
#7  0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#8  0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#9  0xb7b09fcb in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7b0a898 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb798ea58 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#13 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#14 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#15 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#18 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb7911a95 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#23 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#24 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#25 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#26 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#27 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#28 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#29 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#30 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#31 0xb7911a95 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0xb7946214 in gtk_container_forall () from /usr/lib/libgtk-x11-2.0.so.0
#33 0xb7949154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#34 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#35 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#36 0xb7559068 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#37 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#38 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#39 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#40 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb7b1c654 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#42 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#43 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#44 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#45 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#46 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#47 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#48 0xb7b0a852 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#49 0xb7b1c7c0 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#50 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#51 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#52 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#53 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#54 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#55 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#56 0xb7b0b092 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#57 0xb7b0add2 in gtk_widget_show_all () from /usr/lib/libgtk-x11-2.0.so.0
#58 0x08068255 in create_ve3d_view (widget=0x94c0900, data=0x0) at 3d_vetable.c:620
#59 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#60 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#61 0xb756f62d in ?? () from /usr/lib/libgobject-2.0.so.0
#62 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#63 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#64 0xb7919a3a in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#65 0xb791aff8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#66 0xb7566cbc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#67 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#68 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#69 0xb756eeca in ?? () from /usr/lib/libgobject-2.0.so.0
#70 0xb7570c04 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#71 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#72 0xb7919ada in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#73 0xb7919b23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#74 0xb79d6e24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#75 0xb75577a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#76 0xb7559142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#77 0xb756f276 in ?? () from /usr/lib/libgobject-2.0.so.0
#78 0xb7570a83 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#79 0xb7571086 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#80 0xb7b031c6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#81 0xb79cf47d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#82 0xb79d0807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#83 0xb7859dda in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#84 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#85 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#86 0xb74b21b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#87 0xb79d0c24 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#88 0x0807f629 in pf_dispatcher (data=0x0) at dispatcher.c:140
#89 0xb74aea6c in ?? () from /lib/libglib-2.0.so.0
#90 0xb74ae2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#91 0xb74b1fd8 in ?? () from /lib/libglib-2.0.so.0
#92 0xb74b2517 in g_main_loop_run () from /lib/libglib-2.0.so.0
#93 0xb79d0dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#94 0x080a2433 in main (argc=1, argv=0xbffff414) at main.c:131
(gdb) 
The context of the crashes look consistent but I am not very familiar with Gtk.

Hope this helps.
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

those are pretty good traces.. I'll look into them this evening if possible.

What linux distro/version, and video card/driver (if proprietary ATI/nvidia/other)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

djandruczyk wrote: ...
What linux distro/version, and video card/driver (if proprietary ATI/nvidia/other)
I am running Debian unstable with the nvidia drivers (nvidia-glx 195.36.24-4).
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

mahler wrote:
djandruczyk wrote: ...
What linux distro/version, and video card/driver (if proprietary ATI/nvidia/other)
I am running Debian unstable with the nvidia drivers (nvidia-glx 195.36.24-4).
I committed a fix for the logviewer fault. it wasn't just one variable it was lots of them. The limits weren't being properly setup.

As for the hang on startup, the badwindow and the GL crash I'm not sure. 2 of those three could be due to a bug in the nvidia driver or a bug in GtkGLext. The badwindow one is likely a threading issue I'm missing somewhere. As several other users have noted a tendancy to crash in the first 5 seconds, and if it gets past that point usually things are fine, its just during that period when things go awry.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

That fixed the rpmdot crash bug, awesome!

I did some more digging on the 3d view crash problem...
It looks like it is a problem when using gdk_gl_get_proc_address("glPolygonOffset");
There is a bug report that looks similar [Debian BUG#337022].
And I was able to compile a small program consisting of just that call and it segfaults every time.
The Debian version is up to date so it looks like the next step would be examining the source of gtkglext.

Code: Select all

// get_proc_address.c
// libgtkglext1-dev
#include <gdk/gdkglquery.h>

int main() {
    GdkGLProc proc = NULL;
    
    proc = gdk_gl_get_proc_address("glPolygonOffset");
}   

Code: Select all

# Makefile
INCLUDE=-I/usr/include/gtkglext-1.0 \
		-I/usr/lib/gtkglext-1.0/include \
		-I/usr/include/glib-2.0 \
		-I/usr/lib/glib-2.0/include \
		-I/usr/include/gtk-2.0 \
		-I/usr/lib/gtk-2.0/include \
		-I/usr/include/pango-1.0 \
		-I/usr/include/cairo

LIB=-Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgtk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgdk-x11-2.0 -lpangox-1.0 -lX11 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0

a.out: get_proc_address.c
	gcc -g $(INCLUDE) $(LIB) get_proc_address.c


clean:
	-rm -f a.out

The rest of the bugs are tolerable for now.
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

I have nvidia, however my system is much older (ubuntu 8.04), running the nvidia driver 169.12+2.6.24.18-28.6 for a GeForce 7600 GS

My guess is that there is either a bug in the nvidia driver itself, or in the GTKglext version you have on your debian unstable system
my version is :

dpkg -l |grep gtkglext
ii libgtkglext1 1.2.0-0ubuntu1 OpenGL Extension to GTK (shared libraries)
ii libgtkglext1-dev 1.2.0-0ubuntu1 OpenGL Extension to GTK (development files)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

I think you are right about it being a bug in either GTKglext or the nvidia driver.
The versions I have installed are similar to the ones you have installed.

Code: Select all

jeri@bishop ~$ dpkg -l | grep gtkglext
ii  libgtkglext1                                             1.2.0-1.1                      OpenGL Extension to GTK+ (shared libraries)
ii  libgtkglext1-dbg                                         1.2.0-1.1                      OpenGL Extension to GTK+ (debugging symbols)
ii  libgtkglext1-dev                                         1.2.0-1.1                      OpenGL Extension to GTK+ (development files)

jeri@bishop ~$ dpkg -l nvidia-glx
...
ii  nvidia-glx      195.36.24-4     NVIDIA binary Xorg driver
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

mahler wrote:I think you are right about it being a bug in either GTKglext or the nvidia driver.
The versions I have installed are similar to the ones you have installed.

Code: Select all

jeri@bishop ~$ dpkg -l | grep gtkglext
ii  libgtkglext1                                             1.2.0-1.1                      OpenGL Extension to GTK+ (shared libraries)
ii  libgtkglext1-dbg                                         1.2.0-1.1                      OpenGL Extension to GTK+ (debugging symbols)
ii  libgtkglext1-dev                                         1.2.0-1.1                      OpenGL Extension to GTK+ (development files)

jeri@bishop ~$ dpkg -l nvidia-glx
...
ii  nvidia-glx      195.36.24-4     NVIDIA binary Xorg driver

Try this weird suggestion
open a terminal
run

Code: Select all

export LC_ALL=C
export LANG=
megatunix
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

djandruczyk wrote: ...
Try this weird suggestion
open a terminal
run

Code: Select all

export LC_ALL=C
export LANG=
megatunix
That did not change much. If anything it seems to crash more. And it still sporadically hangs on startup and crashes when trying to use '3d view'.

Code: Select all

jeri@bishop MegaTunix-work$ megatunix 
The program 'megatunix' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
  (Details: serial 25452 error_code 16 request_code 38 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
jeri@bishop MegaTunix-work$

Code: Select all

jeri@bishop ~$ megatunix 
The program 'megatunix' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadIDChoice (invalid resource ID chosen for this connection)'.
  (Details: serial 2082 error_code 14 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
jeri@bishop ~$
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

I believe i solved the other major crashing problem. There was a VERY BAD bug in megatunix due to my inability to follow instructions properly. :) MegaTunix wasn't properly handling threads and gui interaction like it was supposed to. I have since fixed this and checked in the changes. Testing by others seems to indicate it has solved the major crashes on startup or within the first few minutes of use.

Please pull, recompile, try and report back.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mahler
Helpful MS/Extra'er
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: bugs in Git tree

Post by mahler »

djandruczyk wrote:I believe i solved the other major crashing problem. There was a VERY BAD bug in megatunix due to my inability to follow instructions properly. :) MegaTunix wasn't properly handling threads and gui interaction like it was supposed to. I have since fixed this and checked in the changes. Testing by others seems to indicate it has solved the major crashes on startup or within the first few minutes of use.

Please pull, recompile, try and report back.
Those changes definitely made an improvement :D . Not once did it hang during start up in either on or off line mode.
And I did not get any x-window errors.

I am not sure if this anything to do with your recent changes but it seems like the latency when moving between items
is quite high (several seconds). If I turn off "RT Data" latency is much lower and more normal. But this makes it difficult to edit maps when the current value is not highlighted. Interestingly, if you edit a map (spark, VE) and change the cell value it will take several seconds for the cell to show the change but the gauge at the bottom will show the change immediately.
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: bugs in Git tree

Post by djandruczyk »

mahler wrote:
djandruczyk wrote:I believe i solved the other major crashing problem. There was a VERY BAD bug in megatunix due to my inability to follow instructions properly. :) MegaTunix wasn't properly handling threads and gui interaction like it was supposed to. I have since fixed this and checked in the changes. Testing by others seems to indicate it has solved the major crashes on startup or within the first few minutes of use.

Please pull, recompile, try and report back.
Those changes definitely made an improvement :D . Not once did it hang during start up in either on or off line mode.
And I did not get any x-window errors.

I am not sure if this anything to do with your recent changes but it seems like the latency when moving between items
is quite high (several seconds). If I turn off "RT Data" latency is much lower and more normal. But this makes it difficult to edit maps when the current value is not highlighted. Interestingly, if you edit a map (spark, VE) and change the cell value it will take several seconds for the cell to show the change but the gauge at the bottom will show the change immediately.
What speed is your computer, and does it have more than 1 core or not?

Turn down the polling and update rates on the comms tab, which should improve responsiveness.
i.e. INCREASE the delay between reads and/or decrease the FPS rates for the sliders/ttext/dash or 3D display(s)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: bugs in Git tree

Post by piledriver »

git pull... Ahhhh....
____Much____ mo betta, no more crashes, but ditto on the update issues, much slower than before (when it connected before)
MTX was frozen almost solid on the old refresh settings, took a minute or 2 to swicth tabs so I could drop it to 5 fps from the defaults.
(once I figured out it wasn't just hung)

Updates were quite speedy before, now... not so much.
Comm seems much more reliable, getting the right strings in the id fields, always.

PentiumM @ a scorching 1.8 GHz, 2G RAM, in a Gobook3 (with a real live serial port, main selection criteria for the machine)
Mandriva 2010.1. (also works under 2010.0)

Screen is 1024x768, 9250M ATI chip for graphics, so it can do OpenGL in hardware if you don't do more than Q3 or Alien Arena on low settings.
(Hey---CPU, resolution and 12" screen bigger than the disposable Netbooks folks use for MS tuning, and I can drop it on concrete from 4', repeatedly. I tested that spec once unintentionally... While running. No damage other than a paint chip on the concrete and to my shorts.)

Now I just have to look for your instructions how to manually reduce the GTK fonts, it doesn't obey the KDE settings like GTK apps are supposed to...
(everything else GTK that ships with the system does, there must be a missing hook)
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
Post Reply