Crash during the playing of a sound

Bug #705892 reported by Yaio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
Unassigned

Bug Description

I've this code (executed by a daily build of Panda):

import direct.directbase.DirectStart
loader.loadSfx( 'explosion.ogg' ).play()
run()

(the file explosion.ogg is attached). It works correctly on OSX. On Windows (Seven 64 bit), it crashes and I get:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
AL lib: ALc.c:1879: exit(): closing 1 Device
AL lib: ALc.c:1808: alcCloseDevice(): destroying 1 Context(s)

On Ubuntu (Lucid 64 bit), it crashes and I get:

terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc
Aborted

With other files that code works.
Thanks!

Tags: openal
Revision history for this message
Yaio (yaio79) wrote :
Revision history for this message
Yaio (yaio79) wrote :
Revision history for this message
rdb (rdb) wrote :

Does this issue still occur in 1.7.1?

Revision history for this message
Yaio (yaio79) wrote :

Yes, if I execute the attached program I obtain (with 1.7.1):

$ python main.py
DirectStart: Starting the game.
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc
Aborted

rdb (rdb)
tags: added: openal
Revision history for this message
rdb (rdb) wrote :

No longer occurs in 1.9, I believe.

Changed in panda3d:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers