Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
739 stars 185 forks source link

[BUG]: standalone exe for the application When calling WebRTC.Initialize() app crashes #883

Open ybkimmm opened 1 year ago

ybkimmm commented 1 year ago

Package version

Others

Environment

* OS:windows10
* Unity version: 2022.2.1f1
unity webrtc version -> 2.4.0-exp.11

Steps To Reproduce

void Start() { WebRTC.Initialize(); }

Current Behavior

WebRTC. Initialize(); calling terminates the app

There are no errors in unity debug. No error alarms. just App is forced off

This happens on certain laptops. The graphics card is dual.

Intel integrated graphics and nvidia external graphics

Even if I disable the integrated graphics, same result

Graphics card versions are all up to date.

The graphics card model of the laptop is mx150 and intel uhd graphics 620

Can't use UnityWebrtc if my graphic card doesn't support encoder? I've attached a screenshot

Expected Behavior

exe or unityeditor also force quit

Anything else?

2023-03-20 141534

karasusan commented 1 year ago

Sorry for bother you. We should reproduce the issue but we have no environment. Some developers reported the same issue. https://github.com/Unity-Technologies/com.unity.webrtc/issues/806

ybkimmm commented 1 year ago

Sorry for bother you. We should reproduce the issue but we have no environment. Some developers reported the same issue. #806

NativeMethods.ContextCreate(id); crash in part Is there any way to solve it?

karasusan commented 1 year ago

@ybkimmm I think there is workaround that disabling NVIDIA graphics card.