Receiving unhandled NULL exception in Mac build

Hey guys,

After playing around 10 minutes of my game, I get this consistent crash on a Mac build.
This happens in more than 1 mac, with different versions of Mac OS and with different versions of Unity.

This is the log file reported by Unity 4.5.1f3 :

Receiving unhandled NULL exception
Obtained 28 stack frames.
#0 0x0000000054f806 in AudioSource::GetMaxDistance() const
#1 0x0000000054bd31 in AudioSource::CalculateVolumeModifierForDistance(float)
#2 0x0000000054be58 in AudioSource::rolloffCallback(FMOD_CHANNEL*, float)
#3 0x0000000099fd12 in FMOD::ChannelI::calcVolumeAndPitchFor3D()
#4 0x000000009a0220 in FMOD::ChannelI::update(int, bool)
#5 0x00000000a2b89e in FMOD::SystemI::updateChannels(int)
#6 0x00000000a2c2c2 in FMOD::SystemI::update()
#7 0x00000000a1e6d3 in FMOD::System::update()
#8 0x000000005449ad in AudioManager::Update()
#9 0x00000000554af3 in AudioModule::Update()
#10 0x000000002fe57f in PlayerLoop(bool, bool, IHookEvent*)
#11 0x00000000662dbc in -[PlayerAppDelegate UpdatePlayer]
#12 0x000000950e8a2b in __NSFireTimer
#13 0x00000095555ea6 in CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
#14 0x00000095555863 in __CFRunLoopDoTimer
#15 0x000000955d006d in __CFRunLoopDoTimers
#16 0x0000009550d353 in __CFRunLoopRun
#17 0x0000009550c9ea in CFRunLoopRunSpecific
#18 0x0000009550c84b in CFRunLoopRunInMode
#19 0x0000009597eb5d in RunCurrentEventLoopInMode
#20 0x0000009597e8e2 in ReceiveNextEventCommon
#21 0x0000009597e6bd in _BlockUntilNextEventMatchingListInModeWithFilter
#22 0x000000935b0349 in _DPSNextEvent
#23 0x000000935af870 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#24 0x000000935a215c in -[NSApplication run]
#25 0x0000009358aff8 in NSApplicationMain
#26 0x00000000662b0b in PlayerMain(int, char const**)
#27 0x00000000002e15 in start

Anyone has a clue on what is going on ?
Something to do with sounds…

Thanks,
Bruno

A little update on this. I disabled the audio and after this I started having crashes when using colliders with convex shapes, so I disabled those colliders and now it seems the game works fine, except when I want to change from one scene to another. Now I get the following :

  • Could not open file /Users/bubu/Desktop/Bteste.app/Contents/Data/sharedassets4.assets for read
  • (Filename:Line:136)
  • Receiving unhandled NULL exception
  • Obtained14 stack frames.
  • #0 0x00000097ff635f in flockfile
  • #1 0x00000097ff7105 in fileno
  • #2 0x000000003c0484 in File::Lock(File::LockMode, bool)
  • #3 0x000000003898af in FileCacherRead::FileCacherRead(std::string const&, unsigned long, unsigned long)
  • #4 0x0000000039279c in SerializedFile::InitializeRead(std::string const&, ResourceImageGroup&, unsigned int, unsigned int, int, int)
  • #5 0x0000000038e871 in PersistentManager::GetStreamNameSpaceInternal(int)
  • #6 0x0000000038cd9e in PersistentManager::LoadObjectsThreaded(int*, int, LoadProgress*)
  • #7 0x000000002fd7a0 in PreloadLevelOperation::Perform()
  • #8 0x000000002fcdc8 in PreloadManager::Run()
  • #9 0x000000002fcc41 in PreloadManager::Run(void*)
  • #10 0x000000003bd471 in Thread::RunThreadWrapper(void*)
  • #11 0x00000095fd25fb in _pthread_body
  • #12 0x00000095fd2485 in _pthread_struct_init
  • #13 0x00000095fd7cf2 in thread_start

No one can help ?
No ideas ?

Thanks !