Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fix Crash on dedicated Linux Server #887

Conversation

ZenBre4ker
Copy link
Contributor

This simple check makes sure that vulkan is actually available and not a nullptr.

It enables dedicated servers to at least run the preload and not crash in the process of running webrtc without graphics initialized.
I didnt test yet to which degree webrtc feature works, but the Audio WebRtc Testscene works now without crash.

Fixes #791 in my case at least.

The reason this crashed is that vulkan is not available on dedicated server build and this function returns a nullptr which is not handled:
https://github.com/Unity-Technologies/com.unity.webrtc/blob/main/Plugin%7E/WebRTCPlugin/UnityVulkanInterfaceFunctions.cpp#L17

@unity-cla-assistant
Copy link

unity-cla-assistant commented Mar 21, 2023

CLA assistant check
All committers have signed the CLA.

@karasusan
Copy link
Collaborator

It looks no matter for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Segmentation Fault Error on Linux Server Build with WebRTC-exp7 or above
3 participants