error???

################################################################
“”" AUDIO “”"
################################################################
soundEffectsMgr = base.sfxManagerList[0]
self.my_model1Action = Audio3DManager.Audio3DManager(base.sfxManagerList[0], self.my_model1)
self.my_model2Action = Audio3DManager.Audio3DManager(base.sfxManagerList[0], self.my_model2)
# Effects
# model1
self.sfx01 = self.my_model1Action.loadSfx(‘sound/action1.MP3’)
self.my_model1Action.attachSoundToObject(self.sfx01, self.my_model1)
self.sfx01.setLoop(0)
# model2
self.sfx02 = self.my_model2Action.loadSfx(‘sound/action2.MP3’)
self.my_model2Action.attachSoundToObject(self.sfx02, self.my_model2)
self.sfx02.setLoop(0)

    # Adjust the velocity of moving objects automatically
    ## base.cTrav = CollisionTraverser()
    self.my_model1Action.setSoundVelocityAuto(self.sfx01)
    self.my_model1Action.setListenerVelocityAuto()
    self.my_model2Action.setSoundVelocityAuto(self.sfx02)
    self.my_model2Action.setListenerVelocityAuto()

I am using the above code to create 3d sounds. It works fine.
The only problem is, when I hit escape to return to the menu, I get this error:

Assertion failed: !is_empty() at line 1445 of panda/src/pgraph/nodePath.cxx
Traceback (most recent call last):
File “game01.py”, line 4773, in ?
run( )
File “C:\Panda3D-1.4.2\direct\src\showbase\ShowBase.py”, line 2176, in run
self.taskMgr.run()
File “C:\Panda3D-1.4.2\direct\src\task\Task.py”, line 930, in run
self.step()
File “C:\Panda3D-1.4.2\direct\src\task\Task.py”, line 862, in step
self.__stepThroughList(taskPriList)
File “C:\Panda3D-1.4.2\direct\src\task\Task.py”, line 764, in __stepThroughList
ret = self.__executeTask(task)
File “C:\Panda3D-1.4.2\direct\src\task\Task.py”, line 684, in __executeTask
ret = task(*task.extraArgs)
File “C:\Panda3D-1.4.2\direct\src\showbase\Audio3DManager.py”, line 261, in update
pos = known_object.getPos(self.root)
AssertionError: !is_empty() at line 1445 of panda/src/pgraph/nodePath.cxx

Can someone please tell me what this means, and how I might fix it? Thanks

Hmm, are you sure both models are not empty?

Oh. That would be possible if the models are removed before “setListenerVelocityAuto” is disable (which I don’t know how to do right now. I’ll check the Api Reference). Maybe thats the problem then. I’ll check it out and let you know. Thanks

EDIT:
Yes, detachSound and detachListener worked. Thanks again