I want to use render streaming in docker container on the server which only has a Nvidia GPU without display monitor. But there are few tutorial on how to achieve this function. Could someone teach me how to do?
We have gotten same issues from some developers.
Headless container is not officially support.
opened 03:06AM - 28 Nov 22 UTC
closed 06:26AM - 29 Nov 22 UTC
bug
issued
### Package version
3.1.0-exp.4
### Environment
```markdown
* OS: Ubuntu 20.0… 4 Desktop
* Unity version: 2021.3.10f1c1
* Graphics API: Vulkan
* Browser: Chrome
```
### Steps To Reproduce
Build any of the example scene into a linux package, e.g. the WebBrowserInput scene, **with only Vulkan API checked** in Player Setting
### Current Behavior
The built program could be started with `./Program.x86_64` in bash, everything is fine.
But when I added a batchmode tag like `./Program.x86_64 -batchmode`, the program crashed with error log:
```
Vulkan API version 1.1.0 (1.3.205 supported by driver, 1.1.0 requested)
Vulkan vendor=[NVIDIA] id=[10de]
Vulkan renderer=[NVIDIA GeForce GTX 1060 6GB] id=[1c03]
Vulkan device type 2
Vulkan driverversion=[0x80d30000] uint=[-2133655552]
Vulkan PSO: Cache data successfully loaded [size=187390,path=/tmp/DefaultCompany/HelloUnity1/vulkan_pso_cache.bin]
Begin MonoManager ReloadAssembly
- Completed reload, in 0.092 seconds
UnloadTime: 0.669927 ms
Signaling: Connecting WS ws://localhost
Signaling: WS connected.
Setting up 4 worker threads for Enlighten.
Error getting system window info: Invalid window
Unsupported windowing backend 0
Missing Vulkan framebuffer attachment image?
Caught fatal signal - signo:11 code:1 errno:0 addr:0xb8
Obtained 17 stack frames.
#0 0x007fa6ad3c6420 in funlockfile
#1 0x007fa6a66022f5 in (Unknown)
#2 0x007fa6a65b09f7 in (Unknown)
#3 0x007fa6a65b0b71 in (Unknown)
#4 0x007fa6a65b66c3 in (Unknown)
#5 0x007fa6ae4beb50 in PlayerMain(int, char**)
#6 0x007fa6ae4be7e3 in PlayerMain(int, char**)
#7 0x007fa6ae4bc877 in PlayerMain(int, char**)
#8 0x007fa6ae491b17 in PlayerMain(int, char**)
#9 0x007fa6ae493c03 in PlayerMain(int, char**)
#10 0x007fa6ae492a4d in PlayerMain(int, char**)
#11 0x007fa6ae18ea87 in int* std::_V2::__rotate<int*>(int*, int*, int*, std::random_access_iterator_tag)
#12 0x007fa6ae18ea42 in int* std::_V2::__rotate<int*>(int*, int*, int*, std::random_access_iterator_tag)
#13 0x007fa6ae18ed2c in int* std::_V2::__rotate<int*>(int*, int*, int*, std::random_access_iterator_tag)
#14 0x007fa6ae3c1c02 in PlayerMain(int, char**)
#15 0x007fa6ad1e4083 in __libc_start_main
#16 0x00000000201029 in (Unknown)
```
BTW, the whole thing works well with OpenGL, no matter whether `-batchmode` is added or not.
### Expected Behavior
The program should work with `-batchmode` tag added
### Anything else?
The reason I want to add `-batchmode` is because I want to start the program on a remote headless linux server.
Hello all,
I am trying to run a RenderStreaming game (built from the sample WebBrowserInput scene) in a headless ubuntu container. But failed.
The same game worked well on a ubuntu desktop.
System Info:
Unity Version: 2021.3.10
RenderStreaming Version: 3.1.0-exp.4
WebRTC Version: 2.4.0-exp.11 (together with the latest RenderStreaming)
Host OS: Ubuntu 18.04
Container OS: Ubuntu 18.04
GPU: NVIDIA GeForce GTX 1080 Ti
Driver: 470.103.01 (the driver on server is hard to be updated, but I h…