Commandos Behind Enemy Lines

Questions about Wine on Linux
Locked
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Commandos Behind Enemy Lines

Post by neagix »

Hi there!

I am trying to get Commandos Behind Enemy Lines to work; I am using Ubuntu Wine team PPA.

This is the crash I get (with subsequent video mode staying at 640x480) when running WINEARCH=wine32 wine COMANDOS.EXE:

Code: Select all

fixme:win:EnumDisplayDevicesW ((null),0,0x32eb98,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32eac8,0x00000000), stub!
fixme:ddraw:ddraw7_WaitForVerticalBlank iface 0x133de0, flags 0x1, event (nil) stub!
fixme:amstream:IAMMultiMediaStreamImpl_AddMediaStream Specifying a stream object in params is not yet supported
err:pulse:pulse_contextcallback Context failed: Connection refused
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
wine: Unhandled division by zero at address 0x7c47842e (thread 0009), starting debugger...
Unhandled exception: divide by zero in 32-bit code (0x7c47842e).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7c47842e ESP:0032e280 EBP:0032e328 EFLAGS:00210247(  R- --  I  Z- -P-C)
 EAX:00003c00 EBX:7c498000 ECX:00000000 EDX:00000000
 ESI:001efc10 EDI:001ef8c0
Stack dump:
0x0032e280:  001ef8d8 7c481c10 00000010 00000000
0x0032e290:  00000000 00000000 00000000 001ef8c0
0x0032e2a0:  00000000 00000004 00000000 00004a80
0x0032e2b0:  00000064 00003c00 00008000 00000000
0x0032e2c0:  0032e2e0 7bcc9000 001efdb8 001efdbc
0x0032e2d0:  001efdcc 00000f00 000f2835 00000000
000c: sel=0067 base=00000000 limit=00000000 32-bit r-x
Backtrace:
=>0 0x7c47842e in dsound (+0x1842e) (0x0032e328)
  1 0x7c46e6cf in dsound (+0xe6ce) (0x0032e3a8)
  2 0x7c46ee85 in dsound (+0xee84) (0x0032e3f8)
  3 0x7c46daca DirectSoundCreate8+0x1c9() in dsound (0x0032e468)
  4 0x7c4c59b8 in quartz (+0x159b7) (0x0032e4e8)
  5 0x7c4e0fb8 in quartz (+0x30fb7) (0x0032e558)
  6 0x7e5ecacc CoCreateInstance+0x14b() in ole32 (0x0032e5e8)
  7 0x7db3cc67 in amstream (+0xcc66) (0x0032e678)
  8 0x005f80b2 in comandos (+0x1f80b1) (0x0032eec4)
0x7c47842e: divl	%ecx,%eax
Modules:
Module	Address			Debug info	Name (128 modules)
PE	  400000-  7e9000	Export          comandos
PE	20000000-2002c000	Deferred        mss32
ELF	7a50a000-7a600000	Deferred        libasound.so.2
ELF	7a783000-7a8fb000	Deferred        libvorbisenc.so.2
ELF	7b800000-7ba60000	Deferred        kernel32<elf>
  \-PE	7b810000-7ba60000	\               kernel32
ELF	7bab7000-7bc00000	Deferred        oleaut32<elf>
  \-PE	7bad0000-7bc00000	\               oleaut32
ELF	7bc00000-7bce6000	Deferred        ntdll<elf>
  \-PE	7bc10000-7bce6000	\               ntdll
ELF	7bcfe000-7bd16000	Deferred        libresolv.so.2
ELF	7bd16000-7bd88000	Deferred        libsndfile.so.1
ELF	7bd88000-7bdf7000	Deferred        libpulsecommon-4.0.so
ELF	7bdf7000-7bf00000	Deferred        comctl32<elf>
  \-PE	7be00000-7bf00000	\               comctl32
ELF	7bf00000-7bf04000	Deferred        <wine-loader>
ELF	7bf05000-7bf31000	Deferred        libvorbis.so.0
ELF	7bf31000-7bf65000	Deferred        libflac.so.8
ELF	7bf65000-7bfb4000	Deferred        libpulse.so.0
ELF	7bfd0000-7c000000	Deferred        winealsa<elf>
  \-PE	7bfe0000-7c000000	\               winealsa
