Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Got Native Crash when using Vulkan on Linux

Discussion in 'Unity Render Streaming' started by FerdinandSu, Mar 27, 2023.

  1. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    The game can run well with Vulkan on Linux until it suddenly gets stuck when receiving a candidate.
    As shown in Player.log, I consider the stuck is caused by the following Native Crash. The package version is exp2.

    The exp6 get crashed with SIGABRT with the following stacktrace, so I downgraded to exp2:

    The performance issue of openGL is why I switched to Vulkan, but it doesn't work.
    With OpenGL, I can get a ~60FPS when not moving while ~6FPS when moving the character.
    With windows on the same machine, I can get a stable 30+FPS render result.

    Is there any way to improve the performance under OpenGL, or fix the bug under Vulkan?
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Hi, exp.6 is the latest version of Unity Render Streaming.
    exp.2 is too old version to fix issues.

    I would like to know the issue of exp.6.
    Which version of Unity are you using?
     
  3. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    Unity 2021.3.13f1c1 on Windows.
    Adding Audio Sender to exp2 also causes a crash, which is later than the exp.6 crash (Video Stream Connected):
    Removing the AudioSender still caused exp6 crash
     
    Last edited: Mar 28, 2023
  4. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    Well, i tried to re-adapt my project from exp2 to exp6, and it even crashed earlier (Signalling not started):

    What's more, the performance of exp6 on windows is much lower (10-30fps) than exp2 on linux (30-60fps).

    The logs of exp2 starts with:

     
    Last edited: Mar 28, 2023
  5. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    I notice the Render Streaming Wizard 'fixed' Current Graphics API, which worked well in exp2. In the project, the Graphics APIs are configured as 'Auto'. So I wonder what the wizard actually did with my Graphics API settings.
    upload_2023-3-28_15-16-12.png
     
  6. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    I'm curious about this line in the log. It looks the error is about X Window.
    X Error of failed request: BadRequest (invalid request code or no such operation)
     
  7. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    Well, it seems to be 'fixed' as it can run adequately on another Ubuntu machine (while not working on this Debian machine). Maybe some configurations differed, but it is no more important.
    We now care more about why the performance of exp6 is much lower (10-30fps) than exp2 (30-60fps) on Linux.
     
  8. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Can you try to change the framerate setting for video streaming?

    FYI, we have issues about Vulkan Graphics API and are fixing here. It might be related your issue.
    https://github.com/Unity-Technologies/com.unity.webrtc/pull/888
     
  9. FerdinandSu

    FerdinandSu

    Joined:
    Nov 2, 2022
    Posts:
    8
    All exp6 builds have a 60fps framerate setting, exp2 seems to have a default 60fps setting ?

    How to try the latest branch of WebRtc, just import in package manager?
     
  10. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    We haven't finished fixing in the branch so please wait for next release.
     
  11. coderloff

    coderloff

    Joined:
    Aug 29, 2021
    Posts:
    2
  12. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803