http://bugs.winehq.org/show_bug.cgi?id=30755
Bug #: 30755 Summary: gdiplus tests fail if stix fonts present Product: Wine Version: 1.5.4 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
On Centos 6, "make test" causes (among others) the failures
runtest -q -P wine -M gdiplus.dll -T ../../.. -p gdiplus_test.exe.so ~/wine-git/dlls/gdiplus/tests/font.c && touch font.ok ... font.c:396: Test failed: Expected 0, got 3 font.c:397: Test failed: got NULL font collection make[1]: *** [font.ok] Error 2 /home/dank/wine-git/tools/runtest -q -P wine -M gdiplus.dll -T ../../.. -p gdiplus_test.exe.so /home/dank/wine-git/dlls/gdiplus/tests/graphics.c && touch graphics.ok ... graphics.c:1978: Test failed: Expected 00000000, got 00000010 Unhandled exception: page fault on read access to 0x00000048 in 32-bit code (0x6834d776). Backtrace: =>0 0x6834d776 get_log_fontW+0x16() in gdiplus (0x0032f8c8) 1 0x68358d57 get_font_hfont+0xf6() in gdiplus (0x0032f9f8) 2 0x6835d1cd GdipDrawString+0x26c() in gdiplus (0x0032fb78) 3 0x71cb8763 test_GdipDrawString+0x232() in gdiplus_test (0x0032fc38) 4 0x71cc5c45 func_graphics+0xb84() in gdiplus_test (0x0032fd18) ...
Looks like GdipNewInstalledFontCollection() which calls EnumFontFamiliesExW() which calls add_font_proc() which calls GdipCreateFontFamilyFromName() and is failing because the latter function somehow chokes on the stix fonts (http://stixfonts.org) bundled with centos 6.
Doing sudo chmod 000 /usr/share/fonts/stix works around the problem.
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #1 from Dan Kegel dank@kegel.com 2012-05-23 00:59:05 CDT --- Created attachment 40274 --> http://bugs.winehq.org/attachment.cgi?id=40274 +relay,+font,+gdiplus log excerpt of failing test
http://bugs.winehq.org/show_bug.cgi?id=30755
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #2 from Austin English austinenglish@gmail.com 2012-06-13 17:43:52 CDT --- See also bug 30798 for a patch/other info.
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #3 from Austin English austinenglish@gmail.com 2012-06-18 17:51:18 CDT --- Bug 30798 was fixed by ac38e69a92a443759cc8fb3291c50dce3bc5a83c, and gdiplus/font test works here if I install stix on debian. Please retest.
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #4 from Dan Kegel dank@kegel.com 2012-06-18 18:05:54 CDT --- Still crashing here on my centos 6 laptop. Does 'make graphics.ok' pass for you?
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #5 from Dan Kegel dank@kegel.com 2012-06-18 19:44:01 CDT --- On my centox 6 box, unless I do 'winetricks corefonts'. graphics.ok crashes and font.ok complains font.c:306: Tests skipped: Times New Roman not installed 'winetricks corefonts' works around both problems.
http://bugs.winehq.org/show_bug.cgi?id=30755
--- Comment #6 from Austin English austinenglish@gmail.com 2012-06-18 19:54:48 CDT --- (In reply to comment #5)
On my centox 6 box, unless I do 'winetricks corefonts'. graphics.ok crashes and font.ok complains font.c:306: Tests skipped: Times New Roman not installed 'winetricks corefonts' works around both problems.
Same here, though font.c passes fine.
https://bugs.winehq.org/show_bug.cgi?id=30755
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=30755
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
https://bugs.winehq.org/show_bug.cgi?id=30755
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|gdiplus tests fail if stix |gdiplus:font and |fonts present |gdiplus:graphics tests fail | |if stix fonts present CC| |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=30755
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME
--- Comment #8 from François Gouget fgouget@codeweavers.com --- I have the STIX fonts installed (fonts-stix 1.1.1-4) but they do not cause either of gdiplus:font or gdiplus:graphics to crash (there are other, unrelated, problems though).
So I'm closing this bug.
https://bugs.winehq.org/show_bug.cgi?id=30755
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #9 from André H. nerv@dawncrow.de --- closing worksforme