Unity + in app + sounds crash bug

Hey,

I’m using an in app purchase code in my Star Shipping Inc. app (available at app store).
in Unity 1.7 when you would click the in app purchase, the sound would stop but the game kept on running.

but now, in Unity 3.1 - what happens is that the app crashes because of this :

Assertion failed: (m_Sound), function CreateChannel, file /Applications/buildAgent/work/71ca6fec1b41cc30/Projects/…/Runtime/Audio/AudioClip.cpp, line 397.
[Switching to thread 11523]
Program received signal: “SIGABRT”.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
mi_cmd_stack_list_frames: Not enough frames in stack.
mi_cmd_stack_list_frames: Not enough frames in stack.

any ideas?

Oded

you should always pause game and audio and then start UIKit overlays etc like the in app store and the same in reverse order when you close the view again.

On U3 the sound handling has changed a bit and it can very well happen that it backfires or that sound in the game just does no longer play.

How do i do that?

ALso i noticed the same crash when an OS notification badge pops up (from a different app, like foursquare)

Any ideas if this is a unity bug? is there some workaround? like i said, this crashes my games.