Bug #19744 Debug Assertion Fails on edit color property of db.workbench.TableElement
Submitted: 11 May 2006 21:19 Modified: 12 May 2006 0:07
Reporter: Roland Bouman Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Preview Severity:S3 (Non-critical)
Version:1.0.6 OS:Windows (WinXP pro)
Assigned to: CPU Architecture:Any

[11 May 2006 21:19] Roland Bouman
Description:
The GRT Globals Tree becomes availabe after opening the shell (F4).
In there, on can navigate to the shapes that represent a table, and then, in the properties pane the color property maybe edited. One can input a value that makes workbench signal a "Debug Assertion Failed!" Condition.

How to repeat:
Create a model, add a table. Open shell (f4). In the tree on the right, navigate to and select:

root/workbench/model/views/Main View/elements/<theTable>

from there edit the propery color, and type: rgb(255,0,0),and then: enter On leaving the field, you get 

"Debug Assertion Failed!" 
File dbgheap.c

Sometimes it's at Line 1200, expression: _pFirstBlock == pHead
other times it's at Line 1132, expression: _CrtIsValidHeapPointer(pUserData)

Suggested fix:
validate input so this can't happen. BTW, what is the proper format for color? I noticed some names ("red") work.
[11 May 2006 21:21] Roland Bouman
Actually, I think it's the valid pointer check that you see first; after Ignoring that you get the other one. So that's probably just a side effect
[12 May 2006 0:07] MySQL Verification Team
Thank you for the bug report.
[22 Jun 2006 22:15] Geoffrey Hoffman
I was about to submit a 'colorize table' feature request when I saw this post - cool Roland! Nice tip.

In the GRT shell, if you type "myTable = " (no quotes) at the prompt, then you can drag the <table> from the Object Tree to the prompt. Let go after your line you just typed. You will then see:

/ > myTable = grtV.getGlobal("/workbench/model/views/0/elements/0")

(your numbers may be different depending on the table you dragged.)

No errors. Hmmm...

Then on the next line, type 

/ > myTable.color='red'

and hit return.

My tabled turned red. I saved my document and the property 'took' upon quitting and re-opening. The only other color I could get to work is 'green'. This is in Windows XP. It also works if you type red, blue or green into the inspector pane.