http://bugs.winehq.org/show_bug.cgi?id=9380
Summary: Grand Prix Legends: heavy randomic slowdown at 800x600 resolution or higher Product: Wine Version: 0.9.43. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-opengl AssignedTo: wine-bugs@winehq.org ReportedBy: xwang1976@email.it
When I start Grand Prix Legends 2004 Demo at 640x480, the game runs fluently at 36 fps like it does under windows, but if I change the resolution at 800x600 or higher, it runs at about 1 fps and at the same moment the cpu usage goes to 100% (at 640x480 is at 20-25% maximum). This happens in a randomic way because sometimes it switch correctly to the higher resolution and in that case it runs fluently even at 800x600 (I've seen this case in 3 or 4 cases over more than 30 times I tried to switch to this resolution). However I've never been able to run at 1024x768 as I normally do under windows.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #1 from Roderick Colenbrander thunderbird2k@gmx.net 2007-08-20 05:50:58 --- Could you provide some more data? Like the specs of your system, what drivers you are using and so on? Most likely it is a driver problem.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #2 from Xwang xwang1976@email.it 2007-08-20 06:11:15 --- (In reply to comment #1)
Could you provide some more data? Like the specs of your system, what drivers you are using and so on? Most likely it is a driver problem.
Well I've a laptop (Toshiba m30-304, cpu Pentium-M 1.4 GHz, 1GB Ram, video card nvidia Fx go5200 32Mb, lcd 15.4" 1280x800 native resolution). I'm using kubuntu 7.04 with the driver installed from the repositories of the distro (9631). Do you need more infos? Xwang
http://bugs.winehq.org/show_bug.cgi?id=9380
Gerald Folcher geraldf2@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |geraldf2@free.fr
--- Comment #3 from Gerald Folcher geraldf2@free.fr 2007-08-21 11:59:00 --- I experience the same (or at least very similar) slow-down bug with this game, but on my system it happens only rarely. I don't know how to reliably reproduce it, for me it only happens semi-randomly, when it happens it seems to be mostly at the start of a race against AI drivers, or when loading a track (still in the menu), and when quitting the game (see 3rd paragraph below). I have the impression it may be related somehow to high CPU load (but I don't know really).
It's specific to this game, I didn't have any such problem with any other Linux or Wine game.
I regularly run the game at 800x600, 1024x768 works too but probably has more chance of triggering the bug. USUALLY the game works very well, but I have a GeForce4 Ti 4200/128M gfx card, which, despite being older, AFAIK is faster/has more memory than Xwang's, so maybe that's why in my case the problem is not triggered easily with higher resolutions. While I'm at it, my other system specs are CPU: Duron 1.8 GHz, RAM: 512M, nvidia proprietary gfx driver v1.0-9639 (I had the problem also with v1.0-9631 too).
Also I'm not sure it is the same problem but, it happens more often, when I quit the game and there's the screen with the rolling credits, if I let it rolling (not hitting a key) for some seconds, it often suddenly slows down and/or halt and I have to Ctrl-C Wine (Because of this I've taken the habit of immediately hitting Esc when this screen appear, but sometimes I'm not even fast enough), it may be interesting to note that this simple rolling credit screen eats up 99% of my CPU (according to 'top').
Also, maybe it's unrelated but the game (on Windows) seems to be touchy when it comes to CPU stuff, look at this FAQ: http://forum.racesimcentral.com/showthread.php?t=105748 (search the page for "cpu")
http://bugs.winehq.org/show_bug.cgi?id=9380
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thunderbird2k@gmx.net
--- Comment #4 from Roderick Colenbrander thunderbird2k@gmx.net 2007-08-21 15:48:13 --- Based on your comment and the link you posted it looks like it could be issues in the game itself. Ofcourse Wine itself isn't ideal which in some cases (perhaps audio) can cause additional cpu load but overall I think it is really the game. Even without the game bugs I wouldn't have any idea on what to do about it.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #5 from Gerald Folcher geraldf2@free.fr 2007-08-21 17:31:23 --- Don't forget though that here the same game on the same computer runs fine under Windows. But that said of course I understand what you mean.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #6 from Xwang xwang1976@email.it 2007-08-21 17:47:25 --- (In reply to comment #4)
Based on your comment and the link you posted it looks like it could be issues in the game itself. Ofcourse Wine itself isn't ideal which in some cases (perhaps audio) can cause additional cpu load but overall I think it is really the game. Even without the game bugs I wouldn't have any idea on what to do about it.
Ok, but, since with the same machine the game runs correctly under Windows Xp, I suppose it may be a strange problem related with the implementation of the api. So if it is possible to log the program calls to the wine api, maybe, we can discover that it hangs when calling a particular function. Is it possible? How? Xwang
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #7 from Roderick Colenbrander thunderbird2k@gmx.net 2007-08-21 17:59:52 --- You could use a profiling tool like oprofile to figure out in what functions the most time is spent. (limit it to wine libs and make sure you run it for a few minutes; then reset the buffer and do it for the other resolution and compare)
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #8 from Xwang xwang1976@email.it 2007-08-22 05:38:09 --- (In reply to comment #7)
You could use a profiling tool like oprofile to figure out in what functions the most time is spent. (limit it to wine libs and make sure you run it for a few minutes; then reset the buffer and do it for the other resolution and compare)
Is there any more specific howto? Xwang
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #9 from Vitaliy Margolen vitaliy@kievinfo.com 2007-08-22 08:12:44 --- This should be enough to get you started: http://www.winehq.org/?issue=249#oprofile%20&%20Wine
Don't forget that you will need self-compiled Wine with possibly other debug packages installed, so you can see function names.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #10 from Gerald Folcher geraldf2@free.fr 2007-08-23 14:47:34 --- If it is of any interest, when this bug happens Wine sometimes output these 2 error messages:
err:ntdll:RtlpWaitForCriticalSection section 0x94d130 "?" wait timed out in thread 0012, blocked by 0009, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x94d1b0 "?" wait timed out in thread 0013, blocked by 0009, retrying (60 sec)
And after I do Ctrl-C it outputs:
err:seh:setup_exception stack overflow 84 bytes in thread 0015 eip 7efcd5f2 esp 7b300fac stack 0x7b301000-0x7b400000
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #11 from Gerald Folcher geraldf2@free.fr 2008-01-03 07:07:55 --- Hello,
I just found something very interesting regarding this vicious slow-motion bug, at least for me it's a working workaround. It seems that running 'wineserver' with a higher priority (I think, I mean with a lower 'nice' number) than the game, prevents the bug from happening.
Until I found this I was running both 'wineserver' and the game with the same priority, eventually trying nice levels from -9 to 19, but the bug always happened sooner or later (but less with sub 0 values) (it always happened tho on the rolling credits screen that appears when you quit the game).
Using this it doesn't happen anymore, I can even let the credits screen roll and it doesn't happen (while it always gone bad on that screen, within a few seconds if not immediately). For example, in my case I start first wineserver with a 'nice -n -5', then I launch GPLegends with wine with a 'nice -n -3'. For more clarity, here is an example how it would look like in a script to launch the game:
nice -n -5 wineserver sleep 1s #wait 1s=one second, not sure if it's required or useful... nice -n -3 wine C:\Program\ Files\gpl2004\gpl.exe
Btw, I still use Wine 0.9.42 (because with more recent versions (last one I tried is 0.9.51) performance is very very terribly stutteringly bad (unless I turn sound off), but that's an other bug/story). But I think this slow-motion bug still exists in these more recent versions and this nice level "trick" probably works too.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #12 from Gerald Folcher geraldf2@free.fr 2008-01-03 13:21:46 --- Well sorry, it looks like I jumped too fast to conclusions about this priority level thing, I found it doesn't completely prevent the problem from happening, it still happens given enough stress from an heavy track (circuit) or with bigger resolutions. Sorry if I made anybody have false hopes. It does often prevent it tho for me (one proof is the rolling credit screen which always slowed-down/froze/crashed, and now for me it does no more), but it's not a cure.
http://bugs.winehq.org/show_bug.cgi?id=9380
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|opengl |-unknown
--- Comment #13 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-01 07:08:38 --- Moving this bug to unknown as for sure it isn't an opengl problem. The bug scales with performance stressing the system, so perhaps it is something wineserver related or something else but not opengl.
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #14 from Austin English austinenglish@gmail.com 2008-10-30 02:12:47 --- Is this still an issue in current (1.1.7 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=9380
Tux peter.hoogkamer@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.hoogkamer@gmail.com
--- Comment #15 from Tux peter.hoogkamer@gmail.com 2009-01-30 06:36:47 --- (In reply to comment #14)
Is this still an issue in current (1.1.7 or newer) wine?
I am running Grand Prix Legends on Ubuntu 8.10 with the latest wine 1.1.12 and this still happens. The game is running perfectly like on windows, but there are still random freezes like Gerald Folcher. I have tryed to renice the wine server and gpl but that did not work
I could add some log files about similar errors to this bug.
But is someone working on this? Can I help trying to solve this problem? Anyone have any idea what this error means?
Tux
http://bugs.winehq.org/show_bug.cgi?id=9380
--- Comment #16 from Austin English austinenglish@gmail.com 2009-07-30 11:56:52 --- Is this still an issue in current (1.1.26 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=9380
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #17 from Austin English austinenglish@gmail.com 2010-04-29 18:19:55 --- No response in over 6 months, and no download available. Marking abandoned.
If this is still an issue in current (1.1.43 or newer) wine, and you can provide the needed information, feel free to reopen.
http://bugs.winehq.org/show_bug.cgi?id=9380
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Austin English austinenglish@gmail.com 2010-04-29 18:27:27 --- Closing.