MegaTunix on OS-X (revised)

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

Moderator: djandruczyk

Did this work for you?

Yes
4
67%
No
1
17%
It had a problem somewhere, I posted a question in this thread.
1
17%
 
Total votes: 6

Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

I have new and different problems, now.

I got the fink install finished, then ran ./autogen.sh and it failed part way through with this error:

Code: Select all

checking for gmsgfmt... /sw/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.0
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
I searched with fink apropos and found these two entries:

Code: Select all

 i   xml-parser-pm5100            2.36-2                Perl ext interface to XML parser/expat
     xml-parser-pm588             2.36-2                Perl ext interface to XML parser/expat
And then tried to run intltool and got this:

Code: Select all

macbook:MegaTunix baz$ intltool-extract --version
Can't load '/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/Encode/Encode.bundle' for module Encode: dlopen(/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/Encode/Encode.bundle, 1): no suitable image found.  Did find:
	/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/Encode/Encode.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/XSLoader.pm line 67.
 at /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/Encode.pm line 10
Compilation failed in require at /sw/bin/intltool-extract line 915.
BEGIN failed--compilation aborted at /sw/bin/intltool-extract line 915.
My path is:

Code: Select all

macbook:MegaTunix baz$ echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/usr/X11R6/bin
Any ideas?

I'm going to try with macports now and see how I get on with that new gtk version that apparently has issues.

Baz.
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

With macports, it builds and starts up, but going to ms2, offline mode, 303x, load makes it segfault.

Code: Select all

macbook:MegaTunix baz$ megatunix 
Xlib:  extension "RANDR" missing on display "/tmp/launch-pO8Pr6/org.x:0".

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
Segmentation fault
This was with master branch, hash "d68494b version bump, fixed msloader makefile arg".

So, no luck with either fink or macports at the moment, for me.

Baz.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Baz wrote:With macports, it builds and starts up, but going to ms2, offline mode, 303x, load makes it segfault.

Code: Select all

macbook:MegaTunix baz$ megatunix 
Xlib:  extension "RANDR" missing on display "/tmp/launch-pO8Pr6/org.x:0".

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:82042): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
Segmentation fault

Try the modular_0.2 branch

This was with master branch, hash "d68494b version bump, fixed msloader makefile arg".

So, no luck with either fink or macports at the moment, for me.

Baz.
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
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: MegaTunix on OS-X (revised)

Post by 24c »

Actually, Baz, I too have part of this error message on both MacBook & iMac builds.

Code: Select all

bash-3.2$ megaTunix
Xlib:  extension "RANDR" missing on display "/tmp/launch-gYNDRZ/:0".
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

24c wrote:Actually, Baz, I too have part of this error message on both MacBook & iMac builds.

Code: Select all

bash-3.2$ megaTunix
Xlib:  extension "RANDR" missing on display "/tmp/launch-gYNDRZ/:0".
The RANDR message is harmless, mac's X11 doesn't have RANDR supported.

The assertion message indicate a possible bug

to track
recompile megatunix with debugging enabled
./configure --enable-debug ; make clean ; make
cd src
run "gdb ./megatunix"
type "run --g-fatal-warnings"
when it stops, type backtrace.
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

Code: Select all

libtool: link: gcc -Wall -Wextra -Wno-unused -pedantic -O2 -Wl,--export-dynamic -o mtxloader mtxloader.o winserialio.o ms1_loader.o ms2_loader.o loader_common.o  -L/opt/local/lib ../mtxcommon/.libs/libmtxcommon.a /opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libpangocairo-1.0.dylib /opt/local/lib/libXinerama.dylib /opt/local/lib/libXi.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXcursor.dylib /opt/local/lib/libXcomposite.dylib /opt/local/lib/libXdamage.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libpixman-1.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libpng12.dylib /opt/local/lib/libpango-1.0.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib -lz /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib -lm -lpthread -framework Carbon
ld: unknown option: --export-dynamic
collect2: ld returned 1 exit status
make[2]: *** [mtxloader] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This is with macports on modular_0.2 at hash "f45c4ea Lots of tweaks to work right on win32"

Trying with "5c440a3 Plugin init cleaned up a bunch, ms2 plugin started"

