Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

What other libraries are needed to run on a fresh Ubuntu 18.04 install?

Discussion in 'Linux' started by adammpolak, Feb 2, 2021.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    I am running an Ubuntu VM and am trying to run my headless Unity build.

    It appears there are libraries that it is looking for that I am missing:

    "Fallback handler could not load library"
    upload_2021-2-2_15-36-48.png

    It is odd because the built project does not have folder "Mono"
    upload_2021-2-2_15-37-53.png

    Wondering why running the build is referencing folders that do not exist...?
     

    Attached Files:

  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    It's a bug. Looks like there's some code that hardcodes to also look in that folder as a last resort if Unity can't locate the library elsewhere. Could you file a bug report? :)

    However, it is unlikely that this is the issue that your game doesn't work on Linux. Is there anything else in the log? Does your game code depend on advapi32.dll?
     
  3. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    Hello! I bailed on building it with Mono and changed to IL2CPP using the secret Linux package. This error went away.

    Now I am getting a NEW error.
     
  4. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    I have run both this both on windows and linux and ran it -batchmode -nographics as well as normally

    - Run the build in a VM with all ports open
    - Client is able to connect to the server (connect on port)
    - The connection triggers the server to send RPC to client (which works)
    - Clients send back RPC to server
    - Server receives RPC and adds "NetworkStreamInGame" component to RPC
    - Server starts generating asteroids with Job.WithCode()
    - Crash

    @Tautvydas-Zilys For some reason the stand alone build crashes when in release mode but in debug mode it limps along

    Debug Info
    Config:
    View attachment 787751
    View attachment 787724
    Staring Linx Server Build:
    Code (CSharp):
    1. adampolak@moetsi-asteroids-xr-server:~/asteroids$ ./Sample -batchmode -nographics
    2. Set current directory to /home/adampolak/asteroids
    3. Found path: /home/adampolak/asteroids/Sample
    4. PlayerConnection initialized from /home/adampolak/asteroids/Sample_Data (debug = 0)
    5. PlayerConnection initialized network socket : 0.0.0.0 55421
    6. Multi-casting "[IP] 10.0.0.5 [Port] 55421 [Flags] 2 [Guid] 2501959266 [EditorId] 4261281278 [Version] 1048832 [Id] LinuxPlayer(10.0.0.5) [Debug] 1 [PackageName] LinuxPlayer [ProjectName] Sample" to [225.0.0.222:54997]...
    7. Started listening to [0.0.0.0:55421]
    8. Starting managed debugger on port 56266
    9. Preloaded 'lib_burst_generated.so'
    10. PlayerConnection already initialized - listening to [0.0.0.0:55421]
    11. Initialize engine version: 2020.1.17f1 (9957aee8edc2)
    12. [Subsystems] Discovering subsystems at path /home/adampolak/asteroids/Sample_Data/UnitySubsystems
    13. Forcing GfxDevice: Null
    14. GfxDevice: creating device client; threaded=0
    15. NullGfxDevice:
    16.     Version:  NULL 1.0 [1.0]
    17.     Renderer: Null Device
    18.     Vendor:   Unity Technologies
    19. FMOD initialized on nosound output
    20. ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    21. XRGeneral Settings awakening...
    22. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    23. UnityEngine.Logger:Log(LogType, Object)
    24. UnityEngine.Debug:Log(Object)
    25. UnityEngine.XR.Management.XRGeneralSettings:Awake()
    26.  
    27. (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    Able to connect to the IP address and get super stuttering response:


    Release Build
    Config:
    View attachment 787727
    View attachment 787730
    Running Linux Server Build:

    It crashes