Received: by 10.101.2.2 with SMTP id e2mr474499ani.6.1349282097230; Wed, 03 Oct 2012 09:34:57 -0700 (PDT) X-BeenThere: cocotron-dev@googlegroups.com Received: by 10.236.113.178 with SMTP id a38ls2826248yhh.9.gmail; Wed, 03 Oct 2012 09:34:55 -0700 (PDT) Received: by 10.236.118.82 with SMTP id k58mr305156yhh.1.1349282095715; Wed, 03 Oct 2012 09:34:55 -0700 (PDT) Date: Wed, 3 Oct 2012 09:34:55 -0700 (PDT) From: badf00d To: cocotron-dev@googlegroups.com Message-Id: Subject: Crash during font enumeration on Windows 8 64-bit MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_339_8038099.1349282095100" ------=_Part_339_8038099.1349282095100 Content-Type: multipart/alternative; boundary="----=_Part_340_6190137.1349282095100" ------=_Part_340_6190137.1349282095100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I've successfully been using Cocotron for my app on Windows XP and Windows 7 (32 and 64 bit) for the past year or so. However, when testing the exact same app on Windows 8 RTM build (64-bit), I'm finding that it crashes on startup. I tracked the crash down to the GDI font enumeration code in Onyx2D (O2Font_gdi.m). The font enumeration is done in _buildNativePSmapping using EnumFontFamiliesW (to get the list of font families via EnumFamiliesCallBack) and then a loop of EnumFontFamiliesExW calls with each family (which causes EnumFontFromFamilyCallBack to be called). For some reason, I'm seeing a font with a bad family name in EnumFamiliesCallBack (which causes the crash). I'm able to get around this crash by limiting the font types it processes to only RASTER_FONTTYPE and TRUETYPE_FONTTYPE (i.e. skipping vector font types). However, I'm now getting another crash on the very first EnumFontFamiliesExW call made in the loop. I see that the callback (EnumFontFromFamilyCallBack) is happening after the call to EnumFontFamiliesExW. However, once the callback returns, there's a crash in the GDI library somewhere (can't see the top three layers of the stack). Has anyone else encountered this problem on Windows 8? Any ideas/help would be appreciated. ------=_Part_340_6190137.1349282095100 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,

I've successfully been using Cocotron for my app on = Windows XP and Windows 7 (32 and 64 bit) for the past year or so.  How= ever, when testing the exact same app on Windows 8 RTM build (64-bit), I'm = finding that it crashes on startup.

I tracked the = crash down to the GDI font enumeration code in Onyx2D (O2Font_gdi.m).  = ;The font enumeration is done in _buildNativePSmapping using EnumFontFamili= esW (to get the list of font families via EnumFamiliesCallBack) and then a = loop of EnumFontFamiliesExW calls with each family (which causes EnumFontFr= omFamilyCallBack to be called).

For some reason, I= 'm seeing a font with a bad family name in EnumFamiliesCallBack (which caus= es the crash).  I'm able to get around this crash by limiting the font= types it processes to only RASTER_FONTTYPE and TRUETYPE_FONTTYPE (i.e. ski= pping vector font types).  However, I'm now getting another crash on t= he very first EnumFontFamiliesExW call made in the loop.

I see that the callback (EnumFontFromFamilyCallBack) is happening af= ter the call to EnumFontFamiliesExW.  However, once the callback retur= ns, there's a crash in the GDI library somewhere (can't see the top three l= ayers of the stack).

Has anyone else encountered t= his problem on Windows 8?  Any ideas/help would be appreciated.
<= div>
------=_Part_340_6190137.1349282095100-- ------=_Part_339_8038099.1349282095100--