ELF	7c408000-7c411000	Deferred        libogg.so.0
ELF	7c411000-7c41b000	Deferred        libwrap.so.0
ELF	7c41b000-7c452000	Deferred        uxtheme<elf>
  \-PE	7c420000-7c452000	\               uxtheme
ELF	7c452000-7c49a000	Dwarf           dsound<elf>
  \-PE	7c460000-7c49a000	\               dsound
ELF	7c49a000-7c593000	Dwarf           quartz<elf>
  \-PE	7c4b0000-7c593000	\               quartz
ELF	7d2f8000-7d32f000	Deferred        libtxc_dxtn.so
ELF	7d32f000-7d336000	Deferred        libasyncns.so.0
ELF	7d336000-7d341000	Deferred        libjson-c.so.2
ELF	7d341000-7d364000	Deferred        mmdevapi<elf>
  \-PE	7d350000-7d364000	\               mmdevapi
ELF	7d377000-7d382000	Deferred        libpciaccess.so.0
ELF	7d382000-7d39f000	Deferred        libgcc_s.so.1
ELF	7d488000-7d497000	Deferred        libdrm_radeon.so.1
ELF	7d497000-7d49f000	Deferred        libdrm_nouveau.so.2
ELF	7d49f000-7d4c1000	Deferred        libdrm_intel.so.1
ELF	7d4c1000-7da34000	Deferred        i965_dri.so
ELF	7da34000-7da3d000	Deferred        librt.so.1
ELF	7da3d000-7da88000	Deferred        libdbus-1.so.3
ELF	7da88000-7da92000	Deferred        libnih-dbus.so.1
ELF	7da92000-7daab000	Deferred        libnih.so.1
ELF	7daab000-7dac9000	Deferred        libcgmanager.so.0
ELF	7dac9000-7dadc000	Deferred        libudev.so.1
ELF	7dadc000-7dae9000	Deferred        libdrm.so.2
ELF	7dae9000-7daec000	Deferred        libxshmfence.so.1
ELF	7daec000-7daf3000	Deferred        libxcb-sync.so.1
ELF	7daf3000-7daf7000	Deferred        libxcb-present.so.0
ELF	7dafd000-7db29000	Deferred        msvfw32<elf>
  \-PE	7db00000-7db29000	\               msvfw32
ELF	7db29000-7db5a000	Dwarf           amstream<elf>
  \-PE	7db30000-7db5a000	\               amstream
ELF	7dc7a000-7dc7e000	Deferred        libxcb-dri3.so.0
ELF	7dc7e000-7dc84000	Deferred        libxcb-dri2.so.0
ELF	7dc84000-7dc9c000	Deferred        libxcb-glx.so.0
ELF	7dc9c000-7dc9f000	Deferred        libx11-xcb.so.1
ELF	7dc9f000-7dca3000	Deferred        libxdamage.so.1
ELF	7dca3000-7dcbb000	Deferred        libglapi.so.0
ELF	7dcbb000-7dd1b000	Deferred        libgl.so.1
ELF	7dd63000-7dd69000	Deferred        libxfixes.so.3
ELF	7dd69000-7dd74000	Deferred        libxcursor.so.1
ELF	7dd74000-7dd85000	Deferred        libxi.so.6
ELF	7dd85000-7dd89000	Deferred        libxcomposite.so.1
ELF	7dd89000-7dd94000	Deferred        libxrandr.so.2
ELF	7dd94000-7dd9f000	Deferred        libxrender.so.1
ELF	7dd9f000-7dda5000	Deferred        libxxf86vm.so.1
ELF	7dda5000-7dda9000	Deferred        libxinerama.so.1
ELF	7dda9000-7ddb0000	Deferred        libxdmcp.so.6
ELF	7ddb0000-7ddb4000	Deferred        libxau.so.6
ELF	7ddb4000-7ddd6000	Deferred        libxcb.so.1
ELF	7ddd6000-7df0a000	Deferred        libx11.so.6
ELF	7df0a000-7df1d000	Deferred        libxext.so.6
ELF	7df41000-7dfd5000	Deferred        winex11<elf>
  \-PE	7df50000-7dfd5000	\               winex11
ELF	7dfd5000-7dffa000	Deferred        imm32<elf>
  \-PE	7dfe0000-7dffa000	\               imm32
ELF	7e028000-7e051000	Deferred        libexpat.so.1
ELF	7e051000-7e08c000	Deferred        libfontconfig.so.1
ELF	7e08c000-7e0b4000	Deferred        libpng12.so.0
ELF	7e0b4000-7e0ce000	Deferred        libz.so.1
ELF	7e0ce000-7e16e000	Deferred        libfreetype.so.6
ELF	7e16e000-7e190000	Deferred        libtinfo.so.5
ELF	7e190000-7e1b5000	Deferred        libncurses.so.5
ELF	7e1d9000-7e40f000	Deferred        shell32<elf>
  \-PE	7e1f0000-7e40f000	\               shell32
ELF	7e40f000-7e489000	Deferred        shlwapi<elf>
  \-PE	7e420000-7e489000	\               shlwapi
ELF	7e489000-7e4b0000	Deferred        iphlpapi<elf>
  \-PE	7e490000-7e4b0000	\               iphlpapi
ELF	7e4b0000-7e4e8000	Deferred        ws2_32<elf>
  \-PE	7e4c0000-7e4e8000	\               ws2_32
ELF	7e4e8000-7e504000	Deferred        wsock32<elf>
  \-PE	7e4f0000-7e504000	\               wsock32
ELF	7e504000-7e52f000	Deferred        msacm32<elf>
  \-PE	7e510000-7e52f000	\               msacm32
ELF	7e52f000-7e5b2000	Deferred        rpcrt4<elf>
  \-PE	7e540000-7e5b2000	\               rpcrt4
ELF	7e5b2000-7e6f4000	Dwarf           ole32<elf>
  \-PE	7e5d0000-7e6f4000	\               ole32
ELF	7e6f4000-7e7ad000	Deferred        winmm<elf>
  \-PE	7e700000-7e7ad000	\               winmm
ELF	7e7ad000-7e909000	Deferred        user32<elf>
  \-PE	7e7c0000-7e909000	\               user32
ELF	7e909000-7e97c000	Deferred        advapi32<elf>
  \-PE	7e920000-7e97c000	\               advapi32
ELF	7e97c000-7ea9b000	Deferred        gdi32<elf>
  \-PE	7e990000-7ea9b000	\               gdi32
ELF	7ea9b000-7ebaa000	Deferred        opengl32<elf>
  \-PE	7eac0000-7ebaa000	\               opengl32
ELF	7ebaa000-7ecee000	Deferred        wined3d<elf>
  \-PE	7ebc0000-7ecee000	\               wined3d
ELF	7ecee000-7ed64000	Deferred        ddraw<elf>
  \-PE	7ed00000-7ed64000	\               ddraw
ELF	7ef64000-7ef71000	Deferred        libnss_files.so.2
ELF	7ef71000-7ef7d000	Deferred        libnss_nis.so.2
ELF	7ef7d000-7ef96000	Deferred        libnsl.so.1
ELF	7ef96000-7efdc000	Deferred        libm.so.6
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f73b6000-f7565000	Deferred        libc.so.6
ELF	f7565000-f756a000	Deferred        libdl.so.2
ELF	f756b000-f7587000	Deferred        libpthread.so.0
ELF	f75a2000-f75ab000	Deferred        libnss_compat.so.2
ELF	f75ab000-f7761000	Dwarf           libwine.so.1
ELF	f7763000-f7785000	Deferred        ld-linux.so.2
ELF	f7785000-f7786000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\games\Commandos, Behind Enemy Lines\COMANDOS.EXE
	00000024    0
	00000023    0
	00000009    0 <==
0000000e services.exe
	0000001c    0
	0000001b    0
	00000016    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001e    0
	00000018    0
	00000017    0
	00000013    0
00000019 plugplay.exe
	0000001f    0
	0000001d    0
	0000001a    0
00000020 explorer.exe
	00000021    0
