Bug #64881 Crash when using copy columns name to clipboard
Submitted: 5 Apr 2012 17:22 Modified: 19 Jul 2012 21:34
Reporter: l m Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.38 OS:Windows (Microsoft Windows 7 Service Pack 1 (build 7601), 32-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[5 Apr 2012 17:22] l m
Description:
Often (30% of chances) the software crashes when using the copy columns name to the clipboard.

How to repeat:
Use copy columns name to the clipboard (and past the content to MS word 2010) until  MySQL Workbench crashes.
[5 Apr 2012 18:03] Valeriy Kravchuk
Do you copy short or long column names? What server version are you working with?

See Bug #64618 that looks similar/related.
[6 Apr 2012 19:48] l m
I'm using the MySQL community server 5.5.8 and i'm copying short column names (16 char max).
[8 Apr 2012 3:25] Alfredo Kojima
Is there any non-ascii characters in the object names like accented characters?
[10 Apr 2012 12:09] l m
No, only downcase chars and underscores.
[10 Apr 2012 14:17] Valeriy Kravchuk
Verified just as described on 32-bit Windows XP while copying short column names for the table with underscore ('_') in the table name (sakila.film_category actually). MySQL server version was 5.5.22. 

Stack trace is:

Exception = System.Runtime.InteropServices.ExternalException
Message = Requested Clipboard operation did not succeed.
FullText = System.Runtime.InteropServices.ExternalException (0x800401D0): Requested Clipboard operation did not succeed.
   at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
   at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
   at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   at System.Windows.Forms.Clipboard.SetText(String text)
   at MySQL.Forms.UtilitiesImpl.set_clipboard_text(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* content)
   at MySQL.MCallback1<void\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* arg1)
   at mforms.Menu.handle_action(Menu* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   at MySQL.Forms.MenuImpl.ItemClick(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)
[24 May 2012 13:50] Alfredo Kojima
Bug #65160 is a duplicate of this
[24 May 2012 13:52] Alfredo Kojima
Bug #65322 is a duplicate
[24 May 2012 13:56] Alfredo Kojima
Bug #64693 and bug #64618 are duplicates
[24 May 2012 13:58] Alfredo Kojima
bug #64886 is a duplicate
[2 Jun 2012 21:04] Alfredo Kojima
Bug #65491 is a duplicate
[11 Jun 2012 2:27] Alfredo Kojima
Bug #65006 is a dup
[19 Jul 2012 21:34] Philip Olson
This has been fixed as of the soon-to-be-released Workbench 5.2.41, and 
here's the changelog entry:

The "Copy Column Names to Clipboard" option could crash MySQL Workbench.
[21 Jul 2012 17:33] Valeriy Kravchuk
Bug #65975 was marked as a duplicate of this one.