http://bugs.winehq.org/show_bug.cgi?id=22622
Summary: Unigine Heaven 2 benchmark hangs on exit Product: Wine Version: 1.1.44 Platform: x86 URL: http://unigine.com/products/heaven/ OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
With wine-1.1.44, it seems Heaven hangs frequently on exit, in both the d3d9 and gl variants. It even hangs if you quit manually shortly after starting.
Oddly, the hung process doesn't show up in winedbg's btall.
I'm pretty sure this wasn't happening on git as of a few days ago.
http://bugs.winehq.org/show_bug.cgi?id=22622
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #1 from Dan Kegel dank@kegel.com 2010-05-07 19:17:13 --- Give it 20 seconds - it takes 10 seconds to exit even on Windows.
http://bugs.winehq.org/show_bug.cgi?id=22622
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |
--- Comment #2 from Dan Kegel dank@kegel.com 2010-05-07 20:35:55 --- Nope, it just doesn't happen every time. I gave it 30 minutes this time, and it's still hung.
http://bugs.winehq.org/show_bug.cgi?id=22622
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org Component|-unknown |openal32
--- Comment #3 from Dan Kegel dank@kegel.com 2010-05-07 23:00:24 --- This time it busywaited on exit, and "bt all" actually showed something; it seems two threads are trying to close openal at the same time... one in SleepEx! Setting component to openal.
Backtracing for thread 0020 in process 000d (C:\Program Files\Unigine\Heaven\Heaven.exe): Backtrace: =>0 GLIBC_2+0x830() in ld-linux.so.2 1 in libopenal.so.1 (+0x1e4cf) 2 in libopenal.so.1 (+0x1fce1) 3 alcCloseDevice+0xbe() in libopenal.so.1 4 wine_alcCloseDevice+0x1c(device=0xa) [dlls/openal32/openal.c:228] in openal32 5 SleepEx+0x40(timeout=<register ECX not accessible in this frame>, alertable=<register EAX not accessible in this frame>) [dlls/kernel32/sync.c:108] in kernel32 6 Sleep+0x24(timeout=0x1001a197) [dlls/kernel32/sync.c:97] in kernel32 7 in unigine_x86 (+0x1a41d)
Backtracing for thread 000c in process 000d (C:\Program Files\Unigine\Heaven\Heaven.exe): =>0 GLIBC_2+0x830() in ld-linux.so.2 1 in libopenal.so.1 (+0x1e4cf) 2 in libopenal.so.1 (+0x1fce1) 3 alcCloseDevice+0xbe() in libopenal.so.1 4 wine_alcCloseDevice+0x1c(device=0x7c24b6a8) [dlls/openal32/openal.c:228] in openal32 5 in libopenal.so.1 (+0x1e4cf) 6 alcCloseDevice+0xbe() in libopenal.so.1 7 wine_alcCloseDevice+0x1c(device=0x7c24c9f8) [dlls/openal32/openal.c:228] in openal32 8 in libopenal.so.1 (+0x1fce1) 9 wine_alcCloseDevice+0x1c(device=0x7c24c9f8) [dlls/openal32/openal.c:228] in openal32 10 alcCloseDevice+0xbe() in libopenal.so.1 11 in unigine_x86 (+0x2d1d3c)
http://bugs.winehq.org/show_bug.cgi?id=22622
--- Comment #4 from Dan Kegel dank@kegel.com 2010-05-08 09:16:07 --- Ran again. Again got the livelock (Heaven.exe using 100% of CPU on exit). I did "sudo apt-get install libopenal1-dbg" to get symbols for openal, then reran bt all. Here are the more detailed backtraces of the two threads left in Heaven.exe:
Backtracing for thread 0032 in process 0036 (C:\Program Files\Unigine\Heaven\Heaven.exe): Backtrace: =>0 GLIBC_2+0x830() in ld-linux.so.2 (0x0032fcec) (pthread_join?) 1 StopThread+0x2f(thread=(nil)) [openal-soft-1.8.466/Alc/alcThread.c:120] in libopenal.so.1 2 SleepEx+0x40(timeout=0, alertable=0xfffffffffffffffc) [dlls/kernel32/sync.c:108] in kernel32 3 Sleep+0x24(timeout=0x000a) [dlls/kernel32/sync.c:97] in kernel32 4 in unigine_x86 (+0x1a41d)
Backtracing for thread 001b in process 0036 (C:\Program Files\Unigine\Heaven\Heaven.exe): Backtrace: =>0 GLIBC_2+0x830() in ld-linux.so.2 (0x0032fcec) (pthread_join?) 1 StopThread+0x2f(thread=0x7e613b70) [openal-soft-1.8.466/Alc/alcThread.c:120] in libopenal.so.1 2 StopThread+0x2f(thread=0x7d566240) [openal-soft-1.8.466/Alc/alcThread.c:120] in libopenal.so.1 3 alsa_close_playback+0x31(device=0x7d54a8a8) [openal-soft-1.8.466/Alc/alsa.c:529] in libopenal.so.1 4 alcCloseDevice+0xbe(pDevice=0x7d54a8a8) [openal-soft-1.8.466/Alc/ALc.c:1349] in libopenal.so.1 5 wine_alcCloseDevice+0x1c(device=0x7d54a8a8) [dlls/openal32/openal.c:228] in openal32 6 in unigine_x86 (+0x2d1d3c)
http://bugs.winehq.org/show_bug.cgi?id=22622
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |m.b.lankhorst@gmail.com
--- Comment #5 from Maarten Lankhorst m.b.lankhorst@gmail.com 2010-05-09 02:17:24 --- Hi Dan,
Does changing wine_alcCloseDevice to this work around this hang?
{ ALCboolean ret; EnterCriticalSection(&openal_cs); ret = alcCloseDevice(device); LeaveCriticalSection(&openal_cs); return ret; }
http://bugs.winehq.org/show_bug.cgi?id=22622
--- Comment #6 from Dan Kegel dank@kegel.com 2010-05-09 17:55:25 --- Doesn't seem to.
http://bugs.winehq.org/show_bug.cgi?id=22622
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #7 from joaopa jeremielapuree@yahoo.fr 2011-07-09 23:20:43 CDT --- stil a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=22622
John P Sims jsims2359@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jsims2359@gmail.com
--- Comment #8 from John P Sims jsims2359@gmail.com 2012-04-01 00:10:49 CDT --- In wine 1.5.1, Unigine Heaven 3.0 does not crash. Dan, can you retest with version 2.0?
http://bugs.winehq.org/show_bug.cgi?id=22622
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #9 from Dan Kegel dank@kegel.com 2012-04-01 11:56:25 CDT --- You can still download the app with "winetricks unigine_heaven". And it no longer hangs or crashes on exit!
http://bugs.winehq.org/show_bug.cgi?id=22622
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2012-04-13 13:29:10 CDT --- Closing bugs fixed in 1.5.2.