Opened 12 years ago

Closed 12 years ago

#1233 closed bug (fixed)

Prefs Sounds application crash

Reported by: cebif Owned by: korli
Priority: normal Milestone: R1
Component: Kits/Game Kit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

While playing boot Bestartup.aiff file in preferences/sounds, sound preferences crashed. I had just copied the sound file over from Beos R4.5 CD, into a folder /sounds, that I created in /boot/beos/etc.

  1. Open prefs/sounds from the Deskbar.
  2. Click on a type of sound in the Sounds window.
  3. Assign a sound to it such as BeStartup or any preferred.
  4. Click play, the sound plays then Sounds crashes.

The expected result is any sound should play without crashing. This is reproduceable every time.

If I play some wav music tracks copied from a audio CD, there is no problem using Media Player.

Attachments (2)

Haiku Sounds Crash Debug Info (2.2 KB) - added by cebif 12 years ago.
gdb debug and a bactrace (3.3 KB) - added by cebif 12 years ago.

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by cebif

comment:1 Changed 12 years ago by cebif

I was using the r21175_raw.tar.bz2 on itś own partition. Also added an attachment.

comment:2 Changed 12 years ago by marcusoverhagen

Owner: marcusoverhagen deleted

Changed 12 years ago by cebif

Attachment: gdb debug and a bactrace added

comment:3 Changed 12 years ago by cebif

I have made the bug to happen again. This time with a backtrace added to the gdb debug info.

comment:4 Changed 12 years ago by jackburton

Component: - Preferences/SoundsKits/Game Kit

The problem seems to lie in the game kit's BFileGameSound. Switching component...

comment:5 Changed 12 years ago by marcusoverhagen

Owner: set to korli

Reassigning this bug to korli, as he did the most recent work on game sounds, perhaps he can help fixing this problem.

comment:6 Changed 12 years ago by jackburton

I had a look at BFileGameSound::FillBuffer(). It seems it doesn't handle a NULL buffer gracefully. Actually I don't know if it should at all (in this case, the problem would be in the calling method).

comment:7 Changed 12 years ago by cebif

Just to add some more concerning this bug which is probably part of the same bug or connected, If I select a sound in preferences/sounds but do not play it, then reboot, no startup sound plays. I then go to the sounds application and the startup sound I chose is not selected anymore.

comment:8 Changed 12 years ago by korli

Status: newassigned

Please test with revision 21221.

comment:9 Changed 12 years ago by cebif

I tested with hrev21231. Could not see hrev21221 on the list. Sounds do not crash if I play a *.wav file but the whole system crashes when playing *.aiff files. They play then the keyboard locks up and a little time after that the mouse locks up. Using media player the same thing happens.

comment:10 Changed 12 years ago by cebif

Just a slight correction to my last comment. The media player does not exactly lock the mouse when playing *.aiff files. I can still move the pointer around but cannot click to activate anything and the context menu does not work either.

comment:11 Changed 12 years ago by korli

Resolution: fixed
Status: assignedclosed

Could I suggest to open a new bug for aiff files ? Thanks.

Note: See TracTickets for help on using tickets.