Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feedback Unity Hub and (X)ubuntu 24.04 not starting Workaround

Discussion in 'Unity Hub' started by DevLaTron, Apr 26, 2024.

  1. DevLaTron

    DevLaTron

    Joined:
    Jan 7, 2016
    Posts:
    25
    Early adopter here, so just in case someone stumbles over it, it took me a bit to figure out what the problem was...

    Unity Hub (3.8.0) won't start after upgrading to Ubuntu 24.04:

    [9757:0426/145104.917431:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
    Trace/breakpoint trap (core dumped)

    As the error states the workaround is to live dangerously and use --no-sandbox if you know what you're doing.
     
  2. Voheart

    Voheart

    Joined:
    Sep 14, 2021
    Posts:
    1
    Same here. Use --no-sandbox can make unityhub works fine.
     
  3. Artem0091

    Artem0091

    Joined:
    Jun 11, 2022
    Posts:
    2
    --no-sandbox helps to launch in Unity, but I can’t log into my account
     
    ferremolenbeek likes this.
  4. ferremolenbeek

    ferremolenbeek

    Joined:
    Jan 11, 2021
    Posts:
    1
    I'm having the same problem. Have you found a solution yet?
     
  5. JjayaitchH

    JjayaitchH

    Joined:
    Jun 18, 2019
    Posts:
    9
    Out of curiosity where are you seeing this error? Is there a crash log file somewhere? I pulled one up from dev/crash for unityhub that updates every time I try to open it but I'm not getting such error message I actually don't see any explicit error messages at all in the log that I found.

    My behavior is that I click on Unity Hub to open it and nothing happens it just doesn't open not even a pop up error message. This is the closed thing I can find to any sort of error from what I saw in the log I found:

    Signal: 5
    SignalName: SIGTRAP
    SourcePackage: unityhub

    Edit: Ok I see how you got that error. just had to run
    unityhub -v
    in the command line

    There did appear to be an update for hub when I was updating my packages but sadly that didn't fix anything
     
    Last edited: Apr 29, 2024
  6. SaariTech

    SaariTech

    Joined:
    Jan 6, 2014
    Posts:
    25
    I have tried:

    1. Open the link with /opt/unityhub/unityhub
    2. Open the link with /opt/unityhub/unityhub-bin
    3. Drag & Drop the link to the Unity Hub Window

    What is the workaround for now?
     
  7. ViniciusIth

    ViniciusIth

    Joined:
    Apr 30, 2024
    Posts:
    1
    I was having the same problem. It seems ubuntu 24.04 implemented some changes to how it restricts apps. Take a look at https://github.com/ungoogled-software/ungoogled-chromium/issues/2804.

     
    richardfabianmain likes this.
  8. EgudenYekeKhuerelbaatar

    EgudenYekeKhuerelbaatar

    Joined:
    May 1, 2024
    Posts:
    1
    Use chrome to log in.
    its stupid, but for some reason it does not work with Firefox
     
    NibbleByte3 and SaariTech like this.
  9. SaariTech

    SaariTech

    Joined:
    Jan 6, 2014
    Posts:
    25
    Thank you so much!
     
  10. JjayaitchH

    JjayaitchH

    Joined:
    Jun 18, 2019
    Posts:
    9
    The first command worked for me. New to linux, would you happen to know if there are any serious security implications with this or if all should be fine?
     
  11. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    997
    Unity, guys go back to the App login. I shouldn't need to use the browser for this stuff.
    I don't even want Chrome on my Linux system... (just face-palm man)

    Also its not working for me, Login is just now totally broken on Ubuntu 24.04. Great job guys... come on man. Why in gods name would you make a sign-in process that requires inner-process security violations that not only makes multi-user login a nightmare but also will just break depending on the browser used. This is the dumbest thing and I keep running into these login issues for years now since this change. Please guys... just please.
     
    Last edited: May 8, 2024
    KrisDevelopment likes this.
  12. KrisDevelopment

    KrisDevelopment

    Joined:
    Jul 26, 2015
    Posts:
    37
    That is why I'm sticking to 20.04 for now, still works fine w/ firefox on that. But obviously Unity needs to fix this fast. (also seems to be broken on latest Debian too). PS: The chrome workaround is the only thing that seems to work for now on latest version.
     
  13. unity_E0D732C90261BB7256D1

    unity_E0D732C90261BB7256D1

    Joined:
    Apr 10, 2023
    Posts:
    2
    TL;DR:
    Ubuntu 24.04 has more strict apparmor policies, denying Unity Hub actions

    Fix:
    Create a file in /etc/apparmor.d/unityhub
    Write the following snippet to it:

    abi <abi/4.0>,
    include <tunables/global>

    profile unityhub /opt/unityhub/unityhub-bin flags=(unconfined) {
    userns,

    # Site-specific additions and overrides. See local/README for details.
    include if exists <local/unityhub>
    }


    Restart apparmor:
    sudo systemctl restart apparmor.service

    Hey, I've been seeing problems with other programs too, they are related to more strict apparmor policies in Ubuntu 24.04. I fixed this for some programs already and it's also working for Unity Hub (so you don't need to use the option --no-sandbox. Here's the gist on github on how to do it:
    https://gist.github.com/0xdeadbad/5ef3a38c8cf6efc264d9a6f11f50e5b8
     
    Kekaku, adambigpoint, NorkQQ and 2 others like this.
  14. jvarelaaloisio

    jvarelaaloisio

    Joined:
    Mar 22, 2019
    Posts:
    2
    Bro this worked flawlessly. Thank you for such a good explanation!
     
  15. richardfabianmain

    richardfabianmain

    Joined:
    Jan 6, 2024
    Posts:
    1
    This worked for me:
    sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
     
    maggot likes this.
  16. unity_E0D732C90261BB7256D1

    unity_E0D732C90261BB7256D1

    Joined:
    Apr 10, 2023
    Posts:
    2
    Just an observation: running that will remove the restrictions of every process (maybe it's not the desired effect in questions of security)
     
  17. NorkQQ

    NorkQQ

    Joined:
    Sep 8, 2016
    Posts:
    6
    Thank you very much! That worked for me. I just wanted to switch linux, man I worked too much to just run unity hub. I hope it's not gonna be like that all the time.
     
    maggot likes this.
  18. getimad

    getimad

    Joined:
    Jul 4, 2022
    Posts:
    1
    I have the same problem!!!
     
  19. maggot

    maggot

    Joined:
    Nov 25, 2009
    Posts:
    13
    I got Unity started in Ubuntu 24, but Unity preferences are not saving.
     
  20. AlexMercer777

    AlexMercer777

    Joined:
    Jul 19, 2021
    Posts:
    1
    try execute with sudo
     
  21. maggot

    maggot

    Joined:
    Nov 25, 2009
    Posts:
    13
    I tried sudo /usr/bin/unityhub and got this:
    [0525/211423.912756:FATAL:electron_main_delegate.cc(293)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
    So I tried sudo /usr/bin/unityhub --no-sandbox
    and got this:
    [252758:0525/211924.283016:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
    [252758:0525/211924.283302:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
    Authorization required, but no authorization protocol specified

    Authorization required, but no authorization protocol specified

    Authorization required, but no authorization protocol specified

    Authorization required, but no authorization protocol specified

    Authorization required, but no authorization protocol specified

    [252964:0525/211924.297081:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
    ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
    [252964:0525/211924.297201:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
    [252964:0525/211924.297250:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
    Authorization required, but no authorization protocol specified

    [252964:0525/211924.297433:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
    ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
    [252964:0525/211924.297493:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
    [252964:0525/211924.297537:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
    [252964:0525/211924.297582:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
    [252964:0525/211924.305297:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization