UnityRenderStreaming
UnityRenderStreaming copied to clipboard
[BUG]: renderstreaming boardcast/receiver sample cause unity crash when starting streaming
Package version
3.1.0-exp.5
Environment
* OS: ubuntu18.04
* driver version : 470.141.03, CUDA version 11.4
* GPU:Tesla T4 GPU * 4
* Unity version: unity2020.3.41f1
* WebRTC: 3.0.0-pre.4
* Graphics API: auto
* Browser: chrome 110.0.5481.77(officual build)(64bit)
Steps To Reproduce
1.in a blank new unity project, install renderstreaming package and import samples.
2.download and launch the web application like:
sudo ./webserver -w -p 88
3.open chrome and goto this page, the web page looks normal.
4.in unity, open renderstreaming broadcast sample scene, in RenderStreaming script, set it to websocket and ws://localhost:88
5.in unity, click play and run, looks ok and logs showing WS connected.
6.go to chrome the webpage and goto receiver sample page.
7.click play and start to streaming
Current Behavior
result: unity crash immediately, some last log looks like:

Expected Behavior
expected: unity runs correctly and start streaming to the webpage.
Anything else?
Any idea or Anywhere to check the unity crash log ? a bug has been reported and uploaded. Thanks
Can you check what the graphics driver is installed? I assume that the issue relates the graphics driver for Linux.
@karasusan it's a driver version : 470.141.03, CUDA version 11.4 Tesla T4 GPU * 4
@flankechen It looks no problem. How about Unity player log?
@karasusan here is some logs, and BTW, a unity bug report is uploaded https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-31844 https://issuetracker.unity3d.com/issues/linux-render-streaming-crash-on-getrendereventfunc-when-connecting-receiver-sample-to-broadcast-sample
First lines of the stack trace: #11 0x007f18daf645fe in GetRenderEventFunc #12 0x0055a3949a9401 in RenderingCommandBuffer::ExecuteCommandBufferWithState(ShaderPassContext&, RenderNodeQueue&, RenderingCommandBufferState*, unsigned int, ComputeQueueType) const #13 0x0055a3949a7ac4 in RenderingCommandBuffer::ExecuteCommandBuffer(ShaderPassContext&, RenderNodeQueue&, unsigned int, dynamic_array<std::pair<ShaderLab::FastPropertyName, RenderTexture*>, 0ul>, ComputeQueueType, RenderTexture) const #14 0x0055a39491fbe0 in ExecuteCommandBufferFromScriptImpl(RenderingCommandBuffer*, ComputeQueueType, ScriptingExceptionPtr*) #15 0x0055a394255ef6 in Graphics_CUSTOM_ExecuteCommandBuffer(ScriptingBackendNativeObjectPtrOpaque*)
Obtained 32 stack frames.
#0 0x007fc743eae980 in funlockfile
#1 0x007fc743ae9e87 in gsignal
#2 0x007fc743aeb7f1 in abort
#3 0x007fc74373b0a9 in __cxa_throw_bad_array_new_length
#4 0x007fc743746506 in std::rethrow_exception(std::__exception_ptr::exception_ptr)
#5 0x007fc743746571 in std::terminate()
#6 0x007fc743746849 in __cxa_rethrow
#7 0x007fc5ba78abb0 in std::vector<char const*, std::allocator<char const*> >::insert(__gnu_cxx::__normal_iterator<char const* const*, std::vector<char const*, std::allocator<char const*> > >, char const* const&)
#8 0x007fc5ba77de43 in std::vector<unsigned char, std::allocator
which platform are you using? you can not run webgl at unity editor with this project now.
@eaphone hi, I am runing this on standalone linux platform setup. I know it's no webgl. the stange thing is, some desektop ubuntu18.04 runs well with this sample. this server environment fails. I notice other guys report server environment runs but not the docker environment as well
@flankechen I'm having a problem that looks the same in my environment, so I'll check. Just in case, is it also happening in the WebRTC sample?
memo: WRS-459