Bug #81402 VERY frequent crash on save in El Capitan 10.11.5 beta
Submitted: 12 May 2016 16:29 Modified: 19 May 2016 0:58
Reporter: Chris Ostmo Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.3.6 build 511 CE OS:Mac OS X (10.11.5 Beta)
Assigned to: CPU Architecture:Any
Tags: crash, workbench

[12 May 2016 16:29] Chris Ostmo
Description:
MySQL Workbench crashes dozens of times per day (literally) saving very simple values in the Result Grid. I can never perform more than 20 data updates through the Result Grid without Workbench crashing. Typical activity between crashes is 5-10 save operations of a single field.

When I change a value in the Result Grid, click Apply and then Apply again, Workbench will often crash. 90% of what I do is change an integer from some non-zero value to 0 and then save.

This happens while making changes to single records in:
- Any table of any size
- Any dataset of any size
- Any field of any type
- Any schema from any server

All of my connections are through SSH, but based on the stack traces indicate that it's a problem with MResultsetViewer tableView or VarGridModel::get_column_type and not the connection.

I have experienced this problem since updating to El Capitan GM (non-beta), and have continued having it on every El Capitan beta version.

I have lots and lots of crash dumps if you want them. The top of every one of the crash dumps is this:
System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
--> 
    __TEXT                 00000001086d4000-0000000108756000 [  520K] r-x/rwx SM=COW  /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libwbpublic.be.dylib          	0x0000000108f4cb51 VarGridModel::get_column_type(unsigned long) + 23
1   com.oracle.mysql.workbench.WBExtras	0x000000010adf83c9 -[MResultsetViewer tableView:objectValueForTableColumn:row:] + 135
2   com.apple.AppKit              	0x00007fff8af7ea0d -[NSTableView preparedCellAtColumn:row:] + 424
3   com.oracle.mysql.workbench    	0x0000000108700133 -[MGridView preparedCellAtColumn:row:] + 55

How to repeat:
SELECT * FROM table

Double click a value to change it. Click Apply, then Apply again.

There doesn't seem to be any pattern, but it will crash often.

I have lots and lots of crash dumps if you'd like to have them. It seems from the crash dumps that you've got a problem with released tableView cells
[19 May 2016 0:49] Miguel Solorzano
Back trace

Attachment: bug81402.txt (text/plain), 97.15 KiB.

[19 May 2016 0:58] Miguel Solorzano
Thank you for the bug report. To repeat using a table with 2 columns (int and varchar(20)) with 8 millions rows.