Bug #20640 Workbench error if you have an open document and choose File New
Submitted: 22 Jun 2006 21:53 Modified: 22 Jun 2006 22:46
Reporter: Geoffrey Hoffman Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:1.0.6 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[22 Jun 2006 21:53] Geoffrey Hoffman
Description:
------------------------------------------------
Error 1 (non-modal dialog)
------------------------------------------------
Workbench Error

(x)

The runtime environment (GRT) could not be initialized.
Please check your installation then try to restart the tool.

Error details:
Workbench.initWorkbench :The function did not return an object. Error Nr.10003

Shell output:
MySQL Generic Runtime Environment 2.0.12

Type 'help' or '?' for help. Type 'quit' to exit the shell.
Lua Shell initialized.
 Error while loading struct definitions (10001).
Initializing native loader...
Initializing PHP loader...
Initializing Lua loader...
Initializing Python loader...
Registered 5 builtin modules.
Error while loading PHP modules (10001).
Error while loading Lua modules (10001).
Registered 1 Workbench module.

[  Ok  ]

------------------------------------------------
Error 2 (non-modal dialog)
------------------------------------------------

MySQL Workbench

(i)

file c:\dokumente und einstallungen\mike\eigene\dateien\mysql-gui-common\library_grt\source\myx_grt_struct.c: line 371: assertion `gstruct != NULL' failed

[  Ok  ]

Dialogs 2 and 1 go away if [ Ok ] is clicked.
Nothing drastic appears to happen after that - the app does not die.

How to repeat:
Open an .mwb
Go to File-New...

Suggested fix:
Good: Dim the File-New... menuitem if open document; 
Better: Dialog on File-New... "Making a new model will close the current one. Do you want to save? Yes No Cancel"
Best: Add support for multiple documents open simultaneously so I can copy and paste tables between them.
[22 Jun 2006 22:46] MySQL Verification Team
Thank you for the bug report. Verified as described.
[2 Jan 2007 12:56] Yahoo Serious
Same problem in 1.1.8 (Win 2000)
This also happens when double clicking a .wmb-file (which I manually associated with MySql WorkBench).

Maybe this helps to locate the cause - I first get a window reporting:
  file source\myx_grt_struct.c: line 371: assertion `gstruct != NULL' failed
[16 May 2007 8:16] Marine Lachaud
Hi,
I got exactly the same error on Vista.
[16 May 2007 8:24] Marine Lachaud
Sorry, I forgot to give the Mysql Workbench version : 1.1.5 alpha
 And Windows Vista version 6.0
[18 May 2007 8:43] Andreas Götz
I can confirm this bug in 1.1.10alpha. Is MWB still making any progress?