Bug #50315 Opening Page Setup Causes Fault
Submitted: 13 Jan 2010 20:41 Modified: 29 Jan 2010 11:26
Reporter: Mike Frank Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.11 OS:Microsoft Windows (Ubuntu 9.04 AMD64)
Assigned to: Alfredo Kojima CPU Architecture:Any

[13 Jan 2010 20:41] Mike Frank
Description:
Went to page setup trying to repro this
http://twitpic.com/xy9sd
and crashed.

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at wb.WBContextUI.get_page_settings(WBContextUI* , Ref<app_PageSettings>* )
   at MySQL.Workbench.WbContext.get_page_settings()
   at MySQL.GUI.Workbench.PageSettingsForm.PageSettingsForm_Shown(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

How to repeat:
I was in admin, log, and went to page setup on top menu

Also paper listing not showing so maybe that is part of it.

Suggested fix:
Fix to work.
[14 Jan 2010 5:41] Susanne Ebrecht
1) Open Workbench
2) Double click a connection
3) FILE -> PAGE SETUP

Result: Segmentation fault

** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb_utils_grt.py' (python)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb.mysql.import.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/table_utils.grt.lua' (lua)
** Message: Initialized Lua module /home/miracee/wb52se/lib/mysql-workbench/modules/table_utils.grt.lua (WbTableUtils)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/db.mysql.sqlparser.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb.mysql.validation.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/tools.grt.lua' (lua)
** Message: Initialized Lua module /home/miracee/wb52se/lib/mysql-workbench/modules/tools.grt.lua (WbTools)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/db.mysql.query.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb.validation.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb_admin_grt.py' (python)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/catalog_utils.grt.lua' (lua)
** Message: Initialized Lua module /home/miracee/wb52se/lib/mysql-workbench/modules/catalog_utils.grt.lua (WbUtils)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/db.mysql.sqlide.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/wb.model.reporting.wbp.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so' (cpp)
** Message: WARNING: Could not open module /home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so (/home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so: undefined symbol: _ZTV9Wb_plugin)    
** Message: WARNING: Could not load db.mysql.diff.reporting.wbp.so: Cannot open /home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so    
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/wb.printing.wbp.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/db.checks.wbp.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/home/miracee/wb52se/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)

** (mysql-workbench-bin:6801): WARNING **: Plugin 'wb.tools.quickTables' from module WbTools has invalid type ''

** (mysql-workbench-bin:6801): WARNING **: /home/miracee/.mysql/workbench/wb_options.xml:330: link '3225b668-f9d7-11de-974a-0018decb0fec' <object GrtObject> key=owner could not be resolved

(mysql-workbench-bin:6801): Gtk-CRITICAL **: gtk_box_pack: assertion `child->parent == NULL' failed

(mysql-workbench-bin:6801): Gtk-CRITICAL **: gtk_box_pack: assertion `child->parent == NULL' failed
** Message: item_activated: 0x3307f00 -> 'plugin:wb.print.setup'
Segmentation fault
[21 Jan 2010 18:56] Alfredo Kojima
Fixed in linux
[22 Jan 2010 17:12] Alfredo Kojima
The crash has been fixed.
[26 Jan 2010 22:04] Johannes Taxacher
fixed in 5.2.15
[29 Jan 2010 11:26] Tony Bedford
An entry has been added to the 5.2.15 changelog:

When the menu item File, Page Setup was selected from the main menu, MySQL Workbench crashed.