Bug #45869 MySQL Workbench crashes on startup
Submitted: 1 Jul 2009 6:10 Modified: 16 Jul 2009 9:33
Reporter: Giuseppe Maxia Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.1.16 OS:MacOS (10.5.7)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: crash, start, workbench

[1 Jul 2009 6:10] Giuseppe Maxia
Description:
MySQL Workbench crashes on start.

System configuration:
Model: MacBook3,1, BootROM MB31.008D.B00, 2 processors, Intel Core 2 Duo, 2.2 GHz, 4 GB
Graphics: kHW_IntelGMA965Item, GMA X3100, spdisplays_builtin, 144 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.38.35)
Bluetooth: Version 2.1.6f8, 2 service, 1 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: FireWire, FireWire, fw0
Serial ATA Device: FUJITSU MHY2250BH, 232.89 GB
Parallel ATA Device: HL-DT-ST DVDRW  GSA-S10N
USB Device: Built-in iSight, (null) mA
USB Device: hub_device, (null) mA
USB Device: Samsung ML-1520 Series, (null) mA
USB Device: Bluetooth USB Host Controller, (null) mA
USB Device: composite_device, (null) mA
USB Device: Apple Internal Keyboard / Trackpad, (null) mA
USB Device: IR Receiver, (null) mA

Probelm details:

Process:         MySQLWorkbench [2222]
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Identifier:      com.sun.MySQLWorkbench
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [194]

Interval Since Last Report:          1421 sec
Crashes Since Last Report:           3
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   3

Date/Time:       2009-07-01 07:53:12.638 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  D945C800-C7E7-4054-B0C7-0BAD46DAE00F

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: @executable_path/../Plugins/db.mysql.sqlide.grt.dylib
  Referenced from: /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
  Reason: image not found

How to repeat:
start WB on Mac
[1 Jul 2009 7:09] Geert Vanderkelen
Works fine on my 10.5.7 (macbook air).

db.mysql.sqlide.grt.dylib is missing in the package that was downloaded?
Can you verify that using Finder and show the content of the package?
[1 Jul 2009 7:16] Giuseppe Maxia
Geert,
The file exists. 
ls -l /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.sqlide.grt.dylib
-rwxr-xr-x  1 gmax  admin    30320 Jun 30 01:34 /Applications/MySQLWorkbench.app/Contents/PlugIns/db.mysql.sqlide.grt.dylib

But the system still crashes. I tested on two different MacBooks, and it crashes in the same way.
[1 Jul 2009 7:25] Giuseppe Maxia
This is the report from the second laptop with the same crash:

System Configuration:
Model: MacBook2,1, BootROM MB21.00A5.B07, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB
Graphics: kHW_IntelGMA950Item, GMA 950, spdisplays_builtin, spdisplays_integrated_vram
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme, 1.4.10.3
Bluetooth: Version 2.1.6f8, 2 service, 1 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: FireWire, FireWire, fw0
Serial ATA Device: Hitachi HTS541616J9SA00, 149.05 GB
Parallel ATA Device: MATSHITADVD-R   UJ-857D
USB Device: Built-in iSight, (null) mA
USB Device: IR Receiver, (null) mA
USB Device: Apple Internal Keyboard / Trackpad, (null) mA
USB Device: Bluetooth USB Host Controller, (null) mA

Problem details:
Process:         MySQLWorkbench [285]
Path:            /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
Identifier:      com.sun.MySQLWorkbench
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [100]

Interval Since Last Report:          4637 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2009-07-01 09:21:27.281 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  4F1CE0EC-FA85-4FBB-8B56-B4B68547D379

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: @executable_path/../Plugins/db.mysql.sqlide.grt.dylib
  Referenced from: /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench
  Reason: image not found
[1 Jul 2009 7:53] Geert Vanderkelen
OK, it does on work on my Mac.. We should find what is the difference between these Macs.
Or hear how much other people run into it.
[1 Jul 2009 8:40] Giuseppe Maxia
More information:
Performed a "Repair permissions" on the disk, just in case that could be the culprit. No changes. WB crashes like before.
WB 5.2.1 alpha starts on my Mac. It crashes much later, but that's matter for a separate bug report.
[1 Jul 2009 9:55] Michael G. Zinner
I cannot repeat this on my clean MacBook Pro without Xcode installed, which we use to test the packages. Neither could we repeat this on any other machine.

Do you have MySQL installed on these machines? Maybe it is related to that.

Please keep trying to identify the difference between your machines, this is very important. Thanks!
[1 Jul 2009 10:10] Michael G. Zinner
Giuseppe, can you execute

Mikes-MacBook-Pro:PlugIns mzinner$ otool -L db.mysql.sqlide.grt.dylib 
db.mysql.sqlide.grt.dylib:
        @executable_path/../Plugins/db.mysql.sqlide.grt.dylib (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/../Frameworks/libwbpublic.be.dylib (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/../Frameworks/libgrt.dylib (compatibility version 1.0.0, current version 1.0.0)
        @executable_path/../Frameworks/libglib-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)

and compare the output to this one? Thanks!
[1 Jul 2009 10:51] Giuseppe Maxia
Mike, it differs from yours
db.mysql.sqlide.grt.dylib:
	@executable_path/../Frameworks/db.mysql.sqlide.grt.dylib (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../Frameworks/libwbpublic.be.dylib (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../Frameworks/libgrt.dylib (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../Frameworks/libglib-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
[1 Jul 2009 12:25] Giuseppe Maxia
installed a fresh copy of Leopard on a spare MacBook.
It crashes as before.
Tried to launch directly from the .DMG. It runs.
Probably it is due to the case sensitive file system that is used in my Mac.
Setting the bug report to "verified".
[1 Jul 2009 12:32] Alfredo Kojima
This is caused by incompatibility with case-sensitive filesystems. A workaround is to start directly from the DMG and not copy to the /Applications folder.
[10 Jul 2009 17:54] Rex Sheridan
An easier way is to make a soft link with the other capitalization.

cd /Applications/MySQLWorkbench.app/Contents
ln -s PlugIns Plugins
[15 Jul 2009 10:31] Valeriy Kravchuk
Bug #46177 was marked as a duplicate of this one.
[15 Jul 2009 17:26] Johannes Taxacher
fixed in repository of 5.1 and 5.2.
fix will be included in 5.1.17 and 5.2.2
[16 Jul 2009 9:33] Tony Bedford
An entry was added to the 5.1.17 and 5.2.2 changlogs:

MySQL Workbench crashed on startup on Mac OS X.