Bug #37434 Bug in Applescript implementation causes frequent application crashes
Submitted: 16 Jun 2008 21:28 Modified: 3 Feb 17:26
Reporter: Dave Lyon
Status: Unsupported
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.2.12 OS:Mac OS X (10.5.x)
Assigned to: Target Version:
Tags: mac
Triage: D1 (Critical)

[16 Jun 2008 21:28] Dave Lyon
Description:
I love the Query Browser and use it constantly throughout the day. Following my leopard
clean install I had tons of problems with crashing- it would often crash just on
launching the Universal version. By downgrading to a previous PPC version I could use it
with about 1 daily crash. Then I discovered that when I didn't have Default Folder X
running, the current Universal version ran great. After talking to the Default Folder X
guys it turns out that it's a bug in the MySQL Query Browser's handling of AppleScript.
Other apps that hook into AppleScript may also cause the crashes. I've been crash free
since adding Query Browser to the Default Folder X exception list!

Note that I am not advocating applescript support- just that something in Query Browser
causes it to crash on certain Applescript calls.

How to repeat:
You can run Default Folder X as I did, but the developer sent me instructions to
reproduce the issue using just Applescript (showing that it's not a Default Folder X
problem)

1. Run MySQL Query Browser

2. Run Script Editor (it's in /Applications/AppleScript/).

3. In Script Editor, paste this script into the window and click the "Run" button:
	tell application "MySQL Query Browser"
		beep
	end tell

MySQL Query Browser will promptly crash, just as it did when Default Folder X was
running.  The reason for this is that Script Editor does the same thing Default Folder X
does - it tells MySQL Query Browser to load its scripting additions.  This triggers a bug
in it that causes it to crash.

Suggested fix:
On the call to load scripting additions, do so so that other apps that may call it won't
inadvertently crash it.
[16 Jun 2008 21:39] Sveta Smirnova
Bug is not repeatable on Tiger
[16 Jun 2008 21:52] Dave Lyon
As stated in the OS field, this is for Leopard (10.5.x) not Tiger (10.4.x). I never had
any issues with Tiger.
[8 Sep 2008 4:45] Daniel Zimmerman
This is a duplicate of #32892.
[30 Nov 2008 23:49] Andrew Laffoon
This is critical for me too - when can we expect a fix?
[3 Feb 17:26] Susanne Ebrecht
Many thanks for writing a bug report.

We are on the way to implement full functionality of MySQL Query Browser into Workbench.

Mac OS X is not a supported platform for MySQL Query Browser.

For more informations about supported platforms look here:
http://www.mysql.com/support/supportedplatforms/tools.html