Bug #72559 Unexpected Error in MySQL Workbench editing text object

Submitted: 7 May 2014 10:53 Modified: 17 Jun 2014 1:33
Reporter: Eric Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:6.1.4.11773 build 1454 OS:Windows (7)
Assigned to: CPU Architecture:Any
Tags: crash, Text Object, workbench

[7 May 2014 10:53] Eric Smith
Description:
Editing a Text Object in Workbench Modelling can cause an Unexpected error crash - "MySQL Workbench has encountered a problem Object reference not set to an instance of an object"

wb.log entry as follows:

10:33:54 [INF][ Canvas backend]: Found OpenGL version for this view: 4.4.0
10:39:42 [INF][ Canvas backend]: Found OpenGL version for this view: 4.4.0
11:17:11 [ERR][      Workbench]: Object reference not set to an instance of an object.
Exception = System.NullReferenceException
Message = Object reference not set to an instance of an object.
FullText = System.NullReferenceException: Object reference not set to an instance of an object.
   at MySQL.GUI.Workbench.Plugins.NoteEditor.RefreshFormData()
   at MySQL.GUI.Workbench.Plugins.ObjectEditorPlugin.CallRefreshFormData()
   at MySQL.Grt.RunWrappedDelegate0<void\,void\,MySQL::Grt::DelegateSlot0<void\,void>::ManagedDelegate>.native_callback()
   at boost.detail.function.void_function_invoker0<void (__cdecl*)(void),void>.invoke(function_buffer* function_ptr)
   at NoteEditorBE.set_text(NoteEditorBE* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   at MySQL.Grt.NoteEditorBE.set_text(String text)
   at MySQL.GUI.Workbench.Plugins.NoteEditor.sqlTextBox_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
Create a new diagram
Add a new text object
Enter some text
Add another item 
Re-edit the original text object
Regularly crashes when key stroke added to text object
[7 May 2014 14:28] MySQL Verification Team
Hello Eric,

Thank you for the bug report.
Verified as described.

Thanks,
Umesh
[7 May 2014 14:31] MySQL Verification Team
//
18:52:56 [INF][ Canvas backend]: Found OpenGL version for this view: 2.1.0 - Build 8.15.10.2182
18:54:03 [INF][ Canvas backend]: Found OpenGL version for this view: 2.1.0 - Build 8.15.10.2182
18:54:48 [ERR][      Workbench]: Object reference not set to an instance of an object.
Exception = System.NullReferenceException
Message = Object reference not set to an instance of an object.
FullText = System.NullReferenceException: Object reference not set to an instance of an object.
   at MySQL.GUI.Workbench.Plugins.NoteEditor.RefreshFormData()
   at MySQL.GUI.Workbench.Plugins.ObjectEditorPlugin.CallRefreshFormData()
   at MySQL.Grt.RunWrappedDelegate0<void\,void\,MySQL::Grt::DelegateSlot0<void\,void>::ManagedDelegate>.native_callback()
   at boost.detail.function.void_function_invoker0<void (__cdecl*)(void),void>.invoke(function_buffer* function_ptr)
   at NoteEditorBE.set_text(NoteEditorBE* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   at MySQL.Grt.NoteEditorBE.set_text(String text)
   at MySQL.GUI.Workbench.Plugins.NoteEditor.sqlTextBox_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
19:03:20 [INF][      Workbench]: Shutting down Workbench
19:03:20 [INF][ mforms managed]: Shutting down mforms wrapper
19:03:20 [INF][      Workbench]: Done
[8 May 2014 8:04] Eric Smith
Workaround for anyone else affected:

1. Close diagram
2. Close model
3. Re-open model from Workbench home tab
4. Re-open diagram
[17 Jun 2014 1:33] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.1.7 release, and here's the changelog entry:

For a new EER diagram, editing a text object after adding a different text
object could cause MySQL Workbench to crash. 

A workaround was to close the new diagram and model, and then reopen the 
model and diagram.

Thank you for the bug report.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.