http://bugs.winehq.org/show_bug.cgi?id=9995
Summary: font/menu problems ocurring with 0.9.41 Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: major Priority: P2 Component: test AssignedTo: wine-bugs@winehq.org ReportedBy: Hannes.Krueger@uibk.ac.at
I use a windows application with wine. wine version 0.9.39 and 0.9.40 work fine with this application, versions from 0.9.41 (incl. builds from most recent git/cvs sources) fail to run this software:
No text is displayed in the main window of the application. Browsing through the dropdown menus (which also do not contain any text) leads to a crash. The output of a successfull run with wine 0.9.40 and the output of a crash using version 0.9.41 is attached.
Maybe somebody has an idea what the problem is.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #1 from Hannes Hannes.Krueger@uibk.ac.at 2007-10-11 10:44:49 --- Created an attachment (id=8514) --> (http://bugs.winehq.org/attachment.cgi?id=8514) logs
http://bugs.winehq.org/show_bug.cgi?id=9995
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8514|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=9995
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Component|test |wine-misc Keywords| |regression
--- Comment #2 from Austin English austinenglish@gmail.com 2007-10-11 15:48:20 --- What program is this? Is there a demo/download available?
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #3 from James Hawkins truiken@gmail.com 2007-10-11 15:53:22 --- Please do a regression test:
http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #4 from Hannes Hannes.Krueger@uibk.ac.at 2007-10-12 04:31:03 ---
Hi,
the program is jana2006, a crystallographic software, it's free and the windows installation exe can be downloaded here. http://www-xray.fzu.cz/jana/download/beta2006/janainst.exe
After installation it needs some environment variables to be set: [HKEY_CURRENT_USER\Environment] "Jana2006Dir"="c:\programme\jana2006\" "Path"="c:\programme\jana2006\"
Anyhow, I did the regression test:
Bisecting: 0 revisions left to test after this [7495d814954420c16e21de40c3031a9c95385f56] gdi32: Using a bitmap font as the fallback sans serif is a very bad idea.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #5 from Lei Zhang thestig@google.com 2007-10-17 19:47:16 --- Can you try a clean .wine directory with wine 0.9.47? This looks like a dup of bug 8983, which has been fixed.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #6 from Hannes Hannes.Krueger@uibk.ac.at 2007-10-18 02:18:52 --- After cleaning .wine and starting over again with the latest sources from git, the bug still persists. It's not just bad fonts, there is no text at all.
http://bugs.winehq.org/show_bug.cgi?id=9995
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |huw@codeweavers.com URL| |http://www- | |xray.fzu.cz/jana/download/be | |ta2006/janainst.exe Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download
--- Comment #7 from Lei Zhang thestig@google.com 2007-10-18 22:16:01 --- Ya, I can reproduce the problem. It's caused by:
commit 7495d814954420c16e21de40c3031a9c95385f56 Author: Huw Davies huw@codeweavers.com Date: Thu Jul 5 15:27:20 2007 +0100
gdi32: Using a bitmap font as the fallback sans serif is a very bad idea.
and you can set the environment variable on the command line as follows:
JANA2006DIR="C:\path\to\jana" wine jana2006.exe
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #8 from Timo-Heikki Mäkelä imaxfun@gmail.com 2008-02-23 23:05:44 --- The component for this should be set to gdi32 due to the cause found by bisection.
http://bugs.winehq.org/show_bug.cgi?id=9995
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |gdi32
http://bugs.winehq.org/show_bug.cgi?id=9995
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #9 from Dmitry Timoshkov dmitry@codeweavers.com 2008-02-23 23:30:18 --- This is a duplicate of the bug 8983, and should be fixed in current Wine due to the introduced Tahoma replacement.
*** This bug has been marked as a duplicate of bug 8983 ***
http://bugs.winehq.org/show_bug.cgi?id=9995
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2008-02-23 23:30:46 --- Closing duplicate.
http://bugs.winehq.org/show_bug.cgi?id=9995
Hannes Hannes.Krueger@uibk.ac.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|DUPLICATE |
--- Comment #11 from Hannes Hannes.Krueger@uibk.ac.at 2008-02-24 04:34:53 --- I just tested the most recent sources available with git (wine-0.9.56), but unfortunately I have to say the bug still persists.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #12 from Dmitry Timoshkov dmitry@codeweavers.com 2008-02-24 04:59:30 --- (In reply to comment #11)
I just tested the most recent sources available with git (wine-0.9.56), but unfortunately I have to say the bug still persists.
Have you compiled Wine on your own? If yes, do you have fontforge installed, and a generated tahoma.ttf?
http://bugs.winehq.org/show_bug.cgi?id=9995
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #13 from Dan Kegel dank@kegel.com 2008-02-24 07:34:46 --- And more importantly, which version of fontforge do you have? June 2007 was a very good vintage...
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #14 from Hannes Hannes.Krueger@uibk.ac.at 2008-02-24 10:43:31 --- I've got fontforge 20071210. What does it mean to generate tahoma.ttf? Is there any wine documenation on whats needed?
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #15 from Dan Kegel dank@kegel.com 2008-02-24 11:05:50 --- It's a long story. See http://bugs.winehq.org/show_bug.cgi?id=10660 for the messy details.
You might want to grab a july 2007 version from http://sourceforge.net/project/showfiles.php?group_id=103338&package_id=... and build it yourself. This is a pain. Then to regenerate wine's fonts, go into the fonts subdir of the wine source tree, do 'make clean', 'make', and maybe 'sudo make install'.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #16 from Dmitry Timoshkov dmitry@codeweavers.com 2008-02-24 11:29:01 --- (In reply to comment #15)
It's a long story. See http://bugs.winehq.org/show_bug.cgi?id=10660 for the messy details.
That problem shouldn't affect tahoma. If in doubt there is a windows version of it.
If Hannes built Wine on his own, that's a mistake, he should use a prebuilt package instead.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #17 from Timo-Heikki Mäkelä imaxfun@gmail.com 2008-03-12 20:07:56 --- Hannes, all those fixes by Dimitry got into wine 0.9.57, so this should be fixed now. Could you test again and confirm, please?
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #18 from Hannes Hannes.Krueger@uibk.ac.at 2008-03-13 08:10:05 --- I don't think that building software from source is a mistake! But yes I did. I tested with "wine-0.9.57-138-gbcfb47e", which shows the same problems. I tested with rebuild fonts (fontforge 20071210 and 20070723) same problems.
So, I doubt that this problem is resolved. Maybe somebody else can try to reproduce the issue (see comment #4)
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #19 from Lei Zhang thestig@google.com 2008-03-13 13:51:30 --- I don't see the fonts either. I tried with the latest git on slackware and ubuntu. Tried fontforge 20070723 and 20070831.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #20 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-14 01:49:15 --- Does reverting the Huw's patch makes the problem disappear? It doesn't for me.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #21 from Lei Zhang thestig@google.com 2008-03-14 10:43:28 --- (In reply to comment #20)
Does reverting the Huw's patch makes the problem disappear? It doesn't for me.
Reverting Huw's patch from current git does not make the problem disappear, but if I reset back to ffbd30dd88157299807f4b8c3f3363768b75ecae (right before Huw's patch) then it works.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #22 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 06:27:31 --- can somebody please summarise the finding regarding this bug? Is it related to fontforge? Is there any way to fix or is there any workaround? Unfortunately I need the latest Wine for other software too. So its a bit tedious to switch to the old versions and back...
btw. the download for the jana2006 has changed, if anybody needs it for testing: http://www-xray.fzu.cz/jana/download/latest2006/janainst.exe
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #23 from Dmitry Timoshkov dmitry@codeweavers.com 2008-07-29 07:04:41 --- Have you tried with a more recent Wine version, say 1.1.2? New Wine versions ship with prebuilt fonts, so fontforge should not be needed anymore.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #24 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 07:31:32 --- yes, I tried wine-1.1.2-42-g9566051 still doesn't work :-(
No fonts visible... and then crashes after clicking around blindly
wine ~/C/Programme/jana2006/jana2006.exe fixme:iphlpapi:NotifyAddrChange (Handle 0x7d9e99e8, overlapped 0x7d9e99cc): stub fixme:shell:DllCanUnloadNow stub wine: configuration in '/home/kruegerh/.wine' has been updated. err:richedit:RichEditWndProc_common called with invalid hWnd 0x90026 - application bug? X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 53 (X_CreatePixmap) Serial number of failed request: 1387 Current serial number in output stream: 1562
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #25 from Dan Kegel dank@kegel.com 2008-07-29 10:20:49 --- That X crash could be caused by a system problem. What version of Linux and X are you using?
If it's a Wine bug, a log like WINEDEBUG=+sync,+x11drv,+relay wine ~/C/Programme/jana2006/jana2006.exe might help pinpoint the offending call.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #26 from Dmitry Timoshkov dmitry@codeweavers.com 2008-07-29 11:25:46 --- Also, please try with fresh ~/.wine, and do chdir to ~/C/Programme/jana2006 first.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #27 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 12:12:57 --- Created an attachment (id=15161) --> (http://bugs.winehq.org/attachment.cgi?id=15161) crashlog
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #28 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 12:15:33 --- happens also with a freah ~/.wine and inside the ~/C/programme/jana2006
I'm using 2.6.25.10 x86 xorg11.0 on a gentoo system I've attached the crashlog as proposed by Dan.
The font problem occurs immediately... the crash later, while trying to navigate blindly through some menues...
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #29 from Dan Kegel dank@kegel.com 2008-07-29 12:21:07 --- Please provide a log made with WINEDEBUG=+relay,+bitblt,+sync
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #30 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 12:28:01 --- Created an attachment (id=15163) --> (http://bugs.winehq.org/attachment.cgi?id=15163) log with WINEDEBUG=+relay,+bitblt,+sync
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #31 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 12:28:30 --- I hope that helps....
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #32 from Dan Kegel dank@kegel.com 2008-07-29 12:39:33 --- This bit looks kind of suspicious:
0009:Call gdi32.BitBlt(00000e80,00023e4e,00000052,0000ed32,00000091,00000ea8,00000000,00000000,00cc0020) ret=004c43cf trace:bitblt:BitBlt hdcSrc=0xea8 0,0 -> hdcDest=0xe80 147022,82 60722x145 rop=cc0020 trace:bitblt:BITBLT_InternalStretchBlt rectdst=147022,82-60722,145 orgdst=0,0 trace:bitblt:BITBLT_InternalStretchBlt rectsrc=0,0-60722,145 orgsrc=0,0 0009:Ret gdi32.BitBlt() retval=00000001 ret=004c43cf
That seems like an awful big dest rectangle. Perhaps the mere act of trying to process that plays hob with your X server...
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #33 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-29 16:46:53 --- I think thats a follow-up of the font problem. The menues seem to be horizontally extended over the whole screenwidth (or much more), probably due to fscked-up calculations resulting from the font problem. Is there a way to figure out whats the problem with the fonts? Do the regression tests, which have been done, provide any help?
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #34 from Dmitry Timoshkov dmitry@codeweavers.com 2008-07-29 20:58:21 --- Please replace +sync by +synchronous and regenerate the log.
http://bugs.winehq.org/show_bug.cgi?id=9995
Hannes Hannes.Krueger@uibk.ac.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #15161|0 |1 is obsolete| | Attachment #15163|0 |1 is obsolete| |
--- Comment #35 from Hannes Hannes.Krueger@uibk.ac.at 2008-07-30 00:36:11 --- Created an attachment (id=15174) --> (http://bugs.winehq.org/attachment.cgi?id=15174) log with WINEDEBUG=+relay,+bitblt,+synchronous
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #36 from Hannes Hannes.Krueger@uibk.ac.at 2008-11-04 08:11:40 --- I tested todays git version with the most recent Jana2006 version, but unfortunately this bug still exists.
The Jana2006 developers told me, they're using the Tahoma font.
http://www-xray.fzu.cz/jana/download/stable2006/janainst.exe
Any ideas how to deal with this bug? Unfortunately I'm not into the details of wine, but I could do any needed testing.
http://bugs.winehq.org/show_bug.cgi?id=9995
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #37 from Austin English austinenglish@gmail.com 2009-01-15 10:54:23 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If still present, update version field to earliest known version of wine that had this bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=9995
Hannes Hannes.Krueger@uibk.ac.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |0.9.41.
--- Comment #38 from Hannes Hannes.Krueger@uibk.ac.at 2009-06-24 03:51:01 --- The bug occurred with 0.9.41. For some reason I'm not alonger able to compile 0.9.40 on my system.
However, so it will be (at least for me) more important to fix this bug. Today I tested with the latest git-sources (wine-1.1.24-140-ge920f5f), the bug still persists.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #39 from Dan Kegel dank@kegel.com 2009-06-24 05:10:48 --- Does 'winetricks tahoma' work around the problem?
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #40 from Rein Klazes wijn@online.nl 2009-06-24 05:44:09 --- The problem is not the tahoma font. It would have occurred with Arial as well.
This is the cause:
0009:Call gdi32.CreateFontA(fffffff5,00001f33,00000000,00000000,00000190,00000000,00000000,00000000,00000001,00000004,00000010,00000000,00000002,0032f9ec "Tahoma") ret=00526506 0009:trace:font:CreateFontIndirectW (-11 7987 0 0 2 4 10 0 1) L"Tahoma" => 0x644
(note the rather large fontwitdh 7987).
Wine accepts this width when the font is selected in a DC:
0009:Call gdi32.GetTextMetricsA(00000348,0032f9b4) ret=00526536 0009:trace:font:WineEngGetOutlineTextMetrics font=0x166378 0009:trace:font:WineEngGetOutlineTextMetrics OS/2 winA = 2049 winD = 423 typoA = 1566 typoD = -423 typoLG = 59 FT_Face a = 2049, d = -423, h = 2472: HORZ a = 2049, d = -423 lg = 0 maxY = 2118 minY = -424 0009:trace:font:GetTextMetricsW text metrics: Weight = 400 FirstChar = 32 AveCharWidth = 7987 Italic = 0 LastChar = 65532 MaxCharWidth = 33545 UnderLined = 0 DefaultChar = 31 Overhang = 0 StruckOut = 0 BreakChar = 32 CharSet = 0 PitchAndFamily = 27 -------------------- InternalLeading = 2 Ascent = 11 Descent = 2 Height = 13 0009:Ret gdi32.GetTextMetricsA() retval=00000001 ret=00526536
On Windows the very large width values get ignored and the font acts as if created with width = 0. On wine it leads to large TextExtends, large menu's and large bitmaps, that cannot be handled by X.
I am able to construct a testcase. Fixing the font code is still a challenge :(
http://bugs.winehq.org/show_bug.cgi?id=9995
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bunglehead@gmail.com
--- Comment #41 from Nikolay Sivov bunglehead@gmail.com 2009-06-24 05:53:41 --- (In reply to comment #40)
On Windows the very large width values get ignored and the font acts as if created with width = 0. On wine it leads to large TextExtends, large menu's and large bitmaps, that cannot be handled by X.
Is it possible to determine this very large value threshold?
I am able to construct a testcase. Fixing the font code is still a challenge :(
Test is necessary step for such changes anyway.
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #42 from Dan Kegel dank@kegel.com 2009-06-24 06:35:20 --- Please do submit the test case without waiting for a fix, thanks!
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #43 from Rein Klazes wijn@online.nl 2009-06-25 02:44:27 --- test submitted:
http://www.winehq.org/pipermail/wine-patches/2009-June/074812.html
http://bugs.winehq.org/show_bug.cgi?id=9995
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|font/menu problems ocurring |font/menu problems |with 0.9.41 |
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #44 from Dmitry Timoshkov dmitry@codeweavers.com 2009-10-07 12:08:06 --- The fix for the test case has been committed: http://source.winehq.org/git/wine.git/?a=commit;h=21589993826cdb1cb2f87ceb94...
http://bugs.winehq.org/show_bug.cgi?id=9995
Rein Klazes wijn@online.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #45 from Rein Klazes wijn@online.nl 2009-10-08 00:31:09 --- The application main windows is readable now. Menus have text and work fine.
Marking this bug fixed.
This appears on the terminal at the start-up:
err:richedit:RichEditWndProc_common called with invalid hWnd 0x20032 - application bug?
If there are other problems with this application, pls open other bug report(s)
http://bugs.winehq.org/show_bug.cgi?id=9995
--- Comment #46 from Hannes Hannes.Krueger@uibk.ac.at 2009-10-08 02:47:53 --- Great! Thanks to everybody who helped to fix this one!
http://bugs.winehq.org/show_bug.cgi?id=9995
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #47 from Alexandre Julliard julliard@winehq.org 2009-10-09 11:13:33 --- Closing bugs fixed in 1.1.31.