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

Question I'm trying to build for Linux but the game doesn't open

Discussion in 'Linux' started by unity_NDDcRuLP5Tq6Jw, Mar 2, 2023.

  1. unity_NDDcRuLP5Tq6Jw

    unity_NDDcRuLP5Tq6Jw

    Joined:
    Aug 12, 2022
    Posts:
    4
    Building the game on and for windows worked without issue. I even tried with a empty project. But on my Ubuntu VM the screen just flickers for a second and the following error appears:

    [UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"

    I saw others have this as well but for them there was more than just this. I'm new to Linux and Unity so I don't really know where to start looking.
     
  2. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    No offense, but the error message is quite self explanatory. It says "Configuration Parameters - Can be set up in boot.config". So maybe start by checking your boot.config file and make sure the parameters are correctly set up.

    Also, have you checked that your graphics card drivers are up to date and compatible with Ubuntu?
     
  3. nrader95

    nrader95

    Joined:
    Aug 19, 2019
    Posts:
    23
    What you copy-pasted is standard output of any unity game when lauched from console.
    So i would suggest reading logs instead
     
    karliss_coldwild likes this.
  4. tylerinthezoo

    tylerinthezoo

    Unity Technologies

    Joined:
    Jun 15, 2022
    Posts:
    83
    you could launch the game in the terminal and you would see more output there.
    otherwise you can find logs here:
    ~/.config/unity3d/CompanyName/ProductName/Player.log

    check all your dependencies are in place as well. GameAseembly.so for example for il2cpp.
     
    takacsms likes this.
  5. idoknow68

    idoknow68

    Joined:
    Sep 13, 2022
    Posts:
    2
    please tell me how you exported your game for windows from linux because i am not getting windows option in target platform please help
     
  6. kekamat

    kekamat

    Joined:
    Nov 8, 2022
    Posts:
    3
     
  7. kekamat

    kekamat

    Joined:
    Nov 8, 2022
    Posts:
    3
    Same issue while running an HDRP sample scene in Linux terminal
    Unity version 2022.3.5f1
    Build platform : Linux
    Running on Linux Terminal from windows machine

    $ ./UnityServer.x86_64
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-allocator-temp-initial-block-size-main=262144"
    "memorysetup-allocator-temp-initial-block-size-worker=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"
    Segmentation fault (core dumped)


    My boot.config looks like:

    gfx-enable-gfx-jobs=1
    gfx-enable-native-gfx-jobs=1
    wait-for-native-debugger=0
    hdr-display-enabled=0
    gc-max-time-slice=3
    build-guid=89ed41df3faa40c7b96dd60845653084
     
  8. kekamat

    kekamat

    Joined:
    Nov 8, 2022
    Posts:
    3
    Any idea how to solve this


    Same issue while running an HDRP sample scene in Linux terminal
    Unity version 2022.3.5f1
    Build platform : Linux
    Running on Linux Terminal from windows machine

    $ ./UnityServer.x86_64
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-allocator-temp-initial-block-size-main=262144"
    "memorysetup-allocator-temp-initial-block-size-worker=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"
    Segmentation fault (core dumped)


    My boot.config looks like:

    gfx-enable-gfx-jobs=1
    gfx-enable-native-gfx-jobs=1
    wait-for-native-debugger=0
    hdr-display-enabled=0
    gc-max-time-slice=3
    build-guid=89ed41df3faa40c7b96dd60845653084
     
  9. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    739
    if you build a blank project and run in does it work? youve said you're running it as a VM, VMs often dont have the graphics power to achieve
     
  10. tylerinthezoo

    tylerinthezoo

    Unity Technologies

    Joined:
    Jun 15, 2022
    Posts:
    83

    are you trying to use wsl when you say running linux terminal from Windows? Does this work on a real linux machine then?