http://bugs.winehq.org/show_bug.cgi?id=25633
Summary: Chip's Challenge crashes Wine after about 10 minutes of gameplay. Product: Wine Version: 1.3.9 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: turbolad995@hotmail.co.uk
Created an attachment (id=32645) --> (http://bugs.winehq.org/attachment.cgi?id=32645) Output in the Wine Debugger when Chip's Challenge crashes Wine.
If you play Chip's Challenge for approximately 10 minutes, Wine totally crashes.
Download Chip's Challenge here: http://www.freewebs.com/chipshome/chips.html
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #1 from David turbolad995@hotmail.co.uk 2010-12-27 19:49:14 CST --- Created an attachment (id=32646) --> (http://bugs.winehq.org/attachment.cgi?id=32646) Output from another crash.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #2 from David turbolad995@hotmail.co.uk 2010-12-27 19:50:43 CST --- *UPDATE* Chip's Challenge will crash Wine if you finish one or more levels. It does not seem to crash Wine if you stay within the same level.
http://bugs.winehq.org/show_bug.cgi?id=25633
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Severity|major |normal
--- Comment #3 from Austin English austinenglish@gmail.com 2010-12-28 02:29:12 CST --- Not major
http://bugs.winehq.org/show_bug.cgi?id=25633
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #4 from Raymond superquad.vortex2@gmail.com 2010-12-29 19:58:17 CST --- do you have a wavetable synth card since the background music is midi and the sound effects are wav files ?
you can hear both music and sound effects at the same time when you have a SB Live! emu10k1 after loading the sf2 soundfont
what is your alsa "default" device ?
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #5 from David turbolad995@hotmail.co.uk 2010-12-30 19:08:48 CST --- (In reply to comment #4)
do you have a wavetable synth card since the background music is midi and the sound effects are wav files ?
you can hear both music and sound effects at the same time when you have a SB Live! emu10k1 after loading the sf2 soundfont
what is your alsa "default" device ?
Don't know, that's too technical for me to understand and answer. I have found that the background music won't play, so maybe a workaround for now is to untick the option "Background Music" in the "Options" menu? That seems to stop this game from crashing - for now anyway. Don't know if that's a permanent workaround?
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #6 from David turbolad995@hotmail.co.uk 2011-01-02 19:43:53 CST --- Created an attachment (id=32706) --> (http://bugs.winehq.org/attachment.cgi?id=32706) Crash when only sound effects are enabled
In the "Options" in Chip's Challenge, the "Background Music" was not enabled, but the "Sound Effects" were enabled.
Maybe having both sound options disabled could stop the game crashing?
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #7 from Raymond superquad.vortex2@gmail.com 2011-01-02 19:54:53 CST --- you have to provide debug log with WINEDEBUG=+wave
the current implementation of winealsa does not allow two effect sound play at the same time since winealsa does not support multiple waveoutopen
may be you can try to use "plug:dmix" and waveout.c in
http://bugs.winehq.org/show_bug.cgi?id=22880 #c41
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #8 from David turbolad995@hotmail.co.uk 2011-01-04 07:24:45 CST --- WORKAROUND: disable all sounds in the game, in the "Options" menu. This will stop Wine from crashing when you use it to play Chip's Challenge.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #9 from Raymond superquad.vortex2@gmail.com 2011-01-04 18:45:59 CST --- what is your sound card ?
I get some error message with plughw:1 HDA Intel
trace:wave:wodOpen (0, 0x8ce750, 00030008); trace:wave:wodOpen Requested this format: 11025x8x1 WAVE_FORMAT_PCM trace:wave:wodOpen Got this format: 11025x8x1 WAVE_FORMAT_PCM warn:wave:wodOpen unable to set buffer time: Invalid argument trace:wave:ALSA_wodMessage (0, WODM_OPEN, 008CE698, 008CE700, 00030008); trace:wave:wodOpen (0, 0x8ce700, 00030008); trace:wave:wodOpen Requested this format: 11025x16x1 WAVE_FORMAT_PCM trace:wave:wodOpen Got this format: 11025x16x1 WAVE_FORMAT_PCM warn:wave:wodOpen unable to set buffer time: Invalid argument
export LIBASOUND_DEBUG=1
ALSA ERROR hw_params: set_near (BUFFER_TIME) value = 120000 : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: U8 SUBFORMAT: STD SAMPLE_BITS: 8 FRAME_BITS: 8 CHANNELS: 1 RATE: 11025 PERIOD_TIME: (11972 14513) PERIOD_SIZE: NONE PERIOD_BYTES: [32 640] PERIODS: (2 41] BUFFER_TIME: (119002 119003) BUFFER_SIZE: 1312 BUFFER_BYTES: 1312 TICK_TIME: ALL ALSA ERROR hw_params: set_near (BUFFER_TIME) value = 120000 : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 16 CHANNELS: 1 RATE: 11025 PERIOD_TIME: (11972 14513) PERIOD_SIZE: NONE PERIOD_BYTES: [64 1280] PERIODS: (2 41] BUFFER_TIME: (119002 119003) BUFFER_SIZE: 1312 BUFFER_BYTES: 2624 TICK_TIME: ALL ALSA ERROR hw_params: set_near (BUFFER_TIME) value = 120000 : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: U8 SUBFORMAT: STD SAMPLE_BITS: 8 FRAME_BITS: 8 CHANNELS: 1 RATE: 11025 PERIOD_TIME: (11972 14513) PERIOD_SIZE: NONE PERIOD_BYTES: [32 640] PERIODS: (2 41] BUFFER_TIME: (119002 119003) BUFFER_SIZE: 1312 BUFFER_BYTES: 1312 TICK_TIME: ALL ALSA ERROR hw_params: set_near (BUFFER_TIME) value = 120000 : Invalid argument ACCESS: MMAP_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 16 CHANNELS: 1 RATE: 11025 PERIOD_TIME: (11972 14513) PERIOD_SIZE: NONE PERIOD_BYTES: [64 1280] PERIODS: (2 41] BUFFER_TIME: (119002 119003) BUFFER_SIZE: 1312 BUFFER_BYTES: 2624 TICK_TIME: ALL
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #10 from David turbolad995@hotmail.co.uk 2011-01-06 07:39:22 CST --- @Raymond
I'm a non-technical user of Wine. All I can do is report problems as they happen and copy and paste lines of error messages into text files and upload. Anything more I can't help with as I don't have the technical knowledge.
My sound card is one built into the motherboard that works fine. It appears Wine doesn't like the sound in Chip's Challenge.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #11 from Raymond superquad.vortex2@gmail.com 2011-01-07 01:19:55 CST --- To find out which sound card
aplay -l
aplay can play chips 's audio file
aplay -v -Dplughw:0 DOOR.WAV
aplay -v -Ddefault DOOR.WAV
but winealsa fail to play those file when using "plughw:0"
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #12 from David turbolad995@hotmail.co.uk 2011-01-07 06:23:58 CST --- Created an attachment (id=32753) --> (http://bugs.winehq.org/attachment.cgi?id=32753) Sound tests for DOOR.WAV
Followed the instructions and attached output.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #13 from Raymond superquad.vortex2@gmail.com 2011-01-07 08:18:48 CST --- aplay -v -Ddefault DOOR.WAV Playing WAVE 'DOOR.WAV' : Unsigned 8 bit, Rate 11025 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin
if you are using "pulse" as default device
you have to use "WINEDEBUG=+wave" to find out why wine crash
1 0x7e4f574b ALSA_wodMessage+0xa8a() in winealsa (0x0059deb8) 2 0x7e55d20b MMDRV_Message+0xfa() in winmm (0x0059df18) 3 0x7e56f6a2 waveOutReset+0x61() in winmm (0x0059df48) 4 0x7e4ba768 WAVEMAP_wodMessage+0x637() in msacm32 (0x0059e028) 5 0x7e55d20b MMDRV_Message+0xfa() in winmm (0x0059e088) 6 0x7e56f6a2 waveOutReset+0x61() in winmm (0x0059e0b8) 7 0x7e568a7e in winmm (+0x18a7d) (0x0059e118) 8 0x7e568e21 sndPlaySoundA+0x20() in winmm (0x0059e138)
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #14 from David turbolad995@hotmail.co.uk 2011-01-07 19:07:38 CST --- (In reply to comment #13)
aplay -v -Ddefault DOOR.WAV Playing WAVE 'DOOR.WAV' : Unsigned 8 bit, Rate 11025 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin
if you are using "pulse" as default device
you have to use "WINEDEBUG=+wave" to find out why wine crash
1 0x7e4f574b ALSA_wodMessage+0xa8a() in winealsa (0x0059deb8) 2 0x7e55d20b MMDRV_Message+0xfa() in winmm (0x0059df18) 3 0x7e56f6a2 waveOutReset+0x61() in winmm (0x0059df48) 4 0x7e4ba768 WAVEMAP_wodMessage+0x637() in msacm32 (0x0059e028) 5 0x7e55d20b MMDRV_Message+0xfa() in winmm (0x0059e088) 6 0x7e56f6a2 waveOutReset+0x61() in winmm (0x0059e0b8) 7 0x7e568a7e in winmm (+0x18a7d) (0x0059e118) 8 0x7e568e21 sndPlaySoundA+0x20() in winmm (0x0059e138)
I have no idea on how I can help there. Chip's Challenge will work in Wine IF THE SOUND OPTIONS ARE TURNED OFF, otherwise Wine will crash regularly.
I tested this in Ubuntu 10.10 64-bit. The sounds do play fine outside of Wine.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #15 from Raymond superquad.vortex2@gmail.com 2011-01-07 19:53:49 CST --- (In reply to comment #14)
I have no idea on how I can help there. Chip's Challenge will work in Wine IF THE SOUND OPTIONS ARE TURNED OFF, otherwise Wine will crash regularly.
I tested this in Ubuntu 10.10 64-bit. The sounds do play fine outside of Wine.
post the log, need to know whether PA server abort or pulse plugin does not support snd_pcm_drop()
WINEDEBUG=+wave wine chips
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #16 from Raymond superquad.vortex2@gmail.com 2011-01-07 19:56:46 CST --- The easy fix for using "plughw" with chips is reverse the order of set_buffer_time() and set_period_time()
- dir=0; - EXIT_ON_ERROR( snd_pcm_hw_params_set_buffer_time_near(pcm, hw_params, &buffer_time, &dir), MMSYSERR_INVALPARAM, "unable to set buffer time"); dir=0; EXIT_ON_ERROR( snd_pcm_hw_params_set_period_time_near(pcm, hw_params, &period_time, &dir), MMSYSERR_INVALPARAM, "unable to set period time"); + dir=0; + EXIT_ON_ERROR( snd_pcm_hw_params_set_buffer_time_near(pcm, hw_params, &buffer_time, &dir), MMSYSERR_INVALPARAM, "unable to set buffer time");
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #17 from David turbolad995@hotmail.co.uk 2011-01-08 06:13:52 CST ---
post the log, need to know whether PA server abort or pulse plugin does not support snd_pcm_drop()
WINEDEBUG=+wave wine chips
Sorry, can't help there. I've reported this bug because the Chip's Challenge game will crash Wine if the sounds are enabled, but it doesn't crash Wine if the sounds are turned off. I'm not an expert at Wine and Linux, just an ordinary user.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #18 from Raymond superquad.vortex2@gmail.com 2011-01-09 01:30:35 CST --- Refer to the author of winepulse 's comment at
http://bugs.winehq.org/show_bug.cgi?id=10495#c144
"The audio api, designed probably in the early 90s for PCs "
"reason is the waveout functions. Through libalsa pulse, calls such as waveOutReset() and waveOutResume() require a reconnection to pulseaudio each call."
This application is 16 bits application in early 90s and your log have numerous waveOutReset()
So the crash is related to wine call snd_pcm_prepare() and this call is translated to "alsa-pulse" plugin 's pulse_prepare() which close the connection to PA server
http://git.alsa-project.org/?p=alsa-plugins.git;a=blob;f=pulse/pcm_pulse.c;h...
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #19 from David turbolad995@hotmail.co.uk 2011-01-10 09:47:53 CST --- (In reply to comment #18)
Refer to the author of winepulse 's comment at
http://bugs.winehq.org/show_bug.cgi?id=10495#c144
"The audio api, designed probably in the early 90s for PCs "
"reason is the waveout functions. Through libalsa pulse, calls such as waveOutReset() and waveOutResume() require a reconnection to pulseaudio each call."
This application is 16 bits application in early 90s and your log have numerous waveOutReset()
So the crash is related to wine call snd_pcm_prepare() and this call is translated to "alsa-pulse" plugin 's pulse_prepare() which close the connection to PA server
http://git.alsa-project.org/?p=alsa-plugins.git;a=blob;f=pulse/pcm_pulse.c;h...
Looks like I've touched on something highly technical. What I can definitely say is that the sound files used by Chip's Challenge do play properly OUTSIDE of Wine. If you enable any of the sound options in Chip's Challenge, Wine will crash regularly - roughly every 10 minutes or so.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #20 from Raymond superquad.vortex2@gmail.com 2011-01-10 17:38:42 CST --- chip challenge seem work normally if you are using "plug:dmix:0" and run a softsynth for the background music
timidity -iA -Os -o plug:dmix:0
so this is a regression because your linux distribution override alsa 's default device by pulse and you cannot use the "default" device in /usr/share/alsa/cards/HDA-Intel.conf for your HDA
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #21 from David turbolad995@hotmail.co.uk 2011-01-11 11:08:42 CST --- I have received a message to say this sound problem with Wine could be caused by PulseAudio in Ubuntu. I cannot provide any more information as I'm still a newbie to all this Linux stuff. I know there are 2 sound systems, possibly more, i.e. PulseAudio and ALSA. I'm also aware that by default, Ubuntu uses PulseAudio.
Hope that helps.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #22 from Raymond superquad.vortex2@gmail.com 2011-01-11 19:59:22 CST --- The problem is pulse_prepare() call pa_stream_disconnect() and reconnect afterward when wine call snd_pcm_prepare()
645 static int pulse_prepare(snd_pcm_ioplug_t * io) 646 {
....
659 if (pcm->stream) { 660 pa_stream_disconnect(pcm->stream); 661 wait_stream_state(pcm, PA_STREAM_TERMINATED); 662 pa_stream_unref(pcm->stream); 663 pcm->stream = NULL; 664 } 665 666 err = pulse_check_connection(pcm->p); 667 if (err < 0) 668 goto finish;
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #23 from David turbolad995@hotmail.co.uk 2011-01-25 18:32:46 CST --- (In reply to comment #22)
The problem is pulse_prepare() call pa_stream_disconnect() and reconnect afterward when wine call snd_pcm_prepare()
645 static int pulse_prepare(snd_pcm_ioplug_t * io) 646 {
....
659 if (pcm->stream) { 660 pa_stream_disconnect(pcm->stream); 661 wait_stream_state(pcm, PA_STREAM_TERMINATED); 662 pa_stream_unref(pcm->stream); 663 pcm->stream = NULL; 664 } 665 666 err = pulse_check_connection(pcm->p); 667 if (err < 0) 668 goto finish;
Okay, it looks like there are indeed sound problems in Wine and if users submit bug reports related to sound, perhaps they are submitting duplicates, which relate to the same sound problems? Bug 23888 is an example.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #24 from Raymond superquad.vortex2@gmail.com 2011-01-25 19:42:43 CST --- (In reply to comment #23)
Okay, it looks like there are indeed sound problems in Wine and if users submit bug reports related to sound, perhaps they are submitting duplicates, which relate to the same sound problems? Bug 23888 is an example.
bug#23888 is related to dsound but chip challenge in this bug by the original reporter is related to bug in "pulse" plugin since chip challenge only use midi and waveoutopen at the same time
I have opened another bug#25859 for waveoutopen cannot play 11025Hz for HDA sound card which support 11025Hz
http://bugs.winehq.org/show_bug.cgi?id=25633
David turbolad995@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #25 from David turbolad995@hotmail.co.uk 2011-07-30 06:58:22 CDT --- I'm aware that Wine version 1.3.25 has improved the sound problems in games such as Lemmix (see Wine bug 22880).
Chip's Challenge no longer crashes when you enable either or both the "Background Music" and/or "Sound Effects".
The sound effects work, but not the background music. About the sound changes in Wine as of 1.3.25 - does it apply to these 16-bit programs? - Chip's Challenge is 16-bit.
I've marked this bug as "RESOLVED" and "FIXED" because the game is no longer crashing when the sound is enabled.
http://bugs.winehq.org/show_bug.cgi?id=25633
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #26 from Alexandre Julliard julliard@winehq.org 2011-08-05 12:39:08 CDT --- Closing bugs fixed in 1.3.26.
http://bugs.winehq.org/show_bug.cgi?id=25633
--- Comment #27 from Raymond superquad.vortex2@gmail.com 2011-09-06 17:31:45 CDT --- (In reply to comment #25)
The sound effects work, but not the background music. About the sound changes in Wine as of 1.3.25 - does it apply to these 16-bit programs? - Chip's Challenge is 16-bit.
you need a sound card which support midi or use softsynth for background music
aplaymidi -l
Port Client name Port name 14:0 Midi Through Midi Through Port-0 17:0 OPL3 FM synth OPL3 FM Port