Upgrading to Windows 10 breaks MySQL workbench?

前端 未结 2 838
無奈伤痛
無奈伤痛 2021-02-07 06:23

I recently upgraded to the released version of Windows 10 using the automatic upgrade feature from Windows 8. In addition to some other stuff breaking, it seems that MySQL Workb

2条回答
  •  青春惊慌失措
    2021-02-07 06:42

    The issue occurs due to the HTML rendered dll that is included in Workbench. Full details of the bug are here.

    For a quick fix, thanks to Michael Gaillez and Frank Quintero, the offending code is in this repo: https://github.com/ArthurHub/HTML-Renderer

    To fix it yourself, replace this code:

    static FontsUtils()
        {
            _fontsMapping["monospace"] = "Courier New";
            _fontsMapping["Helvetica"] = "Arial";
    
            foreach (var family in FontFamily.Families)
            {
                _existingFontFamilies.Add(family.Name, family);
            }
        }
    

    With this code:

    static FontsUtils()
        {
            _fontsMapping["monospace"] = "Courier New";
            _fontsMapping["Helvetica"] = "Arial";
    
            foreach (var family in FontFamily.Families)
            {
                if (!_existingFontFamilies.ContainsKey(family.Name))
                {
                    _existingFontFamilies.Add(family.Name, family);
                }
            }
        }
    

    Or download this DLL instead: https://bugs.mysql.com/file.php?id=22868&bug_id=75673

    You want to put this new DLL in your Workbench folder, which, for me, is C:\Program Files\MySQL\MySQL Workbench 6.3 CE\

提交回复
热议问题