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
  4. Dismiss Notice

command line build crashes

Discussion in 'macOS' started by loki-void, Oct 11, 2020.

  1. loki-void

    loki-void

    Joined:
    Apr 16, 2013
    Posts:
    11
    Hello. We're building android app using Jenkins on mac mini with no displays attached, Unity version is 2019.3.4f1

    ../.ci_custom/build_tool.sh: line 47: 7843 Abort trap: 6 $UNITY_EXEC -projectPath "${PROJECT_DIR}" -quit -batchmode -executeMethod CustomBuildCommand.PerformBuildFromCli -logFile "${PROJECT_DIR}/build_output/build.log" -silent-crashes -nographics -buildTarget $platform -buildType $build_type -diag-debug-shader-compiler


    Sometimes (not always) we're getting this error:


    Using Asset Import Pipeline V1.
    2020-10-09 16:02:57.129 Unity[8795:183305] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00007fff30fbdd07 __exceptionPreprocess + 250
    1 libobjc.A.dylib 0x00007fff69ce15bf objc_exception_throw + 48
    2 CoreFoundation 0x00007fff30fea199 CFArrayExchangeValuesAtIndices + 0
    3 Unity 0x000000010f0f3708 _Z28ScreenManagerOSXGetDisplayIDj + 152
    4 Unity 0x000000010e26238e _ZN16ScreenManagerOSXC1Ev + 46
    5 Unity 0x000000010d7a5475 _Z17InitScreenManagerv + 69
    6 Unity 0x000000010db0c212 _Z26InitializeEngineNoGraphicsv + 466
    7 Unity 0x000000010b9217ce _ZN11Application17InitializeProjectEv + 6750
    8 Unity 0x000000010f2fe2bc _Z14NoGraphicsMainv + 60
    9 Unity 0x000000010f2fe6a9 _Z10EditorMainiPPKc + 921
    10 Unity 0x000000010f2fea39 main + 9
    11 libdyld.dylib 0x00007fff6ae88cc9 start + 1
    12 ??? 0x0000000000000011 0x0 + 17
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException


    What it might be? How to fix it?
     
  2. Kabu4ceGreen

    Kabu4ceGreen

    Joined:
    Oct 9, 2017
    Posts:
    2
    Did you find out anything?
    We keep getting this periodically, and it fixes it self in an hour or two, but we'd like to know if there is a way to fix it completely.
    We're currently using Unity 2019.3.9f1


    Using Asset Import Pipeline V2.
    2021-04-27 17:13:35.823 Unity[89433:596827] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00007fff318f0727 __exceptionPreprocess + 250
    1 libobjc.A.dylib 0x00007fff6a83aa9e objc_exception_throw + 48
    2 CoreFoundation 0x00007fff3191cccc CFArrayExchangeValuesAtIndices + 0
    3 Unity 0x0000000105903168 _Z28ScreenManagerOSXGetDisplayIDj + 152
    4 Unity 0x0000000104a52d9e _ZN16ScreenManagerOSXC1Ev + 46
    5 Unity 0x0000000103f8ffb5 _Z17InitScreenManagerv + 69
    6 Unity 0x00000001042f8182 _Z26InitializeEngineNoGraphicsv + 466
    7 Unity 0x00000001020dbbfe _ZN11Application17InitializeProjectEv + 6750
    8 Unity 0x0000000105b0decc _Z14NoGraphicsMainv + 60
    9 Unity 0x0000000105b0e2b9 _Z10EditorMainiPPKc + 921
    10 Unity 0x0000000105b0e649 main + 9
    11 libdyld.dylib 0x00007fff6b9dacc9 start + 1
    12 ??? 0x0000000000000011 0x0 + 17
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Can you report a bug on this? It could be our code doesn't expect the displays to be empty.