http://bugs.winehq.org/show_bug.cgi?id=22302
Summary: Crash to Desktop with various side-effects. Product: Wine Version: 1.1.41 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: linards.liepins@gmail.com
Created an attachment (id=27256) --> (http://bugs.winehq.org/attachment.cgi?id=27256) Terminal error without Wine-Dbg.
Application crashes to Desktop without any error messages if I launch it from Wine ( Applications ) Menu. Terminal: 1) If I try to run it through terminal, application crashes instantly with Fatal Error message. 2) If I try to run application with command "wine winedbg application_name.exe", Wine-Dbg cannot run correctly I must Quit it from terminal to launch game. Error log #1 is for 1) Error log #2 is for 2) Error log #3 is to show that I could not manage to attach to PID to get full backtrace.
http://bugs.winehq.org/show_bug.cgi?id=22302
Linards linards.liepins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #27256|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #1 from Linards linards.liepins@gmail.com 2010-04-07 10:03:58 --- Created an attachment (id=27257) --> (http://bugs.winehq.org/attachment.cgi?id=27257) Terminal error with Wine-Dbg.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #2 from Linards linards.liepins@gmail.com 2010-04-07 10:05:23 --- Created an attachment (id=27258) --> (http://bugs.winehq.org/attachment.cgi?id=27258) Wine-Dbg unattachanble to PID.
Tried various commands. No luck.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-07 10:11:16 --- http://wiki.winehq.org/FAQ#run_from_terminal
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.762)
Try to install it with winetrics.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-07 10:11:58 --- What application is that?
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #5 from Linards linards.liepins@gmail.com 2010-04-07 10:14:25 --- Application: Alien Dominion: The Acronian Encounter URL: www.blackfiregames.com
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #6 from Linards linards.liepins@gmail.com 2010-04-07 10:17:06 --- Created an attachment (id=27259) --> (http://bugs.winehq.org/attachment.cgi?id=27259) Wine-Dbg all PID backtrace.
Hope this kinda help.
http://bugs.winehq.org/show_bug.cgi?id=22302
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Crash to Desktop with |Alien Dominion: The |various side-effects. |Acronian Encounter crashes
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-07 10:20:00 --- Start with attaching plain terminal output including a backtrace.
http://bugs.winehq.org/show_bug.cgi?id=22302
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #27259|application/octet-stream |text/plain mime type| | Attachment #27259|log 4 |log4.txt filename| |
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #8 from Linards linards.liepins@gmail.com 2010-04-07 10:40:37 --- Winetricks ( PlayOnLinux ) causes same - non-errored - instant - crash to Desktop.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #9 from Linards linards.liepins@gmail.com 2010-04-07 11:16:01 --- Created an attachment (id=27261) --> (http://bugs.winehq.org/attachment.cgi?id=27261) Full Backtrace.
This should be fine?
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #10 from Juan Lang juan_lang@yahoo.com 2010-04-07 11:37:48 --- prohlp02.sys is part of the StarForce driver. Probably a dup of bug 3260.
http://bugs.winehq.org/show_bug.cgi?id=22302
Roberto blackfire@blackfiregames.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |blackfire@blackfiregames.co | |m
--- Comment #11 from Roberto blackfire@blackfiregames.com 2010-04-07 18:02:00 --- Hi! Sorry to barge in the disscussion uninvited.
My name is Roberto Koci, the creator of "Alien Dominion: The Acronian Encounter". I see you guys have problem with the starforce protection system. :o)
Well, I can help you with this: A.D. does not use starforce. :o)
Here are quotes from the log file I find suspicious:
err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element fixme:mixer:ALSA_MixerInit No master control found on HDA ATI HDMI, disabling mixer fixme:mixer:ALSA_MixerInit No master control found on Logitech EasyCall Speakerphone, disabling mixer
and later:
***************************************** *** --- Initialising OgreOggSound --- *** *** --- OgreOggSound v1.11 --- *** ***************************************** bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111)
A.D. uses OpenAL for sound output, and it looks it can't initalize it. Right after that last line quoted of the log file I see the engine is starting the deinit process, so I'm sure that is the problem.
Make sure that the OpenAL installs itself when the AD installer is finishing. I set it to silent mode, so to make sure it works you need to manually run it's installer from the "Alien dominion install folder"\Redist\OpenAL\oalinst.exe.
Hope this helps. And if not, we can look further. Feel free to contact me at blackfire@blackfiregames.com.
Once you get this running, you are free to popularize "Alien Dominion" a bit. Maybe post a nice comment about it on some forums. :o)
Sincerely, Roberto Koci CEO of Black Fire Games
P.S. first time I saw the log file (I found that first) I was thinking that you were hackers trying to crack my game... hehehehe! Yeah, keeping a close eye on those guys, need to protect myself...
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-07 19:55:26 --- Wine redirects all OpenAL calls to system's OpenAL library. I'm guessing you have not properly configured it or you have too old version of OpenAL installed.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #13 from Linards linards.liepins@gmail.com 2010-04-08 01:23:56 --- aDDITIONAL sOFTWARE VERSIONS USED: MS VC++ 2008 Redist - 9.0.30729 OpenAL - 2.0.7.0
Besides - too bad Wine and Ubuntu does not support Windows NTFS OLE and COM+ Storage reading ... it would be great to retrieve atlease standard NTFS 4.x data from file...
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #14 from Linards linards.liepins@gmail.com 2010-04-08 09:09:47 --- Maybe this bugs should finally be fixed or atleast workaround made?
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #15 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-08 09:34:29 --- (In reply to comment #14)
Please try with a clean ~/.wine, looks like you have a lot of unrelated stuff in there which actively breaks your setup.
Maybe this bugs should finally be fixed or atleast workaround made?
Feel free to work on this bug, the source is there.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #16 from Roberto blackfire@blackfiregames.com 2010-04-08 11:15:48 --- I'm using OpenAL ver. 6.14.357.24. in software mode. Some cards have problems with the full HW mode enabled, so I just told OpenAL to run it in soft mode. OpenAL was integrated to Ogre3D using OggOgreSound: http://www.ogre3d.org/addonforums/viewforum.php?f=19
The game has been tested on wide range of HW and the sound worked fine on WinXP, Vista and Win7.
Let me know what other info would help. I can give you the lines of code where I init the sound, and the rest is done internally by the OggOgreSound add-on.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #17 from Roberto blackfire@blackfiregames.com 2010-04-11 09:36:05 --- Hi!
I have never used Linux before, but I see that people have some issues in Windows Vista and 7 with access rights. Namely, the "Program Files" folder seems to be locked for writing and creating files on some systems and a solution for this is to copy or install the game in a folder that is not in the "Program Files" structure. I'll see to post some more pointers when I get an idea.
Please let me know if any of the suggested solutions did help.
Sincerely, Roberto
http://bugs.winehq.org/show_bug.cgi?id=22302
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #18 from GyB gyebro69@gmail.com 2010-04-18 07:22:32 --- I can confirm, the game quits silently on the loading screen. Tested in a clean Wine-1.1.43 environment.
Workaround: manually set 'openal32.dll' to native in winecfg's libraries tab. The game automatically installs OpenAl, overwriting Wine's built-in dll. Your only task is to set the dll to native and the game starts up correctly.
http://bugs.winehq.org/show_bug.cgi?id=22302
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org Component|-unknown |openal32
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #19 from GyB gyebro69@gmail.com 2010-04-18 11:13:20 --- Link to the demo for testing: http://www.gamershell.com/download_57942.shtml
http://bugs.winehq.org/show_bug.cgi?id=22302
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #20 from Wylda wylda@volny.cz 2010-04-18 13:35:15 --- (In reply to comment #18)
...Your only task is to set the dll to native and the game starts up correctly.
Then this is duplicate of bug 20799. I will probably change the subject, because more and more games are hitting this bug.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #21 from Roberto blackfire@blackfiregames.com 2010-04-18 13:52:15 --- Hi!
Does this make A.D. run on Wine under Linux? Or I need to create an installer that does not have OpenAL included in the installer and declare it a "Linux Wine compatible installer"?
Please advise. I would like it to run on Wine too.
Thanks, Roberto Koci CEO of Black Fire Games
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #22 from Wylda wylda@volny.cz 2010-04-18 14:36:07 --- (In reply to comment #21)
Hi!
Does this make A.D. run on Wine under Linux?
Hi Roberto, i gave it quick shoot under wine-1.1.43 and if you run the game the way, it uses native OpenAL not the wine's/linux than it runs fine, i.e. run:
WINEDLLOVERRIDES="openal32=n;" wine AD.exe
Of course, i've never seen your game under Windows, so i can't say if everything is displayed correctly, but from 5min gaming, following works: * intro * game play - shooting some spaceships, got few of them down :) * sound * mouse control
Or I need to create an installer that does not have OpenAL included in the installer and declare it a "Linux Wine compatible installer"?
I would be much happier, if you could help with the root case - why OpenAL32 dies under Wine, i.e. gave us some extra logging were the wine stops responding or sends some nonsenses etc. It would not be for me - i'm not developer, but i think it would help the involved developers.
Or maybe even better, provide some piece of code which makes initializations (because it freezes on start up) as a test case.
http://bugs.winehq.org/show_bug.cgi?id=22302
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Ever Confirmed|0 |1
--- Comment #23 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-04-18 16:33:39 --- I don't know anything about openal32, but the lag is pretty short:
0009:Call openal32.alcGetString(00000000,00001005) ret=100080d9 bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) 0009:Ret openal32.alcGetString() retval=7c6752c0 ret=100080d9 0009:Call openal32.alcGetIntegerv(00000000,00001000,00000004,0032f418) ret=100080f3 0009:Ret openal32.alcGetIntegerv() retval=00000000 ret=100080f3 0009:Call openal32.alGetError() ret=100080fc 0009:Ret openal32.alGetError() retval=0000a004 ret=100080fc 0009:Call ntdll.RtlAllocateHeap(00a0e000,00000000,00000030) ret=78583a58 0009:Ret ntdll.RtlAllocateHeap() retval=00a6d558 ret=78583a58 0009:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0032f390) ret=7857dbf9 0009:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b8367f2 ip=7b8367f2 tid=0009
If i get it correctly from openal-documentation it tries to find the major version with alcGetIntegerv, but then somehow fails. Hacking alGetError() to return 0 (AL_NO_ERROR) makes the game start fine. So the question is why alGetError() returns 0x000a004 (which seems to be AL_INVALID_OPERATION). Maybe this needs to be fixed on the Linux-openal side (?)
http://bugs.winehq.org/show_bug.cgi?id=22302
Chris chris.kcat@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chris.kcat@gmail.com
--- Comment #24 from Chris chris.kcat@gmail.com 2010-04-23 22:43:14 --- (In reply to comment #23)
I don't know anything about openal32, but the lag is pretty short:
...
If i get it correctly from openal-documentation it tries to find the major version with alcGetIntegerv, but then somehow fails. Hacking alGetError() to return 0 (AL_NO_ERROR) makes the game start fine. So the question is why alGetError() returns 0x000a004 (which seems to be AL_INVALID_OPERATION). Maybe this needs to be fixed on the Linux-openal side (?)
Hi.
I've seen a similar issue once before (coincidentally, another game that also uses Ogre in Windows), and it is a separate issue from the one in bug 20799. The problem here seems to be that the app is (incorrectly) checking alGetError for an error generated by alcGetIntegerv, and raises an exception if it doesn't return AL_NO_ERROR. However, the alcGetError function is supposed to be used, being passed the same device, for testing previous alc* function calls. Further, alGetError is supposed to work on the current context, so it's generating an AL_INVALID_OPERATION error for being called without a context.
For some reason, Creative's OpenAL32 DLL will always return AL_NO_ERROR if alGetError is called without a context set, regardless of previous calls. Eg:
ALuint source; alcMakeContextCurrent(NULL); alGenSources(1, &source); if(alGetError() != AL_NO_ERROR) ...
Will not report any problems even though alGenSources couldn't do anything and left 'source' as random junk. OpenAL Soft is more strict about this, and you'd see the same problem using its OpenAL32.dll in place of Creative's.
There's two ways I can think of to solve it on this side. One would be to patch Wine's DLL thunk to do:
ALenum CDECL wine_alGetError(ALvoid) { if(alcGetCurrentContext() == NULL) return AL_NO_ERROR; return alGetError(); }
And that will replicate the behavior of Creative's DLL. The other option is to modify OpenAL Soft so the NULL context has its own error state, and set an error if any other al* calls are made without a context set. Neither option is especially pretty, IMO, as its technically against spec. The best option would be to fix the application, if possible.
http://bugs.winehq.org/show_bug.cgi?id=22302
--- Comment #25 from Wylda wylda@volny.cz 2010-04-25 05:04:34 ---
Thanks Chris for analysis.
Thus this bug report should be closed, as Alien Dominion uses invalid OpenAL initialization.
http://bugs.winehq.org/show_bug.cgi?id=22302
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #26 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-26 00:54:45 --- Invalid then.
http://bugs.winehq.org/show_bug.cgi?id=22302
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #27 from Dmitry Timoshkov dmitry@codeweavers.com 2010-04-26 00:54:58 --- Closing invalid.