The crash seems to be at dsound (+0x1842e) (0x0032e328). I am using Windows XP as version (although I think it's not relevant) and purely ALSA (no Pulseaudio is even installed). Shall I better try the non-ubuntu version of Wine to see if problem still happens? Has anybody any help/indication regarding this issue?

Thanks!
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Commandos Behind Enemy Lines

Post by dimesio »

neagix wrote:Shall I better try the non-ubuntu version of Wine to see if problem still happens?
Yes. The Ubuntu packages include unsupported changes to dsound. You will probably have to build Wine yourself; I don't know of any unpatched Wine packages for Ubuntu.
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

dimesio wrote:
neagix wrote:Shall I better try the non-ubuntu version of Wine to see if problem still happens?
Yes. The Ubuntu packages include unsupported changes to dsound. You will probably have to build Wine yourself; I don't know of any unpatched Wine packages for Ubuntu.
Ok, that's not a big issue, I already knew they made specific changes to PA but was wondering if they affected dsound, thanks for confirming.

Can somebody please update this wiki pagep? I registered an user on the wiki but doesn't have any edit rights (would be nice to know this while you're registering).
When it describes the LXC installation, it should also include debootstrap in the packages that need to be installed.
And it should also mention that /var/cache/lxc needs to be on a partition that has exec rights; I bind-mounted mine to be able to continue with the LXC template building.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Commandos Behind Enemy Lines

Post by dimesio »

neagix wrote: Can somebody please update this wiki pagep? I registered an user on the wiki but doesn't have any edit rights (would be nice to know this while you're registering).
You should be able to edit it. What message are you getting when you try?
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

dimesio wrote:
neagix wrote: Can somebody please update this wiki pagep? I registered an user on the wiki but doesn't have any edit rights (would be nice to know this while you're registering).
You should be able to edit it. What message are you getting when you try?
I was simply unable to find the "edit" entry on the left.

I am a bit confused about the discussion of Ubuntu Wine and regular Wine. Does WineHQ handle both? Who does the intake of bugs?

I have found following bugs that seem related to mine:
https://bugs.winehq.org/show_bug.cgi?id=29431
https://bugs.winehq.org/show_bug.cgi?id=34451

And I get same crash with Heroes of Might and Magic 3.

I didn't succeed at building the 32bit version of Wine, perhaps I'll give it another try and also try version 1.5.14 as suggested in the second bug.
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

P.S. can this moderation block be removed? Am I still to be moderated?

P.S. 2: I registered on the bug tracker but still no email received. Is there a problem in the mailer?

Now I have 1 account for forums, wiki, bugtracker..maybe I need another one for AppDB? Two magic words: LDAP/SSO (please) :)
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

Since I cannot see my previous posts (moderation queue, probably) I can't edit them to add an update.

Update: the wiki page does not satisfactorily document how to compile and run Wine on a 64bit system. At some point it says:
To be able to use Wine from outside the chroot, Wine's dependencies must be installed outside the chroot. The easiest way is to exit the chroot and install a prepackaged copy of Wine:
This is false. What if I am building an older version? What if there are subtle library differences that condition the testing result?

Also, the "Manually Linking Libraries Method" is nto guaranteed in the writer's word themselves to be working (and it pollutes /usr/lib with manually created symlinks, bad practice). In these cases I suggest better not document the procedure at all if it's not known to lead to a working/usable wine, or if it's outdated. Why confuse users/developers further?
I think it was written for Ubuntu 12 and should rather be removed now.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Commandos Behind Enemy Lines

Post by dimesio »

neagix wrote: I was simply unable to find the "edit" entry on the left.
You have to be logged in for it to appear.
I am a bit confused about the discussion of Ubuntu Wine and regular Wine. Does WineHQ handle both? Who does the intake of bugs?
Ubuntu packages are known to contain unsupported patches to dsound as well as the winepulse driver, so any sound-related problems need to be checked in plain Wine before reporting those bugs here. If the problem can be reproduced in plain Wine, file a bug here; if not, file a bug with Ubuntu. The other thing that needs to be reported to Ubuntu rather than here are broken binary packages.
P.S. can this moderation block be removed? Am I still to be moderated?
Mandatory moderation ends after three posts are approved, so you should be okay now.
P.S. 2: I registered on the bug tracker but still no email received. Is there a problem in the mailer?
Not that I know of. Check your spam folder.
I think it was written for Ubuntu 12 and should rather be removed now.
Ubuntu 12.04 was an LTS release and still has a lot of users.
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

