Description:
One day all of sudden my workbench completely stopped working. At that time I was using version 5.0.27. So I installed latest version of 5.0.29 and same problem continued to happen.
The crash occurred during startup (while flash screen was displayed).
The error was:
"MySQL Workbench has encountered a problem and needs to close..."
Finally, I figured out that the crash occurred because the last time MySql saved "wb_state.xml" file. Whatever it did, caused it to crash MySql.
How to repeat:
Edit the file "wb_state.xml" located at:
"C:\Document and Settings\[Profile]\Application Data\MySQL\Workbench
And replace it's contents with:
<?xml version="1.0"?>
<data grt_format="2.0" document_type="MySQL Workbench Application State" version="1.0.0">
<value _ptr_="04551690" type="dict">
<value _ptr_="045512D0" type="dict" key="Logical-overview">
<value type="int" key="EER Diagrams-expanded">1</value>
<value type="int" key="EER Diagrams-mode">0</value>
<value type="int" key="Model Notes-expanded">0</value>
<value type="int" key="Model Notes-mode">0</value>
<value type="int" key="Physical Schemata-expanded">1</value>
<value type="int" key="Physical Schemata-mode">4</value>
<value type="int" key="SQL Scripts-expanded">0</value>
<value type="int" key="SQL Scripts-mode">0</value>
</value>
<value _ptr_="045513F0" type="dict" key="MySQL Server-overview">
<value type="int" key="EER Diagrams-expanded">1</value>
<value type="int" key="EER Diagrams-mode">0</value>
<value type="int" key="Model Notes-expanded">0</value>
<value type="int" key="Model Notes-mode">0</value>
<value type="int" key="Physical Schemata-expanded">1</value>
<value type="int" key="Physical Schemata-mode">4</value>
<value type="int" key="SQL Scripts-expanded">0</value>
<value type="int" key="SQL Scripts-mode">0</value>
</value>
<value _ptr_="04551420" type="dict" key="mainform">
<value type="string" key="activedocument">EER Diagram</value>
<value type="int" key="height">743</value>
<value type="int" key="left">84</value>
<value type="int" key="outputvisible">0</value>
<value type="int" key="shellvisible">0</value>
<value type="int" key="splitpos">879</value>
<value type="int" key="top">11</value>
<value type="int" key="width">930</value>
<value type="int" key="windowstate">0</value>
</value>
</value>
</data>
>
Suggested fix:
Delete wb_state.xml.