| Bug #19335 | Message: new doc fail | ||
|---|---|---|---|
| Submitted: | 25 Apr 2006 14:46 | Modified: | 26 Apr 2006 4:39 |
| Reporter: | John Yodsnukis (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Workbench Preview | Severity: | S2 (Serious) |
| Version: | 1.0.6beta svn revision 331 | OS: | Linux (Linux (Gentoo on PPC)) |
| Assigned to: | CPU Architecture: | Any | |
[25 Apr 2006 17:17]
John Yodsnukis
The error at startup is: ** Message: new doc fail ** CRITICAL **: myx_grt_bridge_dict_item_set_value: assertion `dict!=NULL' failed aborting... /usr/local/bin/mysql-workbench: line 18: 21446 Aborted $PRG-bin $*
[26 Apr 2006 4:39]
Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html

Description: MWMainWindow.cc does not pass a default rdbmsVersion argument, nor does Workbench.lua test for its existence before try to use it! Yet another time linux is left behind, untested. :( How to repeat: compile from svn revision 330 or 331 and try to run it. Suggested fix: --- mysql-workbench/source/linux/MWMainWindow.cc +++ mysql-workbench/source/linux/MWMainWindow.cc (working copy) @@ -2339,7 +2339,7 @@ { MGRTValue args= MGRTValue::createList(MYX_STRING_VALUE); - args.append(MGRTValue("Mysql")); + args.append(MGRTValue("Mysql")); args.append(MGRTValue("5.0.1")); _loading= true; --- mysql-workbench/source/lua/Workbench.lua +++ mysql-workbench/source/lua/Workbench.lua (working copy) @@ -377,8 -377,11 @@ -- -- ---------------------------------------------------------------------------------------- function newDocument(args) - local rdbmsName= (args[1] ~= nil) and grtV.toLua(args[1]) or "" - if rdbmsName == "" then - rdbmsName= "Mysql" - end - local rdbmsVersion= (args[2] ~= nil) and grtV.toLua(args[2]) or "5.1.6" + local rdbmsName= ((grtV.getn(args) >= 1) and (args[1] ~= nil) and grtV.toLua(args[1])) or "Mysql" + local rdbmsVersion= ((grtV.getn(args) >= 2) and (args[2] ~= nil) and grtV.toLua(args[2])) or "5.0.0" -- Find model RDBMS local rdbmsMgmt= grtV.getGlobal("/rdbmsMgmt")