Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5 Crash on Launch

Discussion in 'Editor & General Support' started by pistola, Jun 9, 2015.

  1. pistola

    pistola

    Joined:
    Dec 13, 2014
    Posts:
    5
    Hi all,

    I just updated to Unity 5 Personal but am unable to use it due to a crash on launch. Unity will open the first time I open it after an install, but once I close it it crashes immediately when I try to launch it again.

    After double-clicking the Unity icon, a window opens with Unity 5.0.2f1 at the top and just white in the window. Then it immediately opens the Unity Bug Reporter and gives a "Unity quit unexpectedly" error.

    I'm running a 2009 iMac on 10.10.3 Yosemite. My earlier version of Unity 4.? worked fine.

    I have attempted numerous times to completely delete everything and then reinstall.

    I have attempted to launch Unity holding Alt to stop it opening the last open file. I have also tried booting Unity the first time and quitting both with & without saving files. In any case it crashes immediately on the next attempt.

    Here is the Editor Log, if that helps. Thanks

    Initialize mono
    Mono path[0] = '/Applications/Unity/Unity.app/Contents/Frameworks/Managed'
    Mono path[1] = '/Applications/Unity/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0'
    Mono config path = '/Applications/Unity/Unity.app/Contents/Frameworks/Mono/etc'
    Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y
    2015-06-09 21:56:43.562 Unity[867:34771] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
    LICENSE SYSTEM [20150609 21:56:43] No start/stop license dates set
    LICENSE SYSTEM [20150609 21:56:43] Next license update check is after 2015-06-10T08:09:20
    IsTimeToCheckForNewEditor: Update time 1433849074 current 1433851003
    Receiving unhandled NULL exception
    Launching bug reporter
    Obtained 103 stack frames.
    #0 0x007fff8b695606 in CFDictionaryGetValue
    #1 0x0000012536feb9 in CGImageProcessor::CGImageProcessor()
    #2 0x000001253712ea in __static_initialization_and_destruction_0(int, int)
    #3 0x007fff6b7c3ceb in (Unknown)
    #4 0x007fff6b7c3e78 in (Unknown)
    #5 0x007fff6b7c0871 in (Unknown)
    #6 0x007fff6b7c06f8 in (Unknown)
    #7 0x007fff6b7c0969 in (Unknown)
    #8 0x007fff6b7b6063 in (Unknown)
    #9 0x007fff6b7bd1d1 in (Unknown)
    #10 0x007fff83175857 in dlopen
    #11 0x00000118017a52 in PR_LoadLibraryWithFlags
    #12 0x00000118017b44 in PR_LoadLibrary
    #13 0x00000113b73a96 in nsPluginFile::LoadPlugin(PRLibrary**)
    #14 0x00000113b7450c in nsPluginFile::GetPluginInfo(nsPluginInfo&, PRLibrary**)
    #15 0x00000113b6331a in nsPluginHost::ScanPluginsDirectory(nsIFile*, bool, bool*)
    #16 0x00000113b63fc9 in nsPluginHost::ScanPluginsDirectoryList(nsISimpleEnumerator*, bool, bool*)
    #17 0x00000113b5d971 in nsPluginHost::FindPlugins(bool, bool*)
    #18 0x00000113b61544 in nsPluginHost::FindPluginEnabledForExtension(char const*, char const*&)
    #19 0x00000113b614e9 in nsPluginHost::IsPluginEnabledForExtension(char const*, char const*&)
    #20 0x00000113a4907e in nsExternalHelperAppService::GetTypeFromExtension(nsACString_internal const&, nsACString_internal&)
    #21 0x00000113a49b9a in nsExternalHelperAppService::GetTypeFromFile(nsIFile*, nsACString_internal&)
    #22 0x00000112eba4b7 in nsFileChannel::MakeFileInputStream(nsIFile*, nsCOMPtr<nsIInputStream>&, nsCString&, bool)
    #23 0x00000112ebaa80 in nsFileChannel::OpenContentStream(bool, nsIInputStream**, nsIChannel**)
    #24 0x00000112e35bc0 in nsBaseChannel::BeginPumpingData()
    #25 0x00000112e37028 in nsBaseChannel::AsyncOpen(nsIStreamListener*, nsISupports*)
    #26 0x000001131d58e3 in nsUserFontSet::StartLoad(gfxMixedFontFamily*, gfxProxyFontEntry*, gfxFontFaceSrc const*)
    #27 0x000001141c12ae in gfxUserFontSet::LoadNext(gfxMixedFontFamily*, gfxProxyFontEntry*)
    #28 0x000001141c0d4b in gfxUserFontSet::FindFontEntry(gfxFontFamily*, gfxFontStyle const&, bool&, bool&)
    #29 0x000001141a8ad5 in gfxFontGroup::ForEachFontInternal(nsAString_internal const&, nsIAtom*, bool, bool, bool, bool (*)(nsAString_internal const&, nsACString_internal const&, bool, void*), void*)
    #30 0x000001141a790a in gfxFontGroup::BuildFontList()
    #31 0x000001141caa22 in gfxPlatformMac::CreateFontGroup(nsAString_internal const&, gfxFontStyle const*, gfxUserFontSet*)
    #32 0x00000113043072 in nsFontMetrics::Init(nsFont const&, nsIAtom*, nsDeviceContext*, gfxUserFontSet*)
    #33 0x00000113040814 in nsFontCache::GetMetricsFor(nsFont const&, nsIAtom*, gfxUserFontSet*, nsFontMetrics*&)
    #34 0x000001130ac7c8 in nsLayoutUtils::GetFontMetricsForStyleContext(nsStyleContext*, nsFontMetrics**, float)
    #35 0x00000113140b55 in nsLineLayout::VerticalAlignFrames(nsLineLayout::perSpanData*)
    #36 0x00000113141826 in nsLineLayout::VerticalAlignLine()
    #37 0x000001130f9f90 in nsBlockFrame::placeLine(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsFloatManager::SavedState*, nsRect&, int&, bool*)
    #38 0x000001130f9a03 in nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsFlowAreaRect&, int&, nsFloatManager::SavedState*, bool*, LineReflowStatus*, bool)
    #39 0x000001130f892f in nsBlockFrame::ReflowInlineFrames(nsBlockReflowState&, nsLineList_iterator, bool*)
    #40 0x000001130f5cb0 in nsBlockFrame::ReflowDirtyLines(nsBlockReflowState&)
    #41 0x000001130f453b in nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #42 0x000001130feeb0 in nsBlockReflowContext::ReflowBlock(nsRect const&, bool, nsCollapsingMargin&, int, bool, nsLineBox*, nsHTMLReflowState&, unsigned int&, nsBlockReflowState&)
    #43 0x000001130f808f in nsBlockFrame::ReflowBlockFrame(nsBlockReflowState&, nsLineList_iterator, bool*)
    #44 0x000001130f5c92 in nsBlockFrame::ReflowDirtyLines(nsBlockReflowState&)
    #45 0x000001130f453b in nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #46 0x000001130feeb0 in nsBlockReflowContext::ReflowBlock(nsRect const&, bool, nsCollapsingMargin&, int, bool, nsLineBox*, nsHTMLReflowState&, unsigned int&, nsBlockReflowState&)
    #47 0x000001130f808f in nsBlockFrame::ReflowBlockFrame(nsBlockReflowState&, nsLineList_iterator, bool*)
    #48 0x000001130f5c92 in nsBlockFrame::ReflowDirtyLines(nsBlockReflowState&)
    #49 0x000001130f453b in nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #50 0x000001131071f4 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, int, int, unsigned int, unsigned int&, nsOverflowContinuationTracker*)
    #51 0x00000113131849 in nsCanvasFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #52 0x000001131071f4 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, int, int, unsigned int, unsigned int&, nsOverflowContinuationTracker*)
    #53 0x0000011312515a in nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState*, bool, bool, nsHTMLReflowMetrics*, bool)
    #54 0x00000113125343 in nsHTMLScrollFrame::ReflowContents(ScrollReflowState*, nsHTMLReflowMetrics const&)
    #55 0x00000113125c08 in nsHTMLScrollFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #56 0x000001131071f4 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, int, int, unsigned int, unsigned int&, nsOverflowContinuationTracker*)
    #57 0x00000113173be2 in ViewportFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)
    #58 0x000001130bf174 in PresShell::DoReflow(nsIFrame*, bool)
    #59 0x000001130c409d in PresShell::processReflowCommands(bool)
    #60 0x000001130c3e90 in PresShell::FlushPendingNotifications(mozilla::ChangesToFlush)
    #61 0x000001130d1065 in nsRefreshDriver::Tick(long long, mozilla::TimeStamp)
    #62 0x000001130d22a8 in mozilla::RefreshDriverTimer::Tick()
    #63 0x0000011414fee4 in nsTimerImpl::Fire()
    #64 0x0000011414ffe5 in nsTimerEvent::Run()
    #65 0x0000011414c61f in nsThread::processNextEvent(bool, bool*)
    #66 0x00000114109dfe in NS_ProcessPendingEvents(nsIThread*, unsigned int)
    #67 0x00000113c5dc47 in nsBaseAppShell::NativeEventCallback()
    #68 0x00000113c16b63 in nsAppShell::processGeckoEvents(void*)
    #69 0x007fff8b70ca01 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
    #70 0x007fff8b6feb8d in __CFRunLoopDoSources0
    #71 0x007fff8b6fe1bf in __CFRunLoopRun
    #72 0x007fff8b6fdbd8 in CFRunLoopRunSpecific
    #73 0x007fff8397256f in RunCurrentEventLoopInMode
    #74 0x007fff839721ee in ReceiveNextEventCommon
    #75 0x007fff8397212b in _BlockUntilNextEventMatchingListInModeWithFilter
    #76 0x007fff878f99bb in _DPSNextEvent
    #77 0x007fff878f8f68 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    #78 0x007fff87ac4987 in -[NSApplication _realDoModalLoop:peek:]
    #79 0x007fff87ac0f76 in -[NSApplication runModalForWindow:]
    #80 0x000001010b4779 in HomeWindow::Show(HomeMode)
    #81 0x0000010101f286 in Application::InitializeProject()
    #82 0x000001011fde51 in -[EditorApplication applicationDidFinishLaunching:]
    #83 0x007fff8b7ac45c in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
    #84 0x007fff8b69c634 in _CFXNotificationPost
    #85 0x007fff892b59d1 in -[NSNotificationCenter postNotificationName:eek:bject:userInfo:]
    #86 0x007fff87903b9b in -[NSApplication _postDidFinishNotification]
    #87 0x007fff87903906 in -[NSApplication _sendFinishLaunchingNotification]
    #88 0x007fff87900a56 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
    #89 0x007fff87900495 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
    #90 0x007fff892e8748 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
    #91 0x007fff892e85b9 in _NSAppleEventManagerGenericHandler
    #92 0x007fff8ee2834c in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*)
    #93 0x007fff8ee280c9 in dispatchEventAndSendReply(AEDesc const*, AEDesc*)
    #94 0x007fff8ee27fd3 in aeProcessAppleEvent
    #95 0x007fff83980c6e in AEProcessAppleEvent
    #96 0x007fff878f9eb2 in _DPSNextEvent
    #97 0x007fff878f8f68 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
    #98 0x007fff878eebf3 in -[NSApplication run]
    #99 0x007fff8786b354 in NSApplicationMain
    #1000x0000010121455e in EditorMain(int, char const**)
    #1010x00000101214cb9 in main
    #1020x00000100001d74 in start
    Launching external process: /Applications/Unity/Unity.app/Contents/BugReporter/Unity Bug Reporter.app/Contents/MacOS/unity.bugreporter.e
     
  2. pistola

    pistola

    Joined:
    Dec 13, 2014
    Posts:
    5
    Hi all,
    Still no solution to this, I have been working on it for a few days and my whole project is grinding to a halt with my team waiting on me.

    I have looked through numerous threads and tried to apply other people's solutions.

    What I have tried:
    Numerous full uninstall/reinstalls/reboots.
    Installing versions 5.1.0, 5.0.3, 5.0.2 (5.0.2 is working on a team-mate's Mac with no problems so the issue seems local).
    Deleting .ulf file (no Unity file in Library/Application Support, so no .ulf file I could find)
    Deleting PACE Anti-Piracy files (no PACE folder in Library)
    Deleting Anti-Virus software
    Deactivating Firewall
    Deleting random apps that I don't use
    Updating all software updates

    What I haven't tried:
    Updating Audio drivers (not sure how to do that on Mac, everything else is apparently up-to-date).
    Running a 32bit install (I've found links to a Windows 32bit install, but is there one for Mac?).
    Installing any patches (not sure which one to install).
    Deleting even more random apps that I might need but don't use very often.
    Throwing my computer out of a high window.

    Again, Unity seems to run fine the first time. I get a Licence window where I choose Personal and submit. Then I get a project window allowing me to specify the save location of my new work-file. Once I've done that, Unity opens as it should.

    On the next launch it crashes before it even populates the first window (it looks like it's opening the Project window where I specify the save location on the first boot).

    More detail on specs:
    iMac 9,1 (2009)
    Intel Core 2 Duo 2.66 GHz
    8GB Memory
    OS 10.10.3 Yosemite

    Again, help is very much appreciated!
     
  3. pistola

    pistola

    Joined:
    Dec 13, 2014
    Posts:
    5
    Trying to decipher the Apple Problem Report generated after the crash, maybe someone else here has more experience reading these and can help me out. I'm just including an edited chunk just before the crash.

    Does that com.facebook.plugin (lines 7& 8) look out of place to anyone else?

    Process: Unity [575]
    Path: /Applications/Unity/Unity.app/Contents/MacOS/Unity
    Identifier: com.unity3d.UnityEditor5.x
    Version: Unity version 5.0.2f1 (5.0.2f1)
    Code Type: X86-64 (Native)
    Parent Process: ??? [1]
    Responsible: Unity [575]

    OS Version: Mac OS X 10.10.3 (14D136)

    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_BAD_ACCESS (SIGABRT)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

    VM Regions Near 0:
    -->
    __TEXT 0000000100000000-0000000103066000 [ 48.4M] r-x/rwx SM=COW /Applications/Unity/Unity.app/Contents/MacOS/Unity

    Application Specific Information:
    abort() called

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 libsystem_kernel.dylib 0x00007fff973b7286 __pthread_kill + 10
    1 libsystem_c.dylib 0x00007fff93d59b53 abort + 129
    2 com.unity3d.UnityEditor5.x 0x0000000100738d81 HandleSignal(int, __siginfo*, void*) + 385
    3 libmono.0.dylib 0x00000001056c779a mono_chain_signal + 71
    4 libmono.0.dylib 0x0000000105614c7f mono_sigsegv_signal_handler + 213
    5 libsystem_platform.dylib 0x00007fff8fd62f1a _sigtramp + 26
    6 com.apple.CoreFoundation 0x00007fff8a22e606 CFDictionaryGetValue + 38
    7 com.facebook.plugin 0x0000000125c6feb9 CGImageProcessor::CGImageProcessor() + 331
    8 com.facebook.plugin 0x0000000125c712ea __static_initialization_and_destruction_0(int, int) + 34
    9 dyld 0x00007fff61071ceb ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 265
    10 dyld 0x00007fff61071e78 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
    11 dyld 0x00007fff6106e871 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 305
    12 dyld 0x00007fff6106e6f8 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 138
    13 dyld 0x00007fff6106e969 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 75
    14 dyld 0x00007fff61064063 dyld::runInitializers(ImageLoader*) + 89
    15 dyld 0x00007fff6106b1d1 dlopen + 578
    16 libdyld.dylib 0x00007fff9380c857 dlopen + 59
    17 libnss3.dylib 0x0000000118216a52 PR_LoadLibraryWithFlags + 210
    18 libnss3.dylib 0x0000000118216b44 PR_LoadLibrary + 52
    19 XUL 0x0000000113d72a96 nsPluginFile::LoadPlugin(PRLibrary**) + 342
    20 XUL 0x0000000113d7350c nsPluginFile::GetPluginInfo(nsPluginInfo&, PRLibrary**) + 2604
    21 XUL 0x0000000113d6231a nsPluginHost::ScanPluginsDirectory(nsIFile*, bool, bool*) + 1434
    22 XUL 0x0000000113d62fc9 nsPluginHost::ScanPluginsDirectoryList(nsISimpleEnumerator*, bool, bool*) + 201
    23 XUL 0x0000000113d5c971 nsPluginHost::FindPlugins(bool, bool*) + 225
    24 XUL 0x0000000113d60544 nsPluginHost::FindPluginEnabledForExtension(char const*, char const*&) + 68
    25 XUL 0x0000000113d604e9 nsPluginHost::IsPluginEnabledForExtension(char const*, char const*&) + 9
    26 XUL 0x0000000113c4807e nsExternalHelperAppService::GetTypeFromExtension(nsACString_internal const&, nsACString_internal&) + 478
    (cont to 116, plus 23 other threads).
     
  4. pistola

    pistola

    Joined:
    Dec 13, 2014
    Posts:
    5
    Fixed!

    The com.facebook.plugin lines were responsible after all!

    Went into Library> Internet Plug-Ins and deleted fbplugin 1_0_3.plugin and fbplugin 1_0_1.plugin
    Restarted computer & Unity launched as normal.