Same exact result.

Trying with fink. autogen.sh now doesn't fail, I guess I had a path issue or something weird :-/ Maybe I needed a new terminal. modular_0.2 fails the same way as macports but master, wait for it, works! However it does this:

Code: Select all

macbook:MegaTunix.fink baz$ megatunix 

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetFont: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetFontSize: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetTextMatrix: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextClearRect: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
<snip>
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetFontSize: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetTextMatrix: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextClearRect: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
Segmentation fault
The 2.5 minutes of messages were tab loading! It took that long. The segfault came after I maximised the window, then minimised it. The gui didn't resize when I maximised it. I'll try again now. This time I just scrolled through the tabs and it segfaulted.

I used offline mode, and chose 3.0.3x and then the 3.0.x .ecu file. Is that the right choice? Perhaps that is what went wrong?

Baz.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Baz wrote: Trying with fink. autogen.sh now doesn't fail, I guess I had a path issue or something weird :-/ Maybe I needed a new terminal. modular_0.2 fails the same way as macports but master, wait for it, works! However it does this:

Code: Select all

macbook:MegaTunix.fink baz$ megatunix 

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed

(megatunix:49160): GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetFont: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetFontSize: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetTextMatrix: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextClearRect: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Mon Nov 29 09:12:09 macbook.lan megatunix[49160] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
<snip>
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetFontSize: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetTextMatrix: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextClearRect: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextSetRGBFillColor: invalid context 0x0
Mon Nov 29 09:14:36 macbook.lan megatunix[49160] <Error>: CGContextShowGlyphsAtPoint: invalid context 0x0
Segmentation fault
The 2.5 minutes of messages were tab loading! It took that long. The segfault came after I maximised the window, then minimised it. The gui didn't resize when I maximised it. I'll try again now. This time I just scrolled through the tabs and it segfaulted.

I used offline mode, and chose 3.0.3x and then the 3.0.x .ecu file. Is that the right choice? Perhaps that is what went wrong?

Baz.
There is no 3.0.3x choice, there is 3.0.3w (which includes x), and 3.0.x which means 3.0-3.0.2
Likewise there should be an ecu backup for 3.0.3w, the other one is NOT a match and the tools tab probbaly has a nag message about it..

I donno why yours is so slow (maybe it has to do with fink), on my macports setup it takes about 15-20 seconds max to load all tabs and get ready. I do notice sometimes it takes several seconds before X11 even starts, and top showed it was some fontconfig tool running which was doing something font related, it only seems to do that periodicllly for me, so i'm not sure on that. I've never seen those other CGContext* messages, that doesn't look like anything that comes out of GTK+, maybe another fink-ism?
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

OK, it was much faster this time, so perhaps you're right about the font thing? I loaded the correct .ecu this time, and it didn't beep twice, I guess that is what they meant. scrolling through the tabs causes a segfault, so I'll have to do the debug stuff you suggested above.

One minor thing, the last ecu chosen doesn't get saved between runs. Is that because it crashes on exit? Or because it's offline mode? It seems to remember on Linux, but I'm not sure if the context is the same.

Baz.
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

I did as you said, and this was the result:

Code: Select all

warning: Could not find object file "/sw/src/fink.build/expat1-2.0.1-1/expat-2.0.1/lib/.libs/xmltok.o" - no debug information available for "lib/xmltok.c".

warning: Could not find object file "/sw/src/fink.build/expat1-2.0.1-1/expat-2.0.1/lib/.libs/xmlrole.o" - no debug information available for "lib/xmlrole.c".

...... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
aborting...

Program received signal SIGABRT, Aborted.
0x00007fff85305616 in __kill ()
(gdb) backtrace
#0  0x00007fff85305616 in __kill ()
#1  0x00007fff853a5cca in abort ()
#2  0x0000000100d67a16 in g_logv ()
#3  0x0000000100d67b5d in g_log ()
#4  0x0000000100d7b8ce in g_strcasecmp ()
#5  0x0000000100057761 in present_firmware_choices () at offline.c:298
#6  0x0000000100056a2e in set_offline_mode () at offline.c:72
#7  0x0000000100d5f53c in g_timeout_dispatch ()
#8  0x0000000100d5fc3c in g_main_context_dispatch ()
#9  0x0000000100d62771 in g_main_context_iterate ()
#10 0x0000000100d62a4d in g_main_loop_run ()
#11 0x00000001005bc213 in gtk_main ()
#12 0x000000010004866e in main (argc=1, argv=0x7fff5fbff400) at main.c:138
(gdb) 
There were many many more of the first few warnings, I cut them off...

