Bug #52840 OpenGL error: invalid value
Submitted: 14 Apr 2010 20:55 Modified: 15 Jun 2010 16:30
Reporter: Michael LaBrot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.18 OSS Beta, 5.2.19, 5.2.21 OS:Windows (XP Pro, Vista)
Assigned to: Mike Lischke CPU Architecture:Any

[14 Apr 2010 20:55] Michael LaBrot
Description:
An error message box pops up with the text "OpenGL error: invalid value" many, many, many times while scrolling around my EER diagram.

How to repeat:
Scroll around an EER diagram.
[14 Apr 2010 21:03] Michael LaBrot
The model was produced by version 5.2.15 OSS Beta. Many of the foreign keys are missing referencedColumns in the document.mwb.xml file.
[14 Apr 2010 21:15] MySQL Verification Team
Thank you for the bug report. Could you please provide the model file?. Thanks in advance.
[19 Apr 2010 19:18] Michael LaBrot
Still a problem in 5.2.19. Model opened at 50% zoom. Got error after changing zoom to 100%. Seems to only happen at 100% zoom and higher (150%, 200%).
[21 Apr 2010 19:10] Andrew Ayers
I am seeing this bug, too. This has been an issue for a while.

I notice on the EER diagram there are large swaths of "blank spaces" that are rectangular and white (they appear possibly related to the tables and/or relationship lines in the diagram). If I navigate my mouse cursor in them (or scroll the diagram) the error appears; if I can avoid these areas (or not scroll), the error does not occur. Defined tables in the diagram appear over (on top) of these areas, but the relationship lines do not, until they exit the swath. 

I tried the -swrendering switch, as described here:

http://bugs.mysql.com/bug.php?id=50338

And here:

http://wb.mysql.com/?p=539

To no avail; I also tried to lower/disable my acceleration settings for my graphics card - during one setting (nearly everything turned off), I got a debug error to pop up (line 152 in canvas.h, IIRC) on restart of Workbench, but I didn't get a screenshot because things were really unstable (and I am not sure that error had anything to do with this OpenGL error).

I keep hoping on new releases that this bug gets fixed...

My System Info:

MySQL Workbench SE for Windows version 5.2.19
Cairo Version: 1.8.8
Rendering Mode: OpenGL is available on this system, so OpenGL is used for rendering.
OpenGL Driver Version: 2.0.5819 WinXP Release
OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
CPU: 2x Intel(R) Pentium(R) D CPU 2.80GHz��7�7�7�6�@U�6�, 2.0 GiB RAM
Video adapter info:
Adapter type: VisionTek Radeon X1300 Series       
Chip Type: Radeon X1300 Series AGP (0x7187)
BIOS String: 133-A676B3-101
Video Memory: 524288 KB
[26 Apr 2010 10:26] Sveta Smirnova
Thank you for the feedback.

Verified as described using model provided.
[26 Apr 2010 10:40] Sveta Smirnova
Bug #52989 was marked as duplicate of this one.
[26 Apr 2010 17:36] Sveta Smirnova
Bug #53086 was marked as duplicate of this one.
[12 May 2010 13:08] Alfredo Kojima
bug #49266 is related to this and can probably be closed with this one
[12 May 2010 19:17] Michael LaBrot
Still a problem in 5.2.21
[17 May 2010 14:49] Mike Lischke
Fixed in repository.
[26 May 2010 17:27] Johannes Taxacher
additional fix added to code in repository. please test next release, once released, if that works for you. 
thanks in advance
[4 Jun 2010 16:36] Michael LaBrot
Appears to be fixed in 5.2.22.
[15 Jun 2010 14:22] Johannes Taxacher
fixed in current release
[15 Jun 2010 16:30] Tony Bedford
An entry has been added to the 5.2.22 changelog:

When scrolling in an EER Diagram, MySQL Workbench repeatedly displayed an error dialog containing the message “OpenGL error: invalid value”.