Unity won't start from command line

I’m using scripting to let unity automatically generate iOS Assets. Everything is running fine in Unity 4.3.1, but every 4-5 time Unity won’t start anymore giving me continuously the error below. The only workaround, is to shortly start Unity normal with GUI, immediately exiting it.

Any suggestions?

Thomas

[Unity stdout] Initialize mono
[Unity stdout] Mono path[0] = '/Applications/Unity/Unity.app/Contents/Frameworks/Managed'
[Unity stdout] Mono path[1] = '/Applications/Unity/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0'
[Unity stdout] Mono config path = '/Applications/Unity/Unity.app/Contents/Frameworks/Mono/etc'
[Unity stdout] Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y
[Unity stderr] 2013-12-12 09:43:08.824 Unity[51721:507] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
[Unity stdout] Receiving unhandled NULL exception
[Unity stdout] Launching bug reporter
[Unity stdout] Obtained 30 stack frames.
[Unity stdout] #0  0x00000097c127f0 in strlen
[Unity stdout] #1  0x0000000134a960 in LicenseManager::AppendSystemInfoXML(std::string&)
[Unity stdout] #2  0x0000000134e186 in LicenseManager::TransmitLicenseFile(std::string)
[Unity stdout] #3  0x0000000134e316 in LicenseManager::QueryLicenseUpdate()
[Unity stdout] #4  0x0000000134523f in LicenseInfo::QueryLicenseUpdate(bool)
[Unity stdout] #5  0x000000011fa760 in Application::InitializeProject()
[Unity stdout] #6  0x000000013aadbe in -[EditorApplication applicationDidFinishLaunching:]
[Unity stdout] #7  0x000000970a1692 in __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke
[Unity stdout] #8  0x0000009186b7e4 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
[Unity stdout] #9  0x0000009174d3fb in _CFXNotificationPost
[Unity stdout] #10 0x0000009708febf in -[NSNotificationCenter postNotificationName:object:userInfo:]
[Unity stdout] #11 0x000000944b87d5 in -[NSApplication _postDidFinishNotification]
[Unity stdout] #12 0x000000944b8475 in -[NSApplication _sendFinishLaunchingNotification]
[Unity stdout] #13 0x000000944b4da4 in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
[Unity stdout] #14 0x000000944b4691 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
[Unity stdout] #15 0x00000092038304 in -[NSObject performSelector:withObject:withObject:]
[Unity stdout] #16 0x000000970b03fa in __76-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke
[Unity stdout] #17 0x000000970aff31 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
[Unity stdout] #18 0x000000970afd3b in _NSAppleEventManagerGenericHandler
[Unity stdout] #19 0x000000974d8b15 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
[Unity stdout] #20 0x000000974a7ed6 in dispatchEventAndSendReply(AEDesc const*, AEDesc*)
[Unity stdout] #21 0x000000974a7dce in aeProcessAppleEvent
[Unity stdout] #22 0x0000009390b7c1 in AEProcessAppleEvent
[Unity stdout] #23 0x000000944b03a8 in _DPSNextEvent
[Unity stdout] #24 0x000000944afad0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
[Unity stdout] #25 0x000000944a235c in -[NSApplication run]
[Unity stdout] #26 0x0000009448b1f8 in NSApplicationMain
[Unity stdout] #27 0x000000013bd31b in EditorMain(int, char const**)
[Unity stdout] #28 0x000000013bd6c8 in main
[Unity stdout] #29 0x000000000038b5 in start
[Unity stderr] 
[Unity stdout] * Assertion at mini-exceptions.c:1604, condition `err == 0' not met
[Unity stdout] 
[Unity stderr] Unhandled Exception: System.ExecutionEngineException: SIGILL

3 Answers

3

did you note this line: “NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be ‘Editor’, ‘Viewer’, ‘None’, or ‘Shell’.” ?

maybe the file “Info.plist” became corrupted between runs and running UNITY with gui fix it some how… just maybe. i’m PC user. :slight_smile:

try to compere the content of it when it run OK and after you get the error.

Thanks for your suggestion! I modified the Info.plist of Unity, so that CFBundleTypeRole == None. So lets see what happens. On the other side during a successful run Unity shows the same warning but just afterwards instead giving a "Receiving unhandled NULL exception" continuos to run the batch.

Setting the Info.plist to the correct BundleTypeRole makes the warning disappear, but the problem stays the same :frowning:

Can someone help me find this Info.plist file in Unity 2017.01?
I found one in /Applications/Unity/PlaybackEngines/iOSSupport/Trampoline but this one lacks the BundleTypeRole entry.

Why do you post an answer to the question when you do not answer anything? if you have a question you should [Ask a Question][1] in the Help Room [1]: http://answers.unity3d.com/questions/ask.html?space=9