What next?

Baz.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Baz wrote:I did as you said, and this was the result:

Code: Select all

warning: Could not find object file "/sw/src/fink.build/expat1-2.0.1-1/expat-2.0.1/lib/.libs/xmltok.o" - no debug information available for "lib/xmltok.c".

warning: Could not find object file "/sw/src/fink.build/expat1-2.0.1-1/expat-2.0.1/lib/.libs/xmlrole.o" - no debug information available for "lib/xmlrole.c".

...... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

GLib-CRITICAL **: g_strcasecmp: assertion `s2 != NULL' failed
aborting...

Program received signal SIGABRT, Aborted.
0x00007fff85305616 in __kill ()
(gdb) backtrace
#0  0x00007fff85305616 in __kill ()
#1  0x00007fff853a5cca in abort ()
#2  0x0000000100d67a16 in g_logv ()
#3  0x0000000100d67b5d in g_log ()
#4  0x0000000100d7b8ce in g_strcasecmp ()
#5  0x0000000100057761 in present_firmware_choices () at offline.c:298
#6  0x0000000100056a2e in set_offline_mode () at offline.c:72
#7  0x0000000100d5f53c in g_timeout_dispatch ()
#8  0x0000000100d5fc3c in g_main_context_dispatch ()
#9  0x0000000100d62771 in g_main_context_iterate ()
#10 0x0000000100d62a4d in g_main_loop_run ()
#11 0x00000001005bc213 in gtk_main ()
#12 0x000000010004866e in main (argc=1, argv=0x7fff5fbff400) at main.c:138
(gdb) 
There were many many more of the first few warnings, I cut them off...

What next?

Baz.
OK, it doesn't rememebr the last due to the crash before close. the error results from comparison toa NULL ptr which i've fixed and pushed, please retry, I'd like you to try and catch the cause of the crash..
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

I still get the linker issue on modular_0.2 - you'll have to fix that before I can test anything further on modular_0.2. I got that issue with both macports and fink. See the other longish post.

Baz.
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

Code: Select all

/bin/sh ../libtool --tag=CC   --mode=link gcc -g -DDEBUG  -Wall -Wextra -Wno-unused -pedantic -O0 -Wl,--export-dynamic  -o mtxloader mtxloader.o winserialio.o ms1_loader.o ms2_loader.o loader_common.o -L/sw/lib -L/usr/X11/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl ../mtxcommon/libmtxcommon.la  -lm    
libtool: link: gcc -g -DDEBUG -Wall -Wextra -Wno-unused -pedantic -O0 -Wl,--export-dynamic -o mtxloader mtxloader.o winserialio.o ms1_loader.o ms2_loader.o loader_common.o  -L/sw/lib -L/usr/X11/lib ../mtxcommon/.libs/libmtxcommon.a /sw/lib/libgtk-x11-2.0.dylib /sw/lib/libgdk-x11-2.0.dylib /sw/lib/libatk-1.0.dylib /sw/lib/libgio-2.0.dylib /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/pango-ft219/lib/libpangocairo-1.0.dylib /sw/lib/libcairo.dylib /sw/lib/pango-ft219/lib/libpango-1.0.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lfontconfig /sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/libgthread-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib -lm
ld: unknown option: --export-dynamic
collect2: ld returned 1 exit status
make[2]: *** [mtxloader] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Still getting this! Definitely an error, not a warning.

Baz.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Please re-pull from modular_0.2 and do the following:

./autogen.sh --enable-debug ; make clean ; make ; sudo make install

and rerun

The autogen.sh is needed this time to regenerate the configure script as the source file for it was changed to tweak the linker parameters
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

Code: Select all

Program received signal SIGABRT, Aborted.
0x00007fff85305616 in __kill ()
(gdb) backtrace
#0  0x00007fff85305616 in __kill ()
#1  0x00007fff853a5cca in abort ()
#2  0x0000000100d62a16 in g_logv ()
#3  0x0000000100d62b5d in g_log ()
#4  0x000000010057914b in gtk_folder_constructed ()
#5  0x0000000100cee2e2 in g_object_newv ()
#6  0x0000000100cee970 in g_object_new_valist ()
#7  0x0000000100ceea8d in g_object_new ()
#8  0x000000010057967e in enumerate_children_callback ()
#9  0x0000000100a3f4dc in complete_in_idle_cb_for_thread ()
#10 0x0000000100d5ac3c in g_main_context_dispatch ()
#11 0x0000000100d5d771 in g_main_context_iterate ()
#12 0x0000000100d5da4d in g_main_loop_run ()
#13 0x0000000100547085 in gtk_dialog_run ()
#14 0x0000000100081660 in choose_file (data=0x117166720) at getfiles.c:511
#15 0x0000000100054aac in offline_ecu_restore_pf () at offline.c:450
#16 0x00000001000244fb in pf_dispatcher (data=0x0) at dispatcher.c:144
#17 0x0000000100d5a53c in g_timeout_dispatch ()
#18 0x0000000100d5ac3c in g_main_context_dispatch ()
#19 0x0000000100d5d771 in g_main_context_iterate ()
#20 0x0000000100d5da4d in g_main_loop_run ()
#21 0x00000001005b7213 in gtk_main ()
#22 0x00000001000486cb in main (argc=1, argv=0x7fff5fbff4d0) at main.c:138
Fink, 013ef6a, modular_0.2, ms2, 303x, load, loads tabs with same CGContext warnings, then opens a window with no contents and that is the backtrace.

Baz.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Baz wrote:

Code: Select all

Program received signal SIGABRT, Aborted.
0x00007fff85305616 in __kill ()
(gdb) backtrace
#0  0x00007fff85305616 in __kill ()
#1  0x00007fff853a5cca in abort ()
#2  0x0000000100d62a16 in g_logv ()
#3  0x0000000100d62b5d in g_log ()
#4  0x000000010057914b in gtk_folder_constructed ()
#5  0x0000000100cee2e2 in g_object_newv ()
#6  0x0000000100cee970 in g_object_new_valist ()
#7  0x0000000100ceea8d in g_object_new ()
#8  0x000000010057967e in enumerate_children_callback ()
#9  0x0000000100a3f4dc in complete_in_idle_cb_for_thread ()
#10 0x0000000100d5ac3c in g_main_context_dispatch ()
#11 0x0000000100d5d771 in g_main_context_iterate ()
#12 0x0000000100d5da4d in g_main_loop_run ()
#13 0x0000000100547085 in gtk_dialog_run ()
#14 0x0000000100081660 in choose_file (data=0x117166720) at getfiles.c:511
#15 0x0000000100054aac in offline_ecu_restore_pf () at offline.c:450
#16 0x00000001000244fb in pf_dispatcher (data=0x0) at dispatcher.c:144
#17 0x0000000100d5a53c in g_timeout_dispatch ()
#18 0x0000000100d5ac3c in g_main_context_dispatch ()
#19 0x0000000100d5d771 in g_main_context_iterate ()
#20 0x0000000100d5da4d in g_main_loop_run ()
#21 0x00000001005b7213 in gtk_main ()
#22 0x00000001000486cb in main (argc=1, argv=0x7fff5fbff4d0) at main.c:138
Fink, 013ef6a, modular_0.2, ms2, 303x, load, loads tabs with same CGContext warnings, then opens a window with no contents and that is the backtrace.

Baz.
Can't replicate that here, try macports instead.
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

Wow, this one had a lot more to say, same conditions, but didn't finish loading tabs and was on macports, no other difference

Code: Select all

(gdb) run --g-fatal-warnings
Starting program: /usr/local/bin/megatunix --g-fatal-warnings
Reading symbols for shared libraries .++++++++++++++++++++++++++++++++++++++++++++++++......................................................................................... done
Xlib:  extension "RANDR" missing on display "/tmp/launch-pO8Pr6/org.x:0".
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000028f2020
0x00000001008be2e7 in gdk_gc_set_colormap ()
(gdb) backtrace
#0  0x00000001008be2e7 in gdk_gc_set_colormap ()
#1  0x000000010008e2b9 in mtx_stripchart_configure (widget=0x101e75cf0, event=0x101e981f0) at stripchart-private.c:478
#2  0x00000001004e2b1f in _gtk_marshal_BOOLEAN__BOXED ()
#3  0x0000000100f908d2 in g_closure_invoke ()
#4  0x0000000100fa63bc in signal_emit_unlocked_R ()
#5  0x0000000100fa7936 in g_signal_emit_valist ()
#6  0x0000000100fa8034 in g_signal_emit ()
#7  0x00000001005fa19e in gtk_widget_event_internal ()
#8  0x00000001004628f4 in gtk_drawing_area_send_configure ()
#9  0x0000000100462a0d in gtk_drawing_area_realize ()
#10 0x0000000100f908d2 in g_closure_invoke ()
#11 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#12 0x0000000100fa7c64 in g_signal_emit_valist ()
#13 0x0000000100fa8034 in g_signal_emit ()
#14 0x00000001006006d7 in gtk_widget_realize ()
#15 0x0000000100600f38 in gtk_widget_map ()
#16 0x000000010049f76b in gtk_frame_forall ()
#17 0x000000010045e397 in gtk_container_map ()
#18 0x0000000100f909af in g_closure_invoke ()
#19 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#20 0x0000000100fa7c64 in g_signal_emit_valist ()
#21 0x0000000100fa8034 in g_signal_emit ()
#22 0x0000000100600f0e in gtk_widget_map ()
#23 0x0000000100565c60 in gtk_table_forall ()
#24 0x000000010045e397 in gtk_container_map ()
#25 0x0000000100f909af in g_closure_invoke ()
#26 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#27 0x0000000100fa7c64 in g_signal_emit_valist ()
#28 0x0000000100fa8034 in g_signal_emit ()
#29 0x0000000100600f0e in gtk_widget_map ()
#30 0x000000010049f76b in gtk_frame_forall ()
#31 0x000000010045e397 in gtk_container_map ()
#32 0x0000000100f909af in g_closure_invoke ()
#33 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#34 0x0000000100fa7c64 in g_signal_emit_valist ()
#35 0x0000000100fa8034 in g_signal_emit ()
#36 0x0000000100600f0e in gtk_widget_map ()
#37 0x0000000100565c60 in gtk_table_forall ()
#38 0x000000010045e397 in gtk_container_map ()
#39 0x0000000100f909af in g_closure_invoke ()
#40 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#41 0x0000000100fa7c64 in g_signal_emit_valist ()
#42 0x0000000100fa8034 in g_signal_emit ()
#43 0x0000000100600f0e in gtk_widget_map ()
#44 0x000000010045e397 in gtk_container_map ()
#45 0x0000000100f909af in g_closure_invoke ()
#46 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#47 0x0000000100fa7c64 in g_signal_emit_valist ()
#48 0x0000000100fa8034 in g_signal_emit ()
#49 0x0000000100600f0e in gtk_widget_map ()
#50 0x0000000100540633 in gtk_scrolled_window_forall ()
#51 0x000000010045e397 in gtk_container_map ()
#52 0x0000000100f909af in g_closure_invoke ()
#53 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#54 0x0000000100fa7c64 in g_signal_emit_valist ()
#55 0x0000000100fa8034 in g_signal_emit ()
#56 0x0000000100600f0e in gtk_widget_map ()
#57 0x0000000100505365 in gtk_notebook_map ()
#58 0x0000000100f909af in g_closure_invoke ()
#59 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#60 0x0000000100fa7c64 in g_signal_emit_valist ()
#61 0x0000000100fa8034 in g_signal_emit ()
#62 0x0000000100600f0e in gtk_widget_map ()
#63 0x000000010042c0ab in gtk_box_forall ()
#64 0x000000010045e397 in gtk_container_map ()
#65 0x0000000100f909af in g_closure_invoke ()
#66 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#67 0x0000000100fa7c64 in g_signal_emit_valist ()
#68 0x0000000100fa8034 in g_signal_emit ()
#69 0x0000000100600f0e in gtk_widget_map ()
#70 0x000000010049f76b in gtk_frame_forall ()
#71 0x000000010045e397 in gtk_container_map ()
#72 0x0000000100f908d2 in g_closure_invoke ()
#73 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#74 0x0000000100fa7c64 in g_signal_emit_valist ()
#75 0x0000000100fa8034 in g_signal_emit ()
#76 0x0000000100600f0e in gtk_widget_map ()
#77 0x00000001006012b7 in gtk_widget_set_parent ()
#78 0x00000001005012cd in gtk_notebook_real_insert_page ()
#79 0x0000000100066f2f in load_gui_tabs_pf () at tabloader.c:162
#80 0x000000010002422d in pf_dispatcher (data=0x0) at dispatcher.c:144
#81 0x000000010101406d in g_timeout_dispatch ()
#82 0x00000001010138f9 in g_main_context_dispatch ()
#83 0x0000000101016f91 in g_main_context_iterate ()
#84 0x00000001010172a5 in g_main_loop_run ()
#85 0x00000001004dcce0 in gtk_main ()
#86 0x00000001000484a0 in main (argc=1, argv=0x7fff5fbff918) at main.c:138
(gdb) 
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

Baz wrote:Wow, this one had a lot more to say, same conditions, but didn't finish loading tabs and was on macports, no other difference

Code: Select all

(gdb) run --g-fatal-warnings
Starting program: /usr/local/bin/megatunix --g-fatal-warnings
Reading symbols for shared libraries .++++++++++++++++++++++++++++++++++++++++++++++++......................................................................................... done
Xlib:  extension "RANDR" missing on display "/tmp/launch-pO8Pr6/org.x:0".
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000028f2020
0x00000001008be2e7 in gdk_gc_set_colormap ()
(gdb) backtrace
#0  0x00000001008be2e7 in gdk_gc_set_colormap ()
#1  0x000000010008e2b9 in mtx_stripchart_configure (widget=0x101e75cf0, event=0x101e981f0) at stripchart-private.c:478
#2  0x00000001004e2b1f in _gtk_marshal_BOOLEAN__BOXED ()
#3  0x0000000100f908d2 in g_closure_invoke ()
#4  0x0000000100fa63bc in signal_emit_unlocked_R ()
#5  0x0000000100fa7936 in g_signal_emit_valist ()
#6  0x0000000100fa8034 in g_signal_emit ()
#7  0x00000001005fa19e in gtk_widget_event_internal ()
#8  0x00000001004628f4 in gtk_drawing_area_send_configure ()
#9  0x0000000100462a0d in gtk_drawing_area_realize ()
#10 0x0000000100f908d2 in g_closure_invoke ()
#11 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#12 0x0000000100fa7c64 in g_signal_emit_valist ()
#13 0x0000000100fa8034 in g_signal_emit ()
#14 0x00000001006006d7 in gtk_widget_realize ()
#15 0x0000000100600f38 in gtk_widget_map ()
#16 0x000000010049f76b in gtk_frame_forall ()
#17 0x000000010045e397 in gtk_container_map ()
#18 0x0000000100f909af in g_closure_invoke ()
#19 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#20 0x0000000100fa7c64 in g_signal_emit_valist ()
#21 0x0000000100fa8034 in g_signal_emit ()
#22 0x0000000100600f0e in gtk_widget_map ()
#23 0x0000000100565c60 in gtk_table_forall ()
#24 0x000000010045e397 in gtk_container_map ()
#25 0x0000000100f909af in g_closure_invoke ()
#26 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#27 0x0000000100fa7c64 in g_signal_emit_valist ()
#28 0x0000000100fa8034 in g_signal_emit ()
#29 0x0000000100600f0e in gtk_widget_map ()
#30 0x000000010049f76b in gtk_frame_forall ()
#31 0x000000010045e397 in gtk_container_map ()
#32 0x0000000100f909af in g_closure_invoke ()
#33 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#34 0x0000000100fa7c64 in g_signal_emit_valist ()
#35 0x0000000100fa8034 in g_signal_emit ()
#36 0x0000000100600f0e in gtk_widget_map ()
#37 0x0000000100565c60 in gtk_table_forall ()
#38 0x000000010045e397 in gtk_container_map ()
#39 0x0000000100f909af in g_closure_invoke ()
#40 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#41 0x0000000100fa7c64 in g_signal_emit_valist ()
#42 0x0000000100fa8034 in g_signal_emit ()
#43 0x0000000100600f0e in gtk_widget_map ()
#44 0x000000010045e397 in gtk_container_map ()
#45 0x0000000100f909af in g_closure_invoke ()
#46 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#47 0x0000000100fa7c64 in g_signal_emit_valist ()
#48 0x0000000100fa8034 in g_signal_emit ()
#49 0x0000000100600f0e in gtk_widget_map ()
#50 0x0000000100540633 in gtk_scrolled_window_forall ()
#51 0x000000010045e397 in gtk_container_map ()
#52 0x0000000100f909af in g_closure_invoke ()
#53 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#54 0x0000000100fa7c64 in g_signal_emit_valist ()
#55 0x0000000100fa8034 in g_signal_emit ()
#56 0x0000000100600f0e in gtk_widget_map ()
#57 0x0000000100505365 in gtk_notebook_map ()
#58 0x0000000100f909af in g_closure_invoke ()
#59 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#60 0x0000000100fa7c64 in g_signal_emit_valist ()
#61 0x0000000100fa8034 in g_signal_emit ()
#62 0x0000000100600f0e in gtk_widget_map ()
#63 0x000000010042c0ab in gtk_box_forall ()
#64 0x000000010045e397 in gtk_container_map ()
#65 0x0000000100f909af in g_closure_invoke ()
#66 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#67 0x0000000100fa7c64 in g_signal_emit_valist ()
#68 0x0000000100fa8034 in g_signal_emit ()
#69 0x0000000100600f0e in gtk_widget_map ()
#70 0x000000010049f76b in gtk_frame_forall ()
#71 0x000000010045e397 in gtk_container_map ()
#72 0x0000000100f908d2 in g_closure_invoke ()
#73 0x0000000100fa5f0e in signal_emit_unlocked_R ()
#74 0x0000000100fa7c64 in g_signal_emit_valist ()
#75 0x0000000100fa8034 in g_signal_emit ()
#76 0x0000000100600f0e in gtk_widget_map ()
#77 0x00000001006012b7 in gtk_widget_set_parent ()
#78 0x00000001005012cd in gtk_notebook_real_insert_page ()
#79 0x0000000100066f2f in load_gui_tabs_pf () at tabloader.c:162
#80 0x000000010002422d in pf_dispatcher (data=0x0) at dispatcher.c:144
#81 0x000000010101406d in g_timeout_dispatch ()
#82 0x00000001010138f9 in g_main_context_dispatch ()
#83 0x0000000101016f91 in g_main_context_iterate ()
#84 0x00000001010172a5 in g_main_loop_run ()
#85 0x00000001004dcce0 in gtk_main ()
#86 0x00000001000484a0 in main (argc=1, argv=0x7fff5fbff918) at main.c:138
(gdb) 

What the hell!? This works perfectly fine for me on OS-X, without a crash or anything else. Retry with a different firmware choice, or try in online mode
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
Baz
MS/Extra Newbie
Posts: 15
Joined: Mon May 12, 2008 2:14 am

Re: MegaTunix on OS-X (revised)

Post by Baz »

fink, f866e0c, JimStim, working fine, save ecu to file:

Code: Select all

Program received signal SIGABRT, Aborted.
0x00007fff85305616 in __kill ()
(gdb) backtrace
#0  0x00007fff85305616 in __kill ()
#1  0x00007fff853a5cca in abort ()
#2  0x0000000100d62a16 in g_logv ()
#3  0x0000000100d62b5d in g_log ()
#4  0x000000010057914b in gtk_folder_constructed ()
#5  0x0000000100cee2e2 in g_object_newv ()
#6  0x0000000100cee970 in g_object_new_valist ()
#7  0x0000000100ceea8d in g_object_new ()
#8  0x000000010057967e in enumerate_children_callback ()
#9  0x0000000100a3f4dc in complete_in_idle_cb_for_thread ()
#10 0x0000000100d5ac3c in g_main_context_dispatch ()
#11 0x0000000100d5d771 in g_main_context_iterate ()
#12 0x0000000100d5db3c in g_main_context_iteration ()
#13 0x00000001005b70cb in gtk_main_iteration ()
#14 0x000000010002452c in pf_dispatcher (data=0x0) at dispatcher.c:157
#15 0x0000000100d5a53c in g_timeout_dispatch ()
#16 0x0000000100d5ac3c in g_main_context_dispatch ()
#17 0x0000000100d5d771 in g_main_context_iterate ()
#18 0x0000000100d5da4d in g_main_loop_run ()
#19 0x0000000100547085 in gtk_dialog_run ()
#20 0x0000000100081660 in choose_file (data=0x1021d3150) at getfiles.c:511
#21 0x0000000100024cbe in select_file_for_ecu_backup (widget=0x0, data=0x0) at fileio.c:75
#22 0x0000000100048d39 in settings_transfer (widget=0x1018b63b0, data=0x0) at menu_handlers.c:181
#23 0x0000000100ce9a62 in g_closure_invoke ()
#24 0x0000000100cfc6ce in signal_emit_unlocked_R ()
#25 0x0000000100cfd570 in g_signal_emit_valist ()
#26 0x0000000100cfda2f in g_signal_emit ()
#27 0x00000001006ad40c in gtk_widget_activate ()
#28 0x00000001005c90eb in gtk_menu_shell_activate_item ()
#29 0x00000001005ca20b in gtk_menu_shell_button_release ()
#30 0x00000001005bc77c in _gtk_marshal_BOOLEAN__BOXED ()
#31 0x0000000100ce9a62 in g_closure_invoke ()
#32 0x0000000100cfc8c4 in signal_emit_unlocked_R ()
#33 0x0000000100cfd5c3 in g_signal_emit_valist ()
#34 0x0000000100cfda2f in g_signal_emit ()
#35 0x00000001006a7de8 in gtk_widget_event_internal ()
#36 0x00000001005b6051 in gtk_propagate_event ()
#37 0x00000001005b6f4c in gtk_main_do_event ()
#38 0x0000000100979852 in gdk_event_dispatch ()
#39 0x0000000100d5ac3c in g_main_context_dispatch ()
#40 0x0000000100d5d771 in g_main_context_iterate ()
#41 0x0000000100d5da4d in g_main_loop_run ()
#42 0x00000001005b7213 in gtk_main ()
#43 0x00000001000486cb in main (argc=1, argv=0x7fff5fbff918) at main.c:138
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: MegaTunix on OS-X (revised)

Post by djandruczyk »

You didn't post the message dumped to the console precedingthe trce, which is a GTK+ on OS-X ism which is harmless. unfortunatley this is a bug in either Gtk+ and or fink/macports, so can be ignored. unfortunately I don't know of a way to filter what will trigger a fault when using --g-fatal-warnings.
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
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Dash close caused crash

Post by 24c »

Dave, probably sick of my comments by now, but Terminal on OSX was spitting this out. Megatunix opened, connected etc, but I had another dash open! Closed it and it crashed...

Code: Select all

bash-3.2$ megatunix
Xlib:  extension "RANDR" missing on display "/tmp/launch-0Au8mf/:0".
threads.c: thread_dispatcher()
        Thread created!
threads.c: thread_dispatcher()
        LINK DOWN, Initiating serial repair thread!
mscommon_comms.c: serial_repair_thread()
        Thread created!
mscommon_comms.c: serial_repair_thread()
        Thread exiting, device found!
interrogate.c: load_firmware_details()
        Detected Firmware: MS2-Extra V3.1.0 series
dashboard.c: link_dash_datasources
        Bad things man!, object doesn't exist for bcDC
dashboard.c: link_dash_datasources
        Bad things man!, object doesn't exist for bcDC
megatunix(20649,0x7fff70dcfca0) malloc: *** error for object 0x1013c2890: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap
bash-3.2$ 
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
Post Reply