Search Unity

Trying to build games on Ubuntu server with command line but received segmentation fault

Discussion in 'Linux' started by Ladace, Nov 10, 2020.

  1. Ladace

    Ladace

    Joined:
    Dec 7, 2014
    Posts:
    40
    Hey, I'm experimenting with a workflow using Unity's command-line to build games on Ubuntu 20.04 LTS. But when it opened my project, it caused segmentation fault.

    command line is:

    /home/zacc/Unity/Hub/Editor/2018.4.28f1/Editor/Unity -batchmode -nographics -quit -logFile unity.log -noUpm -projectPath /home/zacc/Git/signal-decay

    I managed to get the core dump file (with log) as attached.

    Log file:


    Initiating legacy licensing module
    LICENSE SYSTEM [20201110 15:25:3] Next license update check is after 2020-11-10T06:51:27
    COMMAND LINE ARGUMENTS:
    /home/zacc/Unity/Hub/Editor/2018.4.28f1/Editor/Unity
    -batchmode
    -nographics
    -quit
    -logFile
    unity.log
    -noUpm
    -projectPath
    /home/zacc/Git/signal-decay
    Successfully changed project path to: /home/zacc/Git/signal-decay
    /home/zacc/Git/signal-decay
    Using Asset Import Pipeline V1.
    Initiating legacy licensing module
    Loading GUID <-> Path mappings...0.000050 seconds
    Loading Asset Database...0.096038 seconds
    Build target: OSXUniversal found and added!
    Build target: WindowsStoreApps found and added!
    Build target: Win64 found and added!
    Build target: Win found and added!
    Build target: LinuxUniversal found and added!
    Build target: Linux64 found and added!
    Build target: Linux found and added!
    Build target: iOS found and added!
    Build target: tvOS found and added!
    Build target: PS4 found and added!
    Build target: XboxOne found and added!
    Build target: Android found and added!
    Build target: WebGL found and added!
    Build target: Switch found and added!
    Build target: Lumin found and added!
    Build target: PSM found and added!
    Build target: PSP2 found and added!
    Build target: WiiU found and added!
    Build target: Web found and added!
    Build target: WebStreamed found and added!
    Build target: OSXIntel found and added!
    Build target: OSXIntel64 found and added!
    Build target: BlackBerry found and added!
    Build target: PS3 found and added!
    Build target: N3DS found and added!
    Build target: WP8 found and added!
    Build target: SamsungTV found and added!
    Build target: Tizen found and added!
    AssetDatabase consistency checks...0.145268 seconds
    Refreshing native plugins compatible for Editor in 68.03 ms, found 3 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Initialize engine version: 2018.4.28f1 (a2d4f71491a4)
    Forcing GfxDevice: Null
    NullGfxDevice:
    Version: NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor: Unity Technologies
     

    Attached Files:

  2. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    Hi @Ladace. I assume you are using a server install with no GUI?

    Do to numerous fundamental changes since 2018.4, you are not going to have great luck with this. With the latest 2020.2+ builds, however, you should have a better experience.
     
  3. Ladace

    Ladace

    Joined:
    Dec 7, 2014
    Posts:
    40
    I installed ubuntu desktop, but running it from command line seems to not allow Unity to use GUI APIs. So it should be the case.