Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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,375
    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?
     
    Ares2048 likes this.
  3. nrader95

    nrader95

    Joined:
    Aug 19, 2019
    Posts:
    24
    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:
    101
    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. keerthikkamath

    keerthikkamath

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

    keerthikkamath

    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. keerthikkamath

    keerthikkamath

    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:
    2,256
    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:
    101

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

    RiverExplorer

    Joined:
    Jul 28, 2021
    Posts:
    23
    NOPE - no log file produced when it gets that error.
     
  12. RiverExplorer

    RiverExplorer

    Joined:
    Jul 28, 2021
    Posts:
    23
    Never needed one before, why now?
     
  13. GB2102

    GB2102

    Joined:
    Jul 8, 2018
    Posts:
    12
    add sudo command or switch to root to run a server may solve this. For example,

    $ ./YourGameServer.x86_64 (x)
    $ sudo ./YourGameServer.x86_64 (√)
    # ./YourGameServer.x86_64 (√)