[haiku] Re: Sound problem causing freeze

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sat, 13 Jun 2009 15:25:28 +0200

Hi,

On 2009-06-13 at 14:02:20 [+0200], j s <jsvader@xxxxxxxxx> wrote:
> A while back I wrote a game using a direct window. I've had a few fun and 
> games getting  it running again - I had to change MessageReceived to 
> MouseDown (probably the correct way anyway). Anyway, the game runs now - 
> although I can't seem to get the cursor working properly. The biggest 
> problem is I use a game sound (screeching tyres) which freezes the system 
> when it reaches the end. Normally it doesn't reach the end (ie the car 
> stops sliding). There is no debug as the system completely freezes - 
> needs a power cycle to reboot.
> 
> Is there something that I now need to do that previously worked? Similar 
> to the MessageReceived to MouseUp/Down issue. I wouldn't rule out bad 
> practice which was less problematic in a previous life :^)

In principle, everything that used to work is supposed to work still. :-) 
But it will be easier to track down the problem if you post code. If you 
don't want to do that, you are probably the best person to track down the 
problem. For that I'd recommend setting up the Haiku source tree on Haiku, 
placing a link to the generated libgame.so in your applications ./lib 
folder and start adding debug output to the problematic API implementations 
that you use. Then your application will run your modified libgame.so with 
the debug output and you are hopefully able to track it down. The "complete 
freeze" sounds more like your BDirectWindow is blocking the app_server. But 
if some media_addon_server realtime thread is caught up in a loop, it may 
also look like a complete system freeze. Usually, you should still be able 
to press F12 to enter the kernel debugger.

> PS I hope to release the game soon - well at least for others to test.

Mhhmm yummie! Screeching tyres... sounds fun! :-D

Best regards,
-Stephan

Other related posts: