Font Selection / Preview Broken V5 (crash) / V6

I guess i have at least one corrupted font. For Windows they are all fine, but opening the font selection window crashes Rhino on V5, and crashes the preview window (not whole Rhino) on V6.

Edit: found a crash dump:

[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Grasshopper.GUI.GH_FontList.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[END ERROR]

Happens on two separate machines where i only have a few custom fonts installed… Here are some screenshots, maybe @DavidRutten can make something of these:

2 Likes

Thanks atair, I guess you have no way of knowing which font is causing the issues?

can try it the hard way - font by font, but lets see what fonts @Jaeyoon_Jeong has installed.

Ok i ran a fonttest (FonTest.jsx) that is supplied by adobe. it ran a test on all 372 fonts on my system, and no errors at all.

-----------------------------------------
Photoshop Font Test
-----------------------------------------
Start Time:  Sun Oct 14 2018 15:41:30 GMT+0200
End Time:    Sun Oct 14 2018 15:46:07 GMT+0200
Execution Time:  277.384 seconds
-----------------------------------------
The number of fonts installed:   372
The number of fonts tested:  372
The number of fonts passed:  372
The number of fonts failed:  0
-----------------------------------------
Test Result: PASS
-----------------------------------------

looks like its something else…

1 Like

It just broke on my machine too. I should be able to figure out why now.
Logged under RH-49017.

Edit: it would seem a recent Windows 10 update installed a name-less font. I didn’t think this was legal, but apparently Microsoft can do this and I wasn’t handling this case.

2 Likes