Hello,
I’m seeing behavior on game startup (after Unity’s splash screen) on both Windows 7 and Mac OS X Yosemite, where nearly as soon as the scene starts (a MovieTexture is rigged to play) I get a crash with the following trace. Sometimes I’m able to coax it into not crashing just by restarting and starting again, but most of the time I see the following crash trace:
Receiving unhandled NULL exception
Obtained 18 stack frames.
#0 0x00000100e39a8c in BaseVideoTexture::UpdateVideoTextures()
#1 0x00000100a4e1ec in PlayerLoop(bool, bool, IHookEvent*)
#2 0x000001010632b1 in -[PlayerAppDelegate UpdatePlayer]
#3 0x007fff9328c953 in __NSFireTimer
#4 0x007fff8e5df2e4 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
#5 0x007fff8e5def73 in __CFRunLoopDoTimer
#6 0x007fff8e65253d in __CFRunLoopDoTimers
#7 0x007fff8e59a608 in __CFRunLoopRun
#8 0x007fff8e599bd8 in CFRunLoopRunSpecific
#9 0x007fff9a63156f in RunCurrentEventLoopInMode
#10 0x007fff9a6312ea in ReceiveNextEventCommon
#11 0x007fff9a63112b in _BlockUntilNextEventMatchingListInModeWithFilter
#12 0x007fff8ea8d8ab in _DPSNextEvent
#13 0x007fff8ea8ce58 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#14 0x007fff8ea82af3 in -[NSApplication run]
#15 0x007fff8e9ff244 in NSApplicationMain
#16 0x00000101062ea2 in PlayerMain(int, char const**)
#17 0x000001000020b4 in start
Stacktrace:
Native stacktrace:
0 libsystem_kernel.dylib 0x00007fff97bec286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff97e3ab53 abort + 129
2 build_v4 0x0000000100abc944 _Z12HandleSignaliP9__siginfoPv + 36
3 libmono.0.dylib 0x000000010246a50a mono_chain_signal + 71
4 libmono.0.dylib 0x00000001023b7a33 mono_sigsegv_signal_handler + 213
5 libsystem_platform.dylib 0x00007fff93e26f1a _sigtramp + 26
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
The trace on Line 3, leads me to believe something is going awry with my MovieTexture. The MovieTexture is packaged with the build. As soon as I remove the code to play the texture, no crashes occur. For what it’s worth the following lines are called in a script’s Start() method:
AudioSource aud = GetComponent<AudioSource>();
MovieTexture movie = image.texture as MovieTexture;
movie.loop = loop;
movie.Play();
aud.clip = movie.audioClip;
aud.Play();
Can someone please point me in the right direction?