dimesio wrote:
neagix wrote: I was simply unable to find the "edit" entry on the left.
You have to be logged in for it to appear.
I was, but I didn't see tha area on the left changing with more entries. PEBKAC/UI problem
dimesio wrote:
I am a bit confused about the discussion of Ubuntu Wine and regular Wine. Does WineHQ handle both? Who does the intake of bugs?
Ubuntu packages are known to contain unsupported patches to dsound as well as the winepulse driver, so any sound-related problems need to be checked in plain Wine before reporting those bugs here. If the problem can be reproduced in plain Wine, file a bug here; if not, file a bug with Ubuntu. The other thing that needs to be reported to Ubuntu rather than here are broken binary packages.
I am aware of the situation, however would be nice if both bugtrackers had more information about this split. For example this bug tracker could sport some description about it: https://bugs.launchpad.net/ubuntu/+source/wine
but meh...I know that's not Wine's project one
dimesio wrote:
P.S. can this moderation block be removed? Am I still to be moderated?
Mandatory moderation ends after three posts are approved, so you should be okay now.
Ok, thanks for the info
dimesio wrote:
P.S. 2: I registered on the bug tracker but still no email received. Is there a problem in the mailer?
Not that I know of. Check your spam folder.
Nothing. Although for this mailbox we are in the hands of gmail. Will repeat the procedure.
I think it was written for Ubuntu 12 and should rather be removed now.
Ubuntu 12.04 was an LTS release and still has a lot of users.
Right. Maybe the documentation could sport a header stating clearly "instructions for Ubuntu 12.0 LTS"? The only thing I don't like about how it is right now is that it starts by proposing how to build and use Wine on Ubuntu, but ends up like "use it in the chroot, it's good enough. otherwise good luck". But I don't know how to fix it and let's go back on topic now.. :)
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

I have successfully built current wine master with the schroot method and problem is not present there :)

So, compliments Ubuntu Wine, you broke dsound/ALSA in exchange for PulseAudio. :(

I noticed that wiki page doesn't explain how to build the Ubuntu .deb package, is there other documentation available?
Mankind75
Level 1
Level 1
Posts: 7
Joined: Tue Dec 16, 2014 8:45 am

Re: Commandos Behind Enemy Lines

Post by Mankind75 »

neagix wrote:I have successfully built current wine master with the schroot method and problem is not present there :)
I tried installing the "Commandos Ammo Pack" which I bought from gog.com a couple of days ago. I have an openSUSE "Factory/Tumbleweed" box with wine 1.7.32 and everything seems to work.I didn't try "Multiplayer" and only tried the first mission. But everything seemed to be working well.
neagix
Level 1
Level 1
Posts: 8
Joined: Sat Dec 06, 2014 1:13 pm

Re: Commandos Behind Enemy Lines

Post by neagix »

Mankind75 wrote:
neagix wrote:I have successfully built current wine master with the schroot method and problem is not present there :)
I tried installing the "Commandos Ammo Pack" which I bought from gog.com a couple of days ago. I have an openSUSE "Factory/Tumbleweed" box with wine 1.7.32 and everything seems to work.I didn't try "Multiplayer" and only tried the first mission. But everything seemed to be working well.
That means openSUSE does not mess up the sound stack of wine 1.7. Good!
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Commandos Behind Enemy Lines

Post by dimesio »

neagix wrote:So, compliments Ubuntu Wine, you broke dsound/ALSA in exchange for PulseAudio.
You should report the problem to Maarten Lankhorst.
I noticed that wiki page doesn't explain how to build the Ubuntu .deb package, is there other documentation available?
Package-building is outside the scope of WineHQ. You might want to see what documentation Ubuntu has on building packages.
Right. Maybe the documentation could sport a header stating clearly "instructions for Ubuntu 12.0 LTS"? The only thing I don't like about how it is right now is that it starts by proposing how to build and use Wine on Ubuntu, but ends up like "use it in the chroot, it's good enough. otherwise good luck". But I don't know how to fix it and let's go back on topic now.. :)
I don't use Ubuntu, so I don't know how to fix it, either. There is another wiki page with instructions for building a shared WoW64 setup on Ubuntu that does give instructions for installing outside the LXC container after building. http://wiki.winehq.org/BuildingBiarchWineOnUbuntu
Locked