microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
898 stars 277 forks source link

Any update about Unity Crashed for Check failed: adm()? #815

Open xuhaozheng opened 2 years ago

xuhaozheng commented 2 years ago

As discussed in #684, @ANG0-0GNA has successfully imported MRTK into the VideoChatDemo in webrtc.samples. I also tried to do the same thing then the Unity always crashed and log output shows as:

Fatal error in: ../../media/engine/webrtcvoiceengine.cc, line 253 last system error: 0 Check failed: adm()

Before that, I tested the original VideoChatDemo and it worked fine on my PC.

There has been already much discussion about the ADM issues. As #507 describes this issue may be solved with the replacement of ADM2. If my understanding is right, the default ADM module is ADM2 by now with the value DefaultModule = 2.

Here are my questions:

  1. The MR-WebRTC package I used is MixedReality-WebRTC(version 2.0.2) installed by MixedRealityFeatureTool. Which version of ADM is used in this package by default?
  2. If the above package is still using ADM, how I could upgrade it to ADM2?
  3. If the ADM2 is used in this package, what will be the potential cause for Unity Crash?(To this question, I guess that the MRTK toolkit and WebRTC both ask permission for the microphone source while there's only one audio source in my laptop, then the crash happened. But I'm not sure considering someone has successfully imported MRTK into VideoChatDemo in #684)

Environment Configuration MRTK:2.7.2 MR-WebRTC:2.0.2 Unity:2020.3.14f VS:2019

Pacman18 commented 2 years ago

same problem happen to me