http://bugs.winehq.org/show_bug.cgi?id=33528
Bug #: 33528 Summary: GTA2 hangs up during gameplay Product: Wine Version: 1.5.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: tuomosipola@gmail.com Classification: Unclassified
Created attachment 44376 --> http://bugs.winehq.org/attachment.cgi?id=44376 Console output of a hang-up situation
The game hangs after some time during gameplay. It becomes non-responsive and has to be killed. This seems to happen when some event is triggered in the games, e.g., someone gets in or out of a car or picks a power-up.
http://bugs.winehq.org/show_bug.cgi?id=33528
Tuomo Sipola tuomosipola@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.rockstargames.co | |m/classics/ Version|1.5.29 |1.6-rc4
http://bugs.winehq.org/show_bug.cgi?id=33528
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |00cpxxx@gmail.com
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2013-07-16 20:35:36 CDT --- I'll try to reproduce this when I have some more time to play the game. How long do you play to make it hang?
http://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #2 from Tuomo Sipola tuomosipola@gmail.com 2013-07-17 02:02:08 CDT --- (In reply to comment #1)
I'll try to reproduce this when I have some more time to play the game. How long do you play to make it hang?
It really depends, unfortunately. Sometimes it is the first time the character gets in the car, sometimes it takes half an hour. It is always connected to events like getting in a car or picking up a weapon.
http://bugs.winehq.org/show_bug.cgi?id=33528
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2013-07-17 18:19:58 CDT --- I can confirm the issue in wine 1.6-rc5. I'm trying to get useful information from bt all.
http://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2013-07-17 19:24:14 CDT --- Created attachment 45318 --> http://bugs.winehq.org/attachment.cgi?id=45318 bt all in wine 1.6-rc5 during the hang
This is the output from bt all (repeated clone() lines trimmed). There is no reliable way to reproduce the issue, the first time I tried it took me less than 5 minutes, the second time took almost an hour.
Could it be that for some reason the while condition inside mixer.c (line 292) is never true?
http://source.winehq.org/source/dlls/dsound/mixer.c#L291
=>0 0x7ce85c70 cp_fields_resample+0x2b1(dsb=0x2ddaf28, count=0x3c0, freqAcc=0x2ddaff8) [/home/bruno/programs/wine/dlls/dsound/mixer.c:292] in dsound (0x0320e708) 1 0x7ce85ed3 cp_fields+0x5e(dsb=0x2ddaf28, count=0x3c0, freqAcc=0x2ddaff8) [/home/bruno/programs/wine/dlls/dsound/mixer.c:325] in dsound (0x0320e738) 2 0x7ce860df DSOUND_MixToTemporary+0xfe(dsb=0x2ddaf28, frames=0x3c0) [/home/bruno/programs/wine/dlls/dsound/mixer.c:381] in dsound (0x0320e768) 3 0x7ce86534 DSOUND_MixInBuffer+0x1a3(dsb=0x2ddaf28, writepos=0x6900, fraglen=0x1e00) [/home/bruno/programs/wine/dlls/dsound/mixer.c:449] in dsound (0x0320e7c8) 4 0x7ce86874 DSOUND_MixOne+0x284(dsb=0x2ddaf28, writepos=0x6900, mixlen=0x1e00) [/home/bruno/programs/wine/dlls/dsound/mixer.c:506] in dsound (0x0320e838)
Or maybe it's related to the last backtrace in the file, regarding ddraw and mesa.
http://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2013-07-17 20:00:42 CDT --- Created attachment 45319 --> http://bugs.winehq.org/attachment.cgi?id=45319 bt for sound threads wine 1.6-rc5
After making it hang again I got a different backtrace but still related to sound. Two threads seem to be waiting for the same critical section, but how can I know what thread locked the section?
http://bugs.winehq.org/show_bug.cgi?id=33528
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #45319|0 |1 is obsolete| |
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com 2013-07-17 20:29:28 CDT --- Created attachment 45320 --> http://bugs.winehq.org/attachment.cgi?id=45320 bt for locked threads in wine 1.6-rc5
Ok, I see now that there is a thread with a HEAP_CreateFreeBlock that is hung. For some reason it's not possible to step in this line:
0x7bc47c9b HEAP_CreateFreeBlock+0x155 [/home/bruno/programs/wine/dlls/ntdll/heap.c:607] in ntdll: movl %eax,0x0(%esp) 607 mark_block_initialized( (ARENA_FREE **)pNext - 1, sizeof( ARENA_FREE * ) );
Wine-dbg>info locals 0x7bc47c9b HEAP_CreateFreeBlock+0x155: (0033f7d8) SUBHEAP* subheap=0x2580000 (parameter [EBP+8]) void* ptr=0x2c43420 (parameter [EBP+12]) SIZE_T size=0x180 (parameter [EBP+16]) ARENA_FREE* pFree=0x2c43420 (local [EBP-12]) char* pEnd="i" (local [EBP-4]) BOOL last=0 (local [EBP-20]) DWORD flags=0x2 (local [EBP-8]) DWORD* pNext=0x2c435a0 (local [EBP-24])
http://bugs.winehq.org/show_bug.cgi?id=33528
Tuomo Sipola tuomosipola@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |ntdll
http://bugs.winehq.org/show_bug.cgi?id=33528
Tuomo Sipola tuomosipola@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.6-rc4 |1.6-rc5
http://bugs.winehq.org/show_bug.cgi?id=33528
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |-unknown Version|1.6-rc5 |1.6-rc4
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2013-07-18 06:43:02 CDT --- Please don't change the original reported version.
We cannot assume the problem is in ntdll, maybe a fourth thread died holding the lock.
http://bugs.winehq.org/show_bug.cgi?id=33528
daniel.hornung@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.hornung@gmx.de
--- Comment #8 from daniel.hornung@gmx.de --- I can confirm this bug in Wine 1.6.1 (Gentoo). No backtrace unfortunately, but this console output:
err:ntdll:RtlpWaitForCriticalSection section 0x110060 "/tmp/portage/app-emulation/wine-1.6.1/work/wine-1.6.1/dlls/ntdll/heap.c: main process heap section" wait timed out in thread 002f, blocked by 0028, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x110060 "/tmp/portage/app-emulation/wine-1.6.1/work/wine-1.6.1/dlls/ntdll/heap.c: main process heap section" wait timed out in thread 002c, blocked by 0028, retrying (60 sec) ^Cfixme:console:CONSOLE_DefaultHandler Terminating process 27 on event 0 fixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0 err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception. wine client error:28: write: Bad file descriptor
https://bugs.winehq.org/show_bug.cgi?id=33528
kalab.oto@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kalab.oto@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=33528
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #9 from hanska2@luukku.com --- You should retry with 1.7.26 wine or git version...1.61 is becoming an old.
https://bugs.winehq.org/show_bug.cgi?id=33528
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com --- I could not reproduce this in wine 1.7.29, for now I'm resolving as fixed, if anyone can still reproduce feel free to reopen.
https://bugs.winehq.org/show_bug.cgi?id=33528
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.30.
https://bugs.winehq.org/show_bug.cgi?id=33528
3ter.von@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |3ter.von@gmail.com
--- Comment #12 from 3ter.von@gmail.com --- Created attachment 59482 --> https://bugs.winehq.org/attachment.cgi?id=59482 wine log
https://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #13 from 3ter.von@gmail.com --- I have this issue with wine 2.0.2.
https://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #14 from 3ter.von@gmail.com --- its easier to reproduce in the first bonus level.
https://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #15 from 3ter.von@gmail.com --- Created attachment 59486 --> https://bugs.winehq.org/attachment.cgi?id=59486 another (maybe unrelated) error.
this happened on a bonus map with much action going on.
https://bugs.winehq.org/show_bug.cgi?id=33528
--- Comment #16 from 3ter.von@gmail.com --- Created attachment 59487 --> https://bugs.winehq.org/attachment.cgi?id=59487 wines output with the new error