Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Android libraries crashing on startup with given examples. #329

Open
HyperLethalVector opened this issue May 7, 2020 · 18 comments
Open
Assignees
Labels
bug Something isn't working platform:android Android specific issues

Comments

@HyperLethalVector
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Compile Android Libraries
  2. Build the Unity project for android using the standalone demo
  3. Launch on android, after the unity logo the scene freezes, then touching the screen will cause a crash
  4. See error

Expected behavior
The app not to crash

05-07 20:15:26.084 31356 31356 E InputEventReceiver: Exception dispatching input event.
05-07 20:15:26.084 31356 31356 E MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: Revision: '0'
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: ABI: 'arm64'
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: Timestamp: 2020-05-07 20:15:16+0930
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: pid: 31356, tid: 31433, name: Thread-3  >>> com.Microsoft.WebRTCSample <<<
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: uid: 10162
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x0  0000000000000000  x1  0000000000007ac9  x2  0000000000000006  x3  0000007c2543f530
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x4  fefefefefeff5573  x5  fefefefefeff5573  x6  fefefefefeff5573  x7  7f7f7f7f7f7f7f7f
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x8  00000000000000f0  x9  9055a4d03dcbeeed  x10 0000000000000001  x11 0000000000000000
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x12 fffffff0fffffbdf  x13 ffffffffffffffff  x14 0000000000000004  x15 ffffffffffffffff
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x16 0000007dad80a8c0  x17 0000007dad7e80c0  x18 0000007c22854000  x19 0000000000007a7c
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x20 0000000000007ac9  x21 00000000ffffffff  x22 0000007c25bad5df  x23 0000000000002d56
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x24 0000007d1f011d80  x25 0000007c34eee3f8  x26 0000007c25440020  x27 0000000000000048
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     x28 0000000002317b49  x29 0000007c2543f5d0
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:     sp  0000007c2543f510  lr  0000007dad79cf48  pc  0000007dad79cf74
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI: backtrace:
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #00 pc 0000000000081f74  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #01 pc 0000000000182040  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc_FatalMessage) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #02 pc 00000000001df3e4  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::JavaClass::GetMethodId(char const*, char const*)) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #03 pc 00000000003a41c8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioManager::AudioManager()+288) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #04 pc 000000000039eba8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::CreatePlatformSpecificObjects()+68) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #05 pc 000000000039ea90  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::CreateForTest(webrtc::AudioDeviceModule::AudioLayer)+140) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #06 pc 000000000039e9e8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer)+56) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #07 pc 00000000002b80b4  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceEngine::Init()+388) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #08 pc 00000000002a8a9c  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (cricket::CompositeMediaEngine<cricket::WebRtcVoiceEngine, cricket::WebRtcVideoEngine>::Init()+12) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #09 pc 00000000004582c0  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, cricket::ChannelManager::Init()::$_3>::OnMessage(rtc::Message*)+32) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #10 pc 000000000018b96c  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #11 pc 000000000018d2dc  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.085 31356 31356 E MessageQueue-JNI:       #12 pc 000000000018b130  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw
05-07 20:15:26.085 31356 31356 D AndroidRuntime: Shutting down VM
05-07 20:15:26.086  2076  2076 D lights  : write_int open fd=7
05-07 20:15:26.087 31356 31356 E AndroidRuntime: FATAL EXCEPTION: main
05-07 20:15:26.087 31356 31356 E AndroidRuntime: Process: com.Microsoft.WebRTCSample, PID: 31356
05-07 20:15:26.087 31356 31356 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-07 20:15:26.087 31356 31356 E AndroidRuntime: Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
05-07 20:15:26.087 31356 31356 E AndroidRuntime: Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
05-07 20:15:26.087 31356 31356 E AndroidRuntime: Revision: '0'
05-07 20:15:26.087 31356 31356 E AndroidRuntime: ABI: 'arm64'
05-07 20:15:26.087 31356 31356 E AndroidRuntime: Timestamp: 2020-05-07 20:15:16+0930
05-07 20:15:26.087 31356 31356 E AndroidRuntime: pid: 31356, tid: 31433, name: Thread-3  >>> com.Microsoft.WebRTCSample <<<
05-07 20:15:26.087 31356 31356 E AndroidRuntime: uid: 10162
05-07 20:15:26.087 31356 31356 E AndroidRuntime: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x0  0000000000000000  x1  0000000000007ac9  x2  0000000000000006  x3  0000007c2543f530
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x4  fefefefefeff5573  x5  fefefefefeff5573  x6  fefefefefeff5573  x7  7f7f7f7f7f7f7f7f
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x8  00000000000000f0  x9  9055a4d03dcbeeed  x10 0000000000000001  x11 0000000000000000
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x12 fffffff0fffffbdf  x13 ffffffffffffffff  x14 0000000000000004  x15 ffffffffffffffff
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x16 0000007dad80a8c0  x17 0000007dad7e80c0  x18 0000007c22854000  x19 0000000000007a7c
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x20 0000000000007ac9  x21 00000000ffffffff  x22 0000007c25bad5df  x23 0000000000002d56
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x24 0000007d1f011d80  x25 0000007c34eee3f8  x26 0000007c25440020  x27 0000000000000048
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     x28 0000000002317b49  x29 0000007c2543f5d0
05-07 20:15:26.087 31356 31356 E AndroidRuntime:     sp  0000007c2543f510  lr  0000007dad79cf48  pc  0000007dad79cf74
05-07 20:15:26.087 31356 31356 E AndroidRuntime:
05-07 20:15:26.087 31356 31356 E AndroidRuntime: backtrace:
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #00 pc 0000000000081f74  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #01 pc 0000000000182040  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc_FatalMessage) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #02 pc 00000000001df3e4  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::JavaClass::GetMethodId(char const*, char const*)) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #03 pc 00000000003a41c8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioManager::AudioManager()+288) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #04 pc 000000000039eba8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::CreatePlatformSpecificObjects()+68) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #05 pc 000000000039ea90  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::CreateForTest(webrtc::AudioDeviceModule::AudioLayer)+140) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #06 pc 000000000039e9e8  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer)+56) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #07 pc 00000000002b80b4  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceEngine::Init()+388) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #08 pc 00000000002a8a9c  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (cricket::CompositeMediaEngine<cricket::WebRtcVoiceEngine, cricket::WebRtcVideoEngine>::Init()+12) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #09 pc 00000000004582c0  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, cricket::ChannelManager::Init()::$_3>::OnMessage(rtc::Message*)+32) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #10 pc 000000000018b96c  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #11 pc 000000000018d2dc  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #12 pc 000000000018b130  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Get(rtc::Message*, int, bool)+140) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #13 pc 000000000018d010  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::Thread::ProcessMessages(int)+92) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #14 pc 000000000018cec0  /data/app/com.Microsoft.WebRTCSample-UO699SFolnx6hBFmr87axw==/lib/arm64/libmrwebrtc.so (rtc::Thread::PreRun(void*)+92) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #15 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:       #16 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5834b0231128ab3ef94abf71155cf61a) 05-07 20:15:26.087 31356 31356 E AndroidRuntime:
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libc.abort(abort:160)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc_FatalMessage(rtc_FatalMessage:0)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.webrtc::JavaClass::GetMethodId(char const*, char const*)(GetMethodId:0)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.webrtc::AudioManager::AudioManager()(AudioManager:288)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.webrtc::AudioDeviceModuleImpl::CreatePlatformSpecificObjects()(CreatePlatformSpecificObjects:68)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.webrtc::AudioDeviceModule::CreateForTest(webrtc::AudioDeviceModule::AudioLayer)(CreateForTest:140)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer)(Create:56)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.cricket::WebRtcVoiceEngine::Init()(Init:388)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.cricket::CompositeMediaEngine<cricket::WebRtcVoiceEngine, cricket::WebRtcVideoEngine>::Init()(Init:12)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::FunctorMessageHandler<bool, cricket::ChannelManager::Init()::$_3>::OnMessage(rtc::Message*)(Init:32)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::MessageQueue::Dispatch(rtc::Message*)(Dispatch:208)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)(ReceiveSendsFromThread:84)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::MessageQueue::Get(rtc::Message*, int, bool)(Get:140)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::Thread::ProcessMessages(int)(ProcessMessages:92)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libmrwebrtc.rtc::Thread::PreRun(void*)(PreRun:92)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libc.__pthread_start(void*)(__pthread_start:36)
05-07 20:15:26.087 31356 31356 E AndroidRuntime:        at libc.__start_thread(__start_thread:64)
05-07 20:15:26.097  2554 31485 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
05-07 20:15:26.097  2554  4296 W ActivityTaskManager:   Force finishing activity com.Microsoft.WebRTCSample/com.unity3d.player.UnityPlayerActivity
@djee-ms
Copy link
Member

djee-ms commented May 8, 2020

Confirmed I can repro, investigating...

@djee-ms djee-ms added the bug Something isn't working label May 8, 2020
@djee-ms djee-ms self-assigned this May 8, 2020
@djee-ms
Copy link
Member

djee-ms commented May 8, 2020

I have a workaround to unblock you, but I am puzzled how this ever worked before and is now broken, because we are still using the same branch as we were of libwebrtc. I will need more time to investigate why this broke, and how we can fix, because the workaround below requires modifying some Unity-generated files so cannot be committed.

  • Export the Unity project as an Android Studio project
  • Open the Android Studio project generated by Unity (in <android_build_folder> below)
  • Open <android_build_folder>\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java
  • At the top, below the list of imports, add import org.webrtc.ContextUtils;
  • At the very beginning of the onCreate() method, add ContextUtils.initialize(getApplicationContext());
  import android.view.WindowManager;
  import android.os.Process;
+ import org.webrtc.ContextUtils;
  
  public class UnityPlayerActivity extends Activity implements IUnityPlayerLifecycleEvents
  {
      protected UnityPlayer mUnityPlayer; // don't change the name of this variable; referenced from native code
  
      // Override this in your custom UnityPlayerActivity to tweak the command line arguments passed to the Unity Android Player
      // The command line arguments are passed as a string, separated by spaces
      // UnityPlayerActivity calls this from 'onCreate'
      // Supported: -force-gles20, -force-gles30, -force-gles31, -force-gles31aep, -force-gles32, -force-gles, -force-vulkan
      // See https://docs.unity3d.com/Manual/CommandLineArguments.html
      // @param cmdLine the current command line arguments, may be null
      // @return the modified command line string or null
      protected String updateUnityCommandLineArguments(String cmdLine)
      {
          return cmdLine;
      }
  
      // Setup activity layout
      @Override protected void onCreate(Bundle savedInstanceState)
      {
+         ContextUtils.initialize(getApplicationContext());
+
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          super.onCreate(savedInstanceState);

@HyperLethalVector
Copy link
Author

Alright I'll give it a shot tomorrow, although it should be possible to include our own activity manifests & code into the unity build pipeline, if I happen to get it working by auto generating these fixes, would you want me to create a merge request?

@djee-ms
Copy link
Member

djee-ms commented May 8, 2020

That would be great yes, thanks! I will continue to investigate how this broke and why it was working when we merged Android support a few weeks ago; I didn't change anything to my test setup, so I'd like to clarify this.

@djee-ms djee-ms added the platform:android Android specific issues label May 8, 2020
@HyperLethalVector
Copy link
Author

I've confirmed after following the above instructions, I'm able to load the built unity project on android, however once I create the offer it crashes :( (Still using the standalonedemo scene)

Does it work with a complete connection on your end?

2020-05-09 09:02:37.578 21519-21519/? E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
2020-05-09 09:02:37.583 21519-21519/? E/MessageQueue-JNI: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
    Revision: '0'
    ABI: 'arm64'
    Timestamp: 2020-05-09 09:02:34+0930
    pid: 21519, tid: 21673, name: WebRTC signalin  >>> com.Microsoft.WebRTCSample <<<
    uid: 10162
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x616469646e6163
        x0  74616469646e6163  x1  0000007d20458d80  x2  0000000000000000  x3  0000007c2923b980
        x4  0000000000000163  x5  0000000000000004  x6  0000000000000081  x7  0000000000000076
        x8  0101010101010101  x9  0000000000000001  x10 0000007c24882060  x11 0000007cad64b000
        x12 0000007cad644000  x13 0000000000000001  x14 0000000000000030  x15 0000000000000400
        x16 0000007cad5af160  x17 0000007dad799960  x18 0000007cad64b000  x19 74616469646e6163
        x20 0000007c2930c800  x21 0000007c2b017e00  x22 0000007c2b1e1400  x23 0000007c2b3c8a00
        x24 0000007c24881d50  x25 0000007c24881d50  x26 0000007c24882020  x27 0000007cc127f020
        x28 0000007cc127da70  x29 0000007c24881750
        sp  0000007c24881740  lr  0000007cac872638  pc  0000007dad799970
    
    backtrace:
          #00 pc 000000000007e970  /apex/com.android.runtime/lib64/bionic/libc.so (strlen+16) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
          #01 pc 000000000041c634  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libil2cpp.so (BuildId: ca8dc63959eea226e48e0658c5d78403931b63b2)
          #02 pc 00000000003e2384  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libil2cpp.so (BuildId: ca8dc63959eea226e48e0658c5d78403931b63b2)
          #03 pc 0000000000170d14  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (Microsoft::MixedReality::WebRTC::Callback<char const*, int, char const*>::operator()(char const*, int, char const*) const+148) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #04 pc 000000000014d5c4  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so ((anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)+312) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #05 pc 0000000000150738  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (non-virtual thunk to (anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)+36) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #06 pc 0000000000463540  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (webrtc::PeerConnection::OnTransportControllerCandidatesGathered(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)+132) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #07 pc 0000000000477104  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (void sigslot::_opaque_connection::emitter<webrtc::PeerConnection, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&>(sigslot::_opaque_connection const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)+56) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #08 pc 00000000005877e8  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (sigslot::signal_with_thread_policy<sigslot::single_threaded, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocato
2020-05-09 09:02:37.584 21519-21519/? D/AndroidRuntime: Shutting down VM
2020-05-09 09:02:37.589 21519-21519/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.Microsoft.WebRTCSample, PID: 21519
    java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
    Revision: '0'
    ABI: 'arm64'
    Timestamp: 2020-05-09 09:02:34+0930
    pid: 21519, tid: 21673, name: WebRTC signalin  >>> com.Microsoft.WebRTCSample <<<
    uid: 10162
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x616469646e6163
        x0  74616469646e6163  x1  0000007d20458d80  x2  0000000000000000  x3  0000007c2923b980
        x4  0000000000000163  x5  0000000000000004  x6  0000000000000081  x7  0000000000000076
        x8  0101010101010101  x9  0000000000000001  x10 0000007c24882060  x11 0000007cad64b000
        x12 0000007cad644000  x13 0000000000000001  x14 0000000000000030  x15 0000000000000400
        x16 0000007cad5af160  x17 0000007dad799960  x18 0000007cad64b000  x19 74616469646e6163
        x20 0000007c2930c800  x21 0000007c2b017e00  x22 0000007c2b1e1400  x23 0000007c2b3c8a00
        x24 0000007c24881d50  x25 0000007c24881d50  x26 0000007c24882020  x27 0000007cc127f020
        x28 0000007cc127da70  x29 0000007c24881750
        sp  0000007c24881740  lr  0000007cac872638  pc  0000007dad799970
    
    backtrace:
          #00 pc 000000000007e970  /apex/com.android.runtime/lib64/bionic/libc.so (strlen+16) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
          #01 pc 000000000041c634  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libil2cpp.so (BuildId: ca8dc63959eea226e48e0658c5d78403931b63b2)
          #02 pc 00000000003e2384  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libil2cpp.so (BuildId: ca8dc63959eea226e48e0658c5d78403931b63b2)
          #03 pc 0000000000170d14  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (Microsoft::MixedReality::WebRTC::Callback<char const*, int, char const*>::operator()(char const*, int, char const*) const+148) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #04 pc 000000000014d5c4  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so ((anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)+312) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #05 pc 0000000000150738  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (non-virtual thunk to (anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)+36) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #06 pc 0000000000463540  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (webrtc::PeerConnection::OnTransportControllerCandidatesGathered(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)+132) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #07 pc 0000000000477104  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (void sigslot::_opaque_connection::emitter<webrtc::PeerConnection, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&>(sigslot::_opaque_connection const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)+56) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
2020-05-09 09:02:37.590 21519-21519/? E/AndroidRuntime:       #08 pc 00000000005877e8  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (sigslot::signal_with_thread_policy<sigslot::single_threaded, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&>::emit(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)+64) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #09 pc 000000000058777c  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (rtc::FireAndForgetAsyncClosure<webrtc::JsepTransportController::OnTransportCandidateGathered_n(cricket::IceTransportInternal*, cricket::Candidate const&)::$_13>::Execute()+120) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #10 pc 000000000032ae84  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (rtc::AsyncInvoker::OnMessage(rtc::Message*)+28) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #11 pc 000000000018b96c  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #12 pc 000000000018d028  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (rtc::Thread::ProcessMessages(int)+116) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #13 pc 000000000018cec0  /data/app/com.Microsoft.WebRTCSample-KWmPPXq5yooeZKzmeWoCPQ==/lib/arm64/libmrwebrtc.so (rtc::Thread::PreRun(void*)+92) (BuildId: 5bb4230c162ac5411b3fc68948cb7eb4608796d5)
          #14 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
          #15 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
    
        at libc.strlen(strlen:16)
        at libil2cpp.0x41c634(Native Method)
        at libil2cpp.0x3e2384(Native Method)
        at libmrwebrtc.Microsoft::MixedReality::WebRTC::Callback<char const*, int, char const*>::operator()(char const*, int, char const*) const(operator:148)
        at libmrwebrtc.(anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)(:312)
        at libmrwebrtc.non-virtual thunk to (anonymous namespace)::PeerConnectionImpl::OnIceCandidate(webrtc::IceCandidateInterface const*)(non-virtual thunk to :36)
        at libmrwebrtc.webrtc::PeerConnection::OnTransportControllerCandidatesGathered(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)(OnTransportControllerCandidatesGathered:132)
        at libmrwebrtc.void sigslot::_opaque_connection::emitter<webrtc::PeerConnection, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&>(sigslot::_opaque_connection const*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)(Candidate> > const&>:56)
        at libmrwebrtc.sigslot::signal_with_thread_policy<sigslot::single_threaded, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&>::emit(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::vector<cricket::Candidate, std::__ndk1::allocator<cricket::Candidate> > const&)(emit:64)
2020-05-09 09:02:37.591 21519-21519/? E/AndroidRuntime:     at libmrwebrtc.rtc::FireAndForgetAsyncClosure<webrtc::JsepTransportController::OnTransportCandidateGathered_n(cricket::IceTransportInternal*, cricket::Candidate const&)::$_13>::Execute()(OnTransportCandidateGathered_n:120)
        at libmrwebrtc.rtc::AsyncInvoker::OnMessage(rtc::Message*)(OnMessage:28)
        at libmrwebrtc.rtc::MessageQueue::Dispatch(rtc::Message*)(Dispatch:208)
        at libmrwebrtc.rtc::Thread::ProcessMessages(int)(ProcessMessages:116)
        at libmrwebrtc.rtc::Thread::PreRun(void*)(PreRun:92)
        at libc.__pthread_start(void*)(__pthread_start:36)
        at libc.__start_thread(__start_thread:64)

@djee-ms
Copy link
Member

djee-ms commented May 11, 2020

It crashes for me as well, but not sure this is the same, today I am in a weird state were the app seems to be running (I can pause it with the debugger) but also seems completely unresponsive after starting to establish a connection. I am not sure if this is due to a bug or there's something wrong with my setup or Android Studio.

Looking at your callstack, I recently changed the arguments to use a struct for ICE candidates. I bet there is once again an issue with marshaling that; this is a real pain between C# and IL2CPP not always doing things consistently. I had tried that change on IL2CPP on Windows, but maybe it doesn't work on Android. I will try to repro as soon as I am out of this weird debugger state. For now I can't get any crash but also cannot get any connection started nor any logging, which makes little sense.

@HyperLethalVector
Copy link
Author

That's fine, if there is anything I can do to help, please let me know!

@djee-ms
Copy link
Member

djee-ms commented May 11, 2020

Thanks, I just need a bit of time to debug. I found there's most likely a deadlock when creating the offer, which is why the app is in this weird semi-responsive state and rendering stops, as the main Unity app thread is blocked waiting, but the app itself is still running (albeit doing nothing).

@djee-ms
Copy link
Member

djee-ms commented May 11, 2020

  • I logged Unity Android deadlocks when trying to use WebcamSource #335 which is related to video capture. Avoid using WebcamSource for now (disable the component), even if video capture is not supported it shouldn't deadlock but it currently does.
  • I disabled video capture in VideoChatDemo and can now repro some other bug/crash. There seem to be a desync in transceivers and media lines, which leads to various Debug.Assert and eventually some C++ exception on reading some mid().value() which is not assigned (std::bad_optional_access). This may be related to the fact the component is disabled. I continue to investigate.
  • Looking again at your callstack where it crashes on std::strlen() I think this is unrelated to all of that, and you might have some outdated Android library OR outdated Unity scripts, so marshaling assumes one form of ICE candidate argument on one side (e.g. old one = string) and deserializes as another one on the other side (e.g. new one = struct containing a string). In short I think it's calling std::strlen(struct mrsIceCandidate*). Can you please triple-check @HyperLethalVector that both your mrwebrtc.aar and your Unity integration scripts use the same commit, and especially either both before or after f427c44 "Use message struct for ICE candidates" but not a mix of before/after?

@djee-ms
Copy link
Member

djee-ms commented May 12, 2020

I root-caused the second item above, which is due to compiling libwebrtc.a with c++14 and linking it inside libmrwebrtc.so compiled with c++17, causing some binary mismatch in the absl::optional implementation. This will need a bit of work to fix, but we already did the same on the experimental/undock branch so we know how to do this.

@djee-ms
Copy link
Member

djee-ms commented May 12, 2020

I confirmed that downgrading to C++14 fixes the issue I found, and opened a PR (#340) to fix. I am still not sure this is the same thing you are hitting @HyperLethalVector though. And there's still a bug when the WebcamSource is not disabled, logged as #335.

@HyperLethalVector
Copy link
Author

Hi!
I recompiled from todays pull, and the library seems to have loaded up, seems that a permission isn't being set properly in the manifest, (see error) I'll edit the exported gradle project and see how that goes.

2020-05-15 17:22:09.286 1711-1776/? W/Unity: PreferredVideoCodec is currently a per-PeerConnection setting; overriding the value for peer connection '' with track's value of 'VP8'.
    Microsoft.MixedReality.WebRTC.Unity.VideoSender:<DestroyLocalTrack>b__26_0()
    System.Array:UnsafeStore(T[], Int32, T)
    Microsoft.MixedReality.WebRTC.Unity.VideoSender:AttachTrackAsync()
    Microsoft.MixedReality.WebRTC.Unity.MediaLine:UpdateOnReceiveAnswer()
    System.Array:UnsafeStore(T[], Int32, T)
    Microsoft.MixedReality.WebRTC.Unity.MediaLine:AttachTrackAsync()
    Microsoft.MixedReality.WebRTC.Unity.MediaLine:UpdateOnReceiveAnswer()
    System.Array:UnsafeStore(T[], Int32, T)
    Microsoft.MixedReality.WebRTC.Unity.MediaLine:UpdateForCreateOfferAsync(Transceiver)
    Microsoft.MixedReality.WebRTC.Unity.PeerConnection:StartConnection()
    UnityEngine.Events.UnityAction:Invoke()
    UnityEngine.Events.UnityEvent:Invoke()
    UnityEngine.EventSystems.EventFunction`1:Invoke(T1, BaseEventData)
    UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    UnityEngine.EventSystems.St
2020-05-15 17:22:09.308 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.341 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.361 1711-1776/? I/Unity: Sending Offer: v=0
    o=- 1223878301705299485 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE 0 1 2
    a=msid-semantic: WMS
    m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:LJJe
    a=ice-pwd:jqkF+aZnkXWooHbQ7zXOab0c
    a=ice-options:trickle
    a=fingerprint:sha-256 C5:88:C2:FF:5E:99:F1:8E:1B:6A:09:92:62:27:E6:E3:77:4F:FA:A0:51:AE:F0:CD:CB:2B:63:3E:A0:38:D9:3B
    a=setup:actpass
    a=mid:0
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
    a=sendrecv
    a=msid:- db2810ab-2fe2-466d-8746-b69113cfd5b7
    a=rtcp-mux
    a=rtpmap:111 opus/48000/2
    a=rtcp-fb:111 transport-cc
    a=fmtp:111 minptime=10;useinbandfec=1
    a=rtpmap:103 ISAC/16000
    a=rtpmap:104 ISAC/32000
    a=rtpmap:9 G722/8000
    a=rtpmap:102 ILBC/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:106 CN/32000
    a=rtpmap:105 CN/16000
    a=rtpmap:13 CN/8000
    a=rtpmap:110 telephone-event/48000
    a=rtpmap:112 telephone-event/32000
    a=rtpmap:113
2020-05-15 17:22:09.377 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.505 2032-2345/? I/chatty: uid=1000(system) Dispatcher_0 identical 4 lines
2020-05-15 17:22:09.537 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.562 1711-1776/? I/Unity: Received Answer: v=0
    o=- 3407086225826020792 2 IN IP4 127.0.0.1
    s=-
    t=0 0
    a=group:BUNDLE 0 1 2
    a=msid-semantic: WMS
    m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
    c=IN IP4 0.0.0.0
    a=rtcp:9 IN IP4 0.0.0.0
    a=ice-ufrag:hxp3
    a=ice-pwd:5Xv3Jf/IJ6vdjGlpLtOm1a5W
    a=ice-options:trickle
    a=fingerprint:sha-256 96:D8:D8:A5:4D:37:C8:86:BB:B6:5C:17:73:CC:E9:2A:84:DD:2D:9C:D3:86:00:B6:11:57:28:7E:03:82:B2:5A
    a=setup:active
    a=mid:0
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
    a=sendrecv
    a=msid:- c50172be-d7ee-45e7-b5cf-011083181eb5
    a=rtcp-mux
    a=rtpmap:111 opus/48000/2
    a=rtcp-fb:111 transport-cc
    a=fmtp:111 minptime=10;useinbandfec=1
    a=rtpmap:103 ISAC/16000
    a=rtpmap:104 ISAC/32000
    a=rtpmap:9 G722/8000
    a=rtpmap:102 ILBC/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:106 CN/32000
    a=rtpmap:105 CN/16000
    a=rtpmap:13 CN/8000
    a=rtpmap:110 telephone-event/48000
    a=rtpmap:112 telephone-event/32000
    a=rtpmap:11
2020-05-15 17:22:09.570 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.592 1711-1889/? D/OpenSLESPlayer: InitPlayout[tid=1889]
2020-05-15 17:22:09.592 1711-1889/? D/OpenSLESPlayer: ObtainEngineInterface
2020-05-15 17:22:09.592 1711-1889/? D/OpenSLESPlayer: CreateMix
2020-05-15 17:22:09.593 1711-1889/? D/OpenSLESPlayer: StartPlayout[tid=1889]
2020-05-15 17:22:09.593 1711-1889/? D/OpenSLESPlayer: CreateAudioPlayer
2020-05-15 17:22:09.593 1711-1889/? I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x1 based on channel count of 1)
2020-05-15 17:22:09.594 2110-10675/? W/AudioFlinger: createTrack_l(): mismatch between requested flags (00000104) and output flags (00000002)
2020-05-15 17:22:09.594 2110-10675/? D/AudioFlinger: Client defaulted notificationFrames to 960 for frameCount 2052
2020-05-15 17:22:09.596 2110-10675/? D/AF::TrackHandle: OpPlayAudio: track:130 usage:2 not muted
2020-05-15 17:22:09.597 1711-1889/? W/AudioTrack: createTrack_l(269488144): AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 2052
2020-05-15 17:22:09.599 2764-2764/com.android.bluetooth V/AvrcpMediaPlayerList: onPlaybackConfigChanged(): Configs list size=11
2020-05-15 17:22:09.600 2068-11748/? D/AudioALSAHardware: setVoiceVolume(), volume = 0.000000, mUseTuningVolume = 0
2020-05-15 17:22:09.600 2068-11748/? D/AudioALSAStreamManager: setVoiceVolume(), volume = 0.000000
2020-05-15 17:22:09.600 2068-11748/? D/AudioMTKGainController: setVoiceVolume(), index = -1, devices = 0x2, mode = 0, mBand = 1, mNetwork = 0, mVoiceVolume = 0.000000
2020-05-15 17:22:09.600 2068-11748/? W/AudioMTKGainController: error, index -1 is invalid, use max 7 instead
2020-05-15 17:22:09.600 2068-11748/? D/AudioMTKGainController: ApplyMicGain(), mSceneIndex = 0, _mic_mode = 0, _gain_device = 2, mode = 0, micgain = 34, mULTotalGain = 208, mBand 1, mNetwork 0
2020-05-15 17:22:09.600 2068-11748/? D/AudioMTKGainController: ApplyMicGain(), SetAdcPga1 = 4, SetAdcPga2 = 4
2020-05-15 17:22:09.601 2068-11748/? D/AudioMTKGainController: ApplySideTone gainDevice 2, sidetone 0, updated_sidetone 0
2020-05-15 17:22:09.601 2068-11748/? W/AudioALSASpeechPhoneCallController: muteDlUlForRouting(), speech off!! do nothing!!
2020-05-15 17:22:09.602 1711-1711/? V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2020-05-15 17:22:09.603 2032-2345/? D/MDP: DpAsyncBlitStream: rot(90) flip(0) padding(9)
2020-05-15 17:22:09.670 2233-2638/? I/ 2233  2638 [sunwave-hal]: (711) 'healthMonitoringThread' enter.
2020-05-15 17:22:09.670 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:09.670 2233-2638/? I/ 2233  2638 [sunwave-ta-core]: (2869) 'sf_get_device_state' state:0008
2020-05-15 17:22:09.671 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:09.671 2233-2638/? I/ 2233  2638 [sunwave-hal]: (725) 'healthMonitoringThread' state:0008
2020-05-15 17:22:09.672 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:09.672 2233-2638/? I/ 2233  2638 [sunwave-ic8201]: (181) low power
2020-05-15 17:22:09.672 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:09.691 2068-2466/? D/AudioALSAHardware: +routing createAudioPatch Mixer->1
2020-05-15 17:22:09.691 2068-2466/? D/AudioALSAStreamManager: +setParameters(), IOport = 13, keyValuePairs = routing=1
2020-05-15 17:22:09.692 2068-2466/? D/AudioALSAStreamManager: +routingOutputDevice(), flag: 2, output_devices: 0x2 => 0x1, mPhoneCallSpeechOpen = 0
2020-05-15 17:22:09.692 2068-2466/? D/AudioALSAStreamManager: -routingOutputDevice(), stream out not active, route itself and return
2020-05-15 17:22:09.692 2068-2466/? D/AudioALSAStreamOut: +routing(), route output device from 2 to 1, flag 2
2020-05-15 17:22:09.696 2068-11932/? D/AudioALSAStreamManager: +syncSharedOutDevice(), routingSharedOutDevice: 1
2020-05-15 17:22:09.696 2068-11932/? D/AudioALSAStreamOut: +setSuspend(), mSuspendCount = 0, suspend_on = 1, flags 4
2020-05-15 17:22:09.697 1711-1889/? D/OpenSLESRecorder: InitRecording[tid=1889]
2020-05-15 17:22:09.697 1711-1889/? D/OpenSLESRecorder: ObtainEngineInterface
2020-05-15 17:22:09.697 1711-1889/? D/OpenSLESRecorder: CreateAudioRecorder
2020-05-15 17:22:09.697 1711-1889/? W/libOpenSLES: Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
2020-05-15 17:22:09.697 1711-1889/? I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
2020-05-15 17:22:09.698 2110-10675/? E/ServiceUtilities: Request requires android.permission.RECORD_AUDIO
2020-05-15 17:22:09.698 2110-10675/? E/AudioPolicyIntefaceImpl: getInputForAttr permission denied: recording not allowed for uid 10162 pid 1711
2020-05-15 17:22:09.698 2110-10675/? E/AudioFlinger: createRecord() getInputForAttr return error -1
2020-05-15 17:22:09.698 1711-1889/? E/IAudioFlinger: createRecord returned error -1
2020-05-15 17:22:09.698 1711-1889/? E/AudioRecord: createRecord_l(269488144): AudioFlinger could not create record track, status: -1
2020-05-15 17:22:09.698 1711-1889/? E/libOpenSLES: android_audioRecorder_realize(0x7c6fdf2800) error creating AudioRecord object; status -1
2020-05-15 17:22:09.700 1711-1889/? W/libOpenSLES: Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED)
2020-05-15 17:22:09.700 1711-1889/? E/OpenSLESRecorder: ../../../../modules/audio_device/android/opensles_recorder.cc:281 (recorder_object_->Realize(recorder_object_.Get(), SL_BOOLEAN_FALSE)) failed: SL_RESULT_CONTENT_UNSUPPORTED
2020-05-15 17:22:09.700 1711-1889/? D/OpenSLESRecorder: StartRecording[tid=1889]
2020-05-15 17:22:09.701 2068-11932/? D/AudioALSAStreamOut: +routing(), route output device from 2 to 1, flag 4
2020-05-15 17:22:09.701 2068-11932/? D/AudioALSAStreamOut: close(), flags 4
2020-05-15 17:22:09.701 2068-11932/? D/AudioALSAPlaybackHandlerFast: +close()
2020-05-15 17:22:09.701 2068-11932/? D/AudioVoiceUIDL: [SetInputStandBy] ReadRefFromRing to exit? (0) 
2020-05-15 17:22:09.701 2068-11932/? D/AudioALSAHardwareResourceManager: +stopOutputDevice(), mOutputDevices = 0x2, mStartOutputDevicesCount = 1
2020-05-15 17:22:09.701 2068-11932/? D/AudioSmartPaController: speakerOff()
2020-05-15 17:22:09.727 1711-1889/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: Revision: '0'
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: ABI: 'arm64'
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: Timestamp: 2020-05-15 17:22:09+0930
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: pid: 1711, tid: 1889, name: Thread-3  >>> com.Microsoft.WebRTCSample <<<
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: uid: 10162
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: Cause: null pointer dereference
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x0  0000000000000000  x1  0000007c69306798  x2  0000000000000005  x3  0000000000000003
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x4  00496e6974526563  x5  0000000000800080  x6  07003c1d086e2e00  x7  802eee081d3c0007
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x8  310d5c66545e172d  x9  310d5c66545e172d  x10 0000007c69306240  x11 0000000000000019
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x12 0000000000000000  x13 0000000000000001  x14 0000000000000008  x15 0000243fbf627f6f
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x16 0000007deeab0640  x17 0000007def776e60  x18 0000007c663bc000  x19 0000007c6fd46448
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x20 0000007c6fd46200  x21 000000000000bb80  x22 0000007c6f9118a8  x23 0000007c4d243150
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x24 0000007c69306910  x25 0000007c6fd45af8  x26 0000007c69307020  x27 0000000000000048
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     x28 00000000022bd0b3  x29 0000007c693067a0
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:     sp  0000007c69306790  lr  0000007c697d73b8  pc  0000007c697d7944
2020-05-15 17:22:09.728 1711-1889/? E/CRASH: backtrace:
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:       #00 pc 00000000003cf944  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::GetBufferQueueState() const+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:       #01 pc 00000000003cf3b4  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::StartRecording()+56) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.728 1711-1889/? E/CRASH:       #02 pc 00000000003c8690  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::StartRecording()+104) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #03 pc 000000000033da48  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::internal::AudioState::AddSendingStream(webrtc::AudioSendStream*, int, unsigned long)+108) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #04 pc 00000000002e9ffc  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceMediaChannel::SetSend(bool)+228) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #05 pc 00000000005a70f0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::UpdateMediaSendRecvState_w()+100) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #06 pc 00000000005a74d0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::SetRemoteContent_w(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)+268) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #07 pc 00000000005a9b6c  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, rtc::MethodFunctor<cricket::BaseChannel, bool (cricket::BaseChannel::*)(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*), bool, cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*> const&>::OnMessage(rtc::Message*)+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #08 pc 00000000001b5604  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #09 pc 00000000001b6f74  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #10 pc 00000000001b4dc8  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Get(rtc::Message*, int, bool)+140) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #11 pc 00000000001b6ca8  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::ProcessMessages(int)+92) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #12 pc 00000000001b6b58  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::PreRun(void*)+92) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #13 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
2020-05-15 17:22:09.729 1711-1889/? E/CRASH:       #14 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
2020-05-15 17:22:09.758 2068-11932/? D/AudioSmartPaController: +dspOnBoardSpeakerOff()
2020-05-15 17:22:09.759 2068-11932/? D/AudioALSAStreamManager: speakerStatusChangeCb(), status = 1
2020-05-15 17:22:09.760 2068-11932/? D/AudioALSAPlaybackHandlerBase: -closePcmDriver(), mPcm = 0x0
2020-05-15 17:22:09.760 2068-11932/? D/AudioALSAPlaybackHandlerFast: SetLowJitterMode(), bypass low jitter mode, bEnable = 0, SampleRate = 48000
2020-05-15 17:22:09.760 2068-11932/? D/AudioALSAPlaybackHandlerBase: DestroyAurisysLibManager()
2020-05-15 17:22:09.760 2068-11932/? D/aurisys_lib_handler: aurisys_arsi_destroy_handler(), lib_name mtk_bessound, 0xf3faf680, arsi_destroy_handler, arsi_handler = 0xf1389b40, retval = 0
2020-05-15 17:22:09.760 2068-11932/? D/aurisys_lib_manager: delete_aurisys_lib_manager(), manager 0xf3f7dee0
2020-05-15 17:22:09.760 2068-11932/? D/AudioALSAPlaybackHandlerFast: -close()
2020-05-15 17:22:09.761 2068-11932/? D/AudioALSAStreamOut: +setSuspend(), mSuspendCount = 1, suspend_on = 0, flags 4
2020-05-15 17:22:09.761 2068-11932/? D/AudioMTKGainController: setNormalVolume(), mSceneIndex = 0, stream -1, devices 0x1, index -1, mode 0x0
2020-05-15 17:22:09.761 2068-11932/? W/AudioMTKGainController: error, stream -1 is invalid, use 3 instead
2020-05-15 17:22:09.761 2068-11932/? W/AudioMTKGainController: error, index -1 is invalid, use max 15 instead
2020-05-15 17:22:09.761 2068-11932/? D/AudioALSAStreamManager: -syncSharedOutDevice()
2020-05-15 17:22:09.761 2068-11932/? D/AudioALSAStreamManager: setMasterVolume(), volume = 1.000000
2020-05-15 17:22:09.761 2068-11932/? D/AudioMTKGainController: setNormalVolume(), mSceneIndex = 0, stream -1, devices 0x1, index -1, mode 0x0
2020-05-15 17:22:09.761 2068-11932/? W/AudioMTKGainController: error, stream -1 is invalid, use 3 instead
2020-05-15 17:22:09.761 2068-11932/? W/AudioMTKGainController: error, index -1 is invalid, use max 15 instead
2020-05-15 17:22:09.761 2068-11932/? D/AudioALSAStreamOut: open(), flags 2
2020-05-15 17:22:09.761 2068-9747/? D/AudioALSAStreamManager: setMasterVolume(), volume = 1.000000
2020-05-15 17:22:09.761 2068-9747/? D/AudioMTKGainController: setNormalVolume(), mSceneIndex = 0, stream -1, devices 0x1, index -1, mode 0x0
2020-05-15 17:22:09.761 2068-11932/? D/AudioALSAStreamManager: +createPlaybackHandler(), mAudioMode = 0, output_devices = 0x1, isMixerOut = 0x0, flag = 2
2020-05-15 17:22:09.761 2068-9747/? W/AudioMTKGainController: error, stream -1 is invalid, use 3 instead
2020-05-15 17:22:09.761 2068-11932/? D/AudioSpeechEnhanceInfo: IsAPDMNRTuningEnable(), 0
2020-05-15 17:22:09.761 2068-9747/? W/AudioMTKGainController: error, index -1 is invalid, use max 15 instead
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSAPlaybackHandlerNormal: +open(), flag 2, mDevice = 0x1
2020-05-15 17:22:09.762 2068-9747/? D/AudioALSAStreamOut: open(), flags 4
2020-05-15 17:22:09.762 2068-9747/? D/AudioALSAStreamManager: +createPlaybackHandler(), mAudioMode = 0, output_devices = 0x1, isMixerOut = 0x0, flag = 4
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSADeviceParser: compare pcm success = 7, stringpair = I2S0DL1_PLayback
2020-05-15 17:22:09.762 2068-9747/? D/AudioSpeechEnhanceInfo: IsAPDMNRTuningEnable(), 0
2020-05-15 17:22:09.762 2068-9747/? D/AudioALSAPlaybackHandlerFast: AudioALSAPlaybackHandlerFast()
2020-05-15 17:22:09.762 2068-9747/? D/AudioALSAPlaybackHandlerFast: +open(), mDevice = 0x1
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSAPlaybackHandlerNormal: ChooseTargetSampleRate() hifi_enable = 0 device_support_hifi = 0
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSAPlaybackHandlerBase: transferAudioFormatToPcmFormat(), audio_format(0x4) => pcm_format(0x1)
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSAPlaybackHandlerNormal: open(), mConfig: channels = 2, rate = 48000, period_size = 1024, period_count = 2, format = 1, avail_min = 1024, start_threshold = 2048
2020-05-15 17:22:09.762 2068-11932/? D/AudioALSAPlaybackHandlerNormal: SetLowJitterMode(), bypass low jitter mode, bEnable = 1, device = 0x1, SampleRate = 48000
2020-05-15 17:22:09.764 2068-11932/? D/AudioALSAPlaybackHandlerBase: openPcmDriverWithFlag(), pcm device = 7 flag = 0x8 mPcm = 0xf3f4eee0
2020-05-15 17:22:09.764 2068-11932/? D/AudioALSAPlaybackHandlerBase: CreateAurisysLibManager, voip: 0, mAurisysScenario: 0
2020-05-15 17:22:09.764 2068-9747/? D/AudioALSADeviceParser: compare pcm success = 23, stringpair = MultiMedia2_PLayback
2020-05-15 17:22:09.764 2068-11932/? D/aurisys_utility: input dev: 0x0, fmt = 0x3, fs: 48000, max fs: 48000, ch: 2, max ch: 2, ch maks: 0x3, hw_info_mask: 0x0; output dev: 0x1, fmt = 0x3, fs: 48000, max fs: 48000, ch: 2, max ch: 2, ch maks: 0x3, hw_info_mask: 0x8; task_scene: 2, audio_mode: 0, output_flags: 0x2, input_source: 0, input_flags: 0x0, enhancement_feature_mask: 0x0
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_utility: lib, working fs: 48000, fmt: 0x3, frame = 0, b_interleave = 1, num_ul_ref_buf_array = 0, num_dl_ref_buf_array = 0
2020-05-15 17:22:09.765 2068-9747/? D/AudioALSAPlaybackHandlerBase: transferAudioFormatToPcmFormat(), audio_format(0x4) => pcm_format(0x1)
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_utility: dl in[type:2], ch: 2, ch_mask: 0x0, buf fs: 48000, buf content fs: 48000, fmt: 0x3; dl out[type:3], ch: 2, ch_mask: 0x0, buf fs: 48000, buf content fs: 48000, fmt: 0x3
2020-05-15 17:22:09.765 2068-9747/? D/AudioALSAPlaybackHandlerFast: open(), mConfig: channels = 2, rate = 48000, period_size = 256, period_count = 2, format = 1, buffer size 4096 2048
2020-05-15 17:22:09.765 2068-9747/? D/AudioALSAPlaybackHandlerBase: CreateAurisysLibManager, voip: 0, mAurisysScenario: 1
2020-05-15 17:22:09.765 2068-11932/? D/AudioCompFltCustParam: getPlaybackPostProcessParameterFromXML Type/Name [0]/[PlaybackACF]
2020-05-15 17:22:09.765 2068-9747/? D/aurisys_utility: input dev: 0x0, fmt = 0x3, fs: 48000, max fs: 48000, ch: 2, max ch: 2, ch maks: 0x3, hw_info_mask: 0x0; output dev: 0x1, fmt = 0x3, fs: 48000, max fs: 48000, ch: 2, max ch: 2, ch maks: 0x3, hw_info_mask: 0x8; task_scene: 2, audio_mode: 0, output_flags: 0x4, input_source: 0, input_flags: 0x0, enhancement_feature_mask: 0x0
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_lib_handler: aurisys_arsi_parsing_param_file(), gProductInfo "platform=MT6771,device=BV9800,model=BV9800", file_path "/vendor/etc/audio_param", enhancement_mode 0, param_buf_size 2528, data_size 2528
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_lib_handler: aurisys_arsi_create_handler(), lib_name mtk_bessound, 0xf3faf680, memory_size 72532, arsi_handler 0xf1389e80, retval 0
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_lib_handler: aurisys_arsi_create_handler(), arsi_query_process_unit_bytes, ul 0, dl 4096, retval 0
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_lib_manager: DL Lib, lib_name mtk_bessound, 0xf3faf680, sample_rate: 48000 => 48000, num_channels: 2 => 2, audio_format: 0x3 => 0x3, interleave: 1 => 1, frame: 0 => 0
2020-05-15 17:22:09.765 2068-11932/? D/aurisys_lib_manager: DL out, sample_rate: 48000 => 48000, num_channels: 2 => 2, audio_format: 0x3 => 0x4, interleave: 1 => 1, frame: 0 => 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_utility: lib, working fs: 48000, fmt: 0x3, frame = 0, b_interleave = 1, num_ul_ref_buf_array = 0, num_dl_ref_buf_array = 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_utility: dl in[type:2], ch: 2, ch_mask: 0x0, buf fs: 48000, buf content fs: 48000, fmt: 0x3; dl out[type:3], ch: 2, ch_mask: 0x0, buf fs: 48000, buf content fs: 48000, fmt: 0x3
2020-05-15 17:22:09.766 2068-9747/? D/AudioCompFltCustParam: getPlaybackPostProcessParameterFromXML Type/Name [0]/[PlaybackACF]
2020-05-15 17:22:09.766 2068-11932/? D/AudioALSAHardwareResourceManager: +startOutputDevice(), new_devices = 0x1, mOutputDevices = 0x0, mStartOutputDevicesCount = 0 SampleRate = 48000
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_lib_handler: aurisys_arsi_parsing_param_file(), gProductInfo "platform=MT6771,device=BV9800,model=BV9800", file_path "/vendor/etc/audio_param", enhancement_mode 0, param_buf_size 2528, data_size 2528
2020-05-15 17:22:09.766 2068-11932/? D/AudioALSADeviceConfigManager: ApplyDeviceTurnonSequenceByName() DeviceName = receiver_output descriptor->DeviceStatusCounte = 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_lib_handler: aurisys_arsi_create_handler(), lib_name mtk_bessound, 0xf3faf840, memory_size 72532, arsi_handler 0xf10e8580, retval 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_lib_handler: aurisys_arsi_create_handler(), arsi_query_process_unit_bytes, ul 0, dl 512, retval 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_lib_manager: DL Lib, lib_name mtk_bessound, 0xf3faf840, sample_rate: 48000 => 48000, num_channels: 2 => 2, audio_format: 0x3 => 0x3, interleave: 1 => 1, frame: 0 => 0
2020-05-15 17:22:09.766 2068-9747/? D/aurisys_lib_manager: DL out, sample_rate: 48000 => 48000, num_channels: 2 => 2, audio_format: 0x3 => 0x4, interleave: 1 => 1, frame: 0 => 0
2020-05-15 17:22:09.766 2068-9747/? D/AudioALSAPlaybackHandlerFast: SetLowJitterMode(), bypass low jitter mode, bEnable = 1, SampleRate = 48000
2020-05-15 17:22:09.772 2068-11932/? D/AudioVoiceUIDL: [GetSRCInputParameter] mOutputSampleRate 16000,  mInputSampleRate 48000, mInChannel 2, mOutChannel, 0 format 4
2020-05-15 17:22:09.772 2068-11932/? D/AudioVoiceUIDL: [GetSRCInputParameter] create SRC handle fail
2020-05-15 17:22:09.772 2068-11932/? D/AudioALSAPlaybackHandlerNormal: -open()
2020-05-15 17:22:09.772 2068-11932/? D/AudioALSAPlaybackHandlerNormal: +setScreenState(), flag = 2, mode = 1, sample_rate = 48000, buffer_size = 16384, hifi_enable = 0 device_support_hifi = 0
2020-05-15 17:22:09.772 2068-11932/? D/AudioALSAPlaybackHandlerNormal: setScreenState, flag 2, rate 1024 0.021333, mode = 1 , buffer_size = 8192, channel 2, format4, reduceInterruptSize = 1024
2020-05-15 17:22:09.772 2068-9747/? D/AudioALSAPlaybackHandlerBase: openPcmDriverWithFlag(), pcm device = 23 flag = 0x8 mPcm = 0xf3f4ec40
2020-05-15 17:22:09.772 2068-9747/? D/AudioALSAHardwareResourceManager: +startOutputDevice(), new_devices = 0x1, mOutputDevices = 0x1, mStartOutputDevicesCount = 1 SampleRate = 48000
2020-05-15 17:22:09.772 2068-9747/? D/AudioVoiceUIDL: [GetSRCInputParameter] mOutputSampleRate 16000,  mInputSampleRate 48000, mInChannel 2, mOutChannel, 0 format 4
2020-05-15 17:22:09.772 2068-9747/? D/AudioVoiceUIDL: [GetSRCInputParameter] create SRC handle fail
2020-05-15 17:22:09.772 2068-9747/? D/AudioALSAPlaybackHandlerFast: -open()
2020-05-15 17:22:09.772 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.011746
2020-05-15 17:22:09.773 2068-9747/? E/AudioALSAPlaybackHandlerBase: -getHardwareBufferInfo(), pcm_get_htimestamp fail, ret = -1, pcm_get_error = 
2020-05-15 17:22:09.773 2068-11932/? E/AudioALSAPlaybackHandlerBase: -getHardwareBufferInfo(), pcm_get_htimestamp fail, ret = -1, pcm_get_error = 
2020-05-15 17:22:09.773 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.012833
2020-05-15 17:22:09.775 2068-2466/? D/AudioALSAHardware: setVoiceVolume(), volume = 1.000000, mUseTuningVolume = 0
2020-05-15 17:22:09.775 2068-2466/? D/AudioALSAStreamManager: setVoiceVolume(), volume = 1.000000
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: setVoiceVolume(), index = -1, devices = 0x1, mode = 0, mBand = 1, mNetwork = 0, mVoiceVolume = 1.000000
2020-05-15 17:22:09.775 2068-2466/? W/AudioMTKGainController: error, index -1 is invalid, use max 7 instead
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: ApplyMicGain(), mSceneIndex = 0, _mic_mode = 0, _gain_device = 0, mode = 0, micgain = 34, mULTotalGain = 208, mBand 1, mNetwork 0
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: ApplyMicGain(), SetAdcPga1 = 4, SetAdcPga2 = 4
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: GetReceiverGain i = 0 index = 8 
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: updateSidetone(), DSP_ST_GAIN = 0, positive_gain_db = 0, dlPGAGain 0, sidetone 0, ulGain 14
2020-05-15 17:22:09.775 2068-2466/? D/AudioMTKGainController: ApplySideTone gainDevice 0, sidetone 0, updated_sidetone 0
2020-05-15 17:22:09.776 2068-2466/? W/AudioALSASpeechPhoneCallController: muteDlUlForRouting(), speech off!! do nothing!!
2020-05-15 17:22:09.779 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.017951
2020-05-15 17:22:09.779 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.018845
2020-05-15 17:22:09.785 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.024540
2020-05-15 17:22:09.790 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.029608
2020-05-15 17:22:09.796 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.035026
2020-05-15 17:22:09.801 2110-2470/? D/AudioFlinger: mixer(0x7120e7fcc0) throttle end: throttle time(7)
2020-05-15 17:22:09.801 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.040291
2020-05-15 17:22:09.806 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.045736
2020-05-15 17:22:09.812 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.051069
2020-05-15 17:22:09.817 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.056263
2020-05-15 17:22:09.822 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.061613
2020-05-15 17:22:09.828 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.067230
2020-05-15 17:22:09.833 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.072319
2020-05-15 17:22:09.838 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.077524
2020-05-15 17:22:09.844 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.082902
2020-05-15 17:22:09.849 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.088335
2020-05-15 17:22:09.854 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.093532
2020-05-15 17:22:09.859 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.098836
2020-05-15 17:22:09.865 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.104454
2020-05-15 17:22:09.870 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.109644
2020-05-15 17:22:09.876 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.114911
2020-05-15 17:22:09.881 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.120244
2020-05-15 17:22:09.886 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.125647
2020-05-15 17:22:09.892 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.130965
2020-05-15 17:22:09.897 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.136268
2020-05-15 17:22:09.902 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.141605
2020-05-15 17:22:09.908 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.147016
2020-05-15 17:22:09.913 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.152442
2020-05-15 17:22:09.918 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.157596
2020-05-15 17:22:09.924 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.162985
2020-05-15 17:22:09.929 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.168225
2020-05-15 17:22:09.934 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.173565
2020-05-15 17:22:09.939 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.178837
2020-05-15 17:22:09.945 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.184290
2020-05-15 17:22:09.950 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.189528
2020-05-15 17:22:09.955 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.194867
2020-05-15 17:22:09.961 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.200229
2020-05-15 17:22:09.966 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.205665
2020-05-15 17:22:09.972 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.210923
2020-05-15 17:22:09.977 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.216288
2020-05-15 17:22:09.982 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.221612
2020-05-15 17:22:09.988 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.226980
2020-05-15 17:22:09.993 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.232242
2020-05-15 17:22:09.998 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.237613
2020-05-15 17:22:10.004 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.243016
2020-05-15 17:22:10.006 2183-1939/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.006 2183-1944/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.006 2183-1945/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.007 2183-1943/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.008 2183-1955/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.008 2183-1951/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.009 2183-1942/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.009 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.248566
2020-05-15 17:22:10.010 2183-1957/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.010 2183-1949/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.010 2183-1956/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.012 2183-1947/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.012 2183-1936/? E/ResolverController: No valid NAT64 prefix (115, <unspecified>/0)
2020-05-15 17:22:10.014 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.253718
2020-05-15 17:22:10.020 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.259178
2020-05-15 17:22:10.025 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.264445
2020-05-15 17:22:10.030 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.269568
2020-05-15 17:22:10.036 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.275054
2020-05-15 17:22:10.041 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.280365
2020-05-15 17:22:10.046 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.285701
2020-05-15 17:22:10.052 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.290921
2020-05-15 17:22:10.057 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.296281
2020-05-15 17:22:10.062 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), flag 4, mMuteForRouting 1, totalMuteTime 0.301624
2020-05-15 17:22:10.062 2068-9747/? W/AudioALSAStreamOut: dataProcessForMute(), mute timeout, unmute and ramp, format 3
2020-05-15 17:22:10.952 2192-2192/? I/thermal_src: recvmsg_expect 6, but get 5 
2020-05-15 17:22:10.952 2192-2192/? V/thermal_src: TA_DAEMON_CMD_GET_TI:ERROR ret=-1
2020-05-15 17:22:10.952 2192-2192/? I/thermal_src: recvmsg_expect 2, but get 4 
2020-05-15 17:22:10.952 2192-2192/? V/thermal_src: waiting NOTIFY from kernel miss, -1
2020-05-15 17:22:10.952 2192-2192/? I/thermal_src: recvmsg_expect 2, but get 6 
2020-05-15 17:22:10.952 2192-2192/? V/thermal_src: waiting NOTIFY from kernel miss, -1
2020-05-15 17:22:11.129 2764-3229/com.android.bluetooth W/bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x0004, reason 0x0fff from cmd 0x000fffff, event 0x0003, ble_event 0x0fff for 0x7cf0a536f0, handle 0, type 0x0001, error -19
2020-05-15 17:22:11.129 2764-3229/com.android.bluetooth I/bt_stack: [INFO:btsnoop.cc(323)] clear_l2cap_whitelist: Clearing whitelist from l2cap channel. conn_handle=0 cid=68:0
2020-05-15 17:22:11.130 2764-3229/com.android.bluetooth W/bt_sdp: SDP - Rcvd conn cnf with error: 0x4  CID 0x44
2020-05-15 17:22:11.130 2764-3229/com.android.bluetooth W/bt_stack: [WARNING:metrics.cc(819)] LogSocketConnectionState: failed for 9c:5a:44:d2:75:72, port 4997, type 1, state 5, tx_bytes 0, rx_bytes 0, uid 10134, server_port -1, socket_role 2, error -19
2020-05-15 17:22:11.130 2764-3234/com.android.bluetooth E/bt_btif_sock_rfcomm: find_rfc_slot_by_id unable to find RFCOMM slot id: 4997
2020-05-15 17:22:11.672 2233-2638/? I/ 2233  2638 [sunwave-hal]: (711) 'healthMonitoringThread' enter.
2020-05-15 17:22:11.674 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:11.674 2233-2638/? I/ 2233  2638 [sunwave-ta-core]: (2869) 'sf_get_device_state' state:0008
2020-05-15 17:22:11.674 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:11.674 2233-2638/? I/ 2233  2638 [sunwave-hal]: (725) 'healthMonitoringThread' state:0008
2020-05-15 17:22:11.676 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:11.676 2233-2638/? I/ 2233  2638 [sunwave-ic8201]: (181) low power
2020-05-15 17:22:11.676 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:11.811 2577-2726/system_process E/WifiVendorHal: getWifiLinkLayerStats_internal(l.903) failed {.code = ERROR_NOT_SUPPORTED, .description = }
2020-05-15 17:22:12.140 3665-8218/com.google.android.wearable.app:background W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
2020-05-15 17:22:12.142 2764-2781/com.android.bluetooth W/bt_stack: [WARNING:metrics.cc(819)] LogSocketConnectionState: failed for 9c:5a:44:d2:75:72, port 0, type 1, state 2, tx_bytes 0, rx_bytes 0, uid 10134, server_port -1, socket_role 2, error -19
2020-05-15 17:22:12.144 2764-3229/com.android.bluetooth W/bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 0x0fff, reason 0x0fff from cmd 0x00000405, event 0x0fff, ble_event 0x0fff for 0x7cf0a53140, handle 65535, type 0x0001, error -19
2020-05-15 17:22:12.147 2764-3229/com.android.bluetooth W/bt_stack: [WARNING:metrics.cc(591)] LogLinkLayerConnectionEvent: failed to log status 000000, reason 0x0fff from cmd 0x00000405, event 0x000f, ble_event 0x0fff for 0x7cf0a53700, handle 65535, type 0x0001, error -19
2020-05-15 17:22:13.515 2032-2345/? I/hwcomposer: [OVL] (0) Overlay input(0) was used with queue previously  
2020-05-15 17:22:13.515 2032-2345/? I/hwcomposer: [DBQ] (q2:0x770f435300) Buffer queue is destroyed  
2020-05-15 17:22:13.515 2032-2345/? I/hwcomposer: [DBQ] (q2:0x770f435300) Free Slot(0), handle=0x770f42c0a0, 10108800 -> 0  
2020-05-15 17:22:13.516 2032-2345/? I/hwcomposer: [DBQ] (q2:0x770f435300) Free Slot(1), handle=0x770f42c960, 10108800 -> 0  
2020-05-15 17:22:13.516 2032-2345/? I/hwcomposer: [DBQ] (q2:0x770f435300) Free Slot(2), handle=0x770f42bee0, 10108800 -> 0  
2020-05-15 17:22:13.676 2233-2638/? I/ 2233  2638 [sunwave-hal]: (711) 'healthMonitoringThread' enter.
2020-05-15 17:22:13.677 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:13.677 2233-2638/? I/ 2233  2638 [sunwave-ta-core]: (2869) 'sf_get_device_state' state:0008
2020-05-15 17:22:13.677 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:13.677 2233-2638/? I/ 2233  2638 [sunwave-hal]: (725) 'healthMonitoringThread' state:0008
2020-05-15 17:22:13.679 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:13.679 2233-2638/? I/ 2233  2638 [sunwave-ic8201]: (181) low power
2020-05-15 17:22:13.679 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:14.822 2577-2726/system_process E/WifiVendorHal: getWifiLinkLayerStats_internal(l.903) failed {.code = ERROR_NOT_SUPPORTED, .description = }
2020-05-15 17:22:15.679 2233-2638/? I/ 2233  2638 [sunwave-hal]: (711) 'healthMonitoringThread' enter.
2020-05-15 17:22:15.680 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:15.680 2233-2638/? I/ 2233  2638 [sunwave-ta-core]: (2869) 'sf_get_device_state' state:0008
2020-05-15 17:22:15.680 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:15.681 2233-2638/? I/ 2233  2638 [sunwave-hal]: (725) 'healthMonitoringThread' state:0008
2020-05-15 17:22:15.682 2233-2638/? I/ 2233  2638 [sunwave-client]: (90) ---8<---- TA LOG BEGINS ---------
2020-05-15 17:22:15.682 2233-2638/? I/ 2233  2638 [sunwave-ic8201]: (181) low power
2020-05-15 17:22:15.682 2233-2638/? I/ 2233  2638 [sunwave-client]: (107) --------- TA LOG FINISH ---->8---
2020-05-15 17:22:15.726 2191-2191/? I/thermal_repeater: [recvMdThermalInfo] ret=28, strLen=127,  3, 38, -50, 0, 32767, 25472
2020-05-15 17:22:16.368 1711-1711/? E/CRASH: other thread is trapped; signum = 11
2020-05-15 17:22:16.370 1711-1711/? E/InputEventReceiver: Exception dispatching input event.
2020-05-15 17:22:16.370 1711-1711/? E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
2020-05-15 17:22:16.375 1711-1711/? E/MessageQueue-JNI: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
    Revision: '0'
    ABI: 'arm64'
    Timestamp: 2020-05-15 17:22:09+0930
    pid: 1711, tid: 1889, name: Thread-3  >>> com.Microsoft.WebRTCSample <<<
    uid: 10162
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Cause: null pointer dereference
        x0  0000000000000000  x1  0000007c69306798  x2  0000000000000005  x3  0000000000000003
        x4  00496e6974526563  x5  0000000000800080  x6  07003c1d086e2e00  x7  802eee081d3c0007
        x8  310d5c66545e172d  x9  310d5c66545e172d  x10 0000007c69306240  x11 0000000000000019
        x12 0000000000000000  x13 0000000000000001  x14 0000000000000008  x15 0000243fbf627f6f
        x16 0000007deeab0640  x17 0000007def776e60  x18 0000007c663bc000  x19 0000007c6fd46448
        x20 0000007c6fd46200  x21 000000000000bb80  x22 0000007c6f9118a8  x23 0000007c4d243150
        x24 0000007c69306910  x25 0000007c6fd45af8  x26 0000007c69307020  x27 0000000000000048
        x28 00000000022bd0b3  x29 0000007c693067a0
        sp  0000007c69306790  lr  0000007c697d73b8  pc  0000007c697d7944
    
    backtrace:
          #00 pc 00000000003cf944  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::GetBufferQueueState() const+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #01 pc 00000000003cf3b4  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::StartRecording()+56) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #02 pc 00000000003c8690  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::StartRecording()+104) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #03 pc 000000000033da48  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::internal::AudioState::AddSendingStream(webrtc::AudioSendStream*, int, unsigned long)+108) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #04 pc 00000000002e9ffc  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceMediaChannel::SetSend(bool)+228) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #05 pc 00000000005a70f0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::UpdateMediaSendRecvState_w()+100) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #06 pc 00000000005a74d0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::SetRemoteContent_w(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)+268) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #07 pc 00000000005a9b6c  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, rtc::MethodFunctor<cricket::BaseChannel, bool (cricket::BaseChannel::*)(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*), bool, cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*> const&>::OnMessage(rtc::Message*)+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #08 pc 00000000001b5604  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #09 pc 00000000001b6f74  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(r
2020-05-15 17:22:16.376 1711-1711/? D/AndroidRuntime: Shutting down VM
2020-05-15 17:22:16.381 1711-1711/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.Microsoft.WebRTCSample, PID: 1711
    java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.3.13f1 (d4ddf0d95db9)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'Blackview/BV9800/BV9800:10/QQ2A.200405.005/200407:userdebug/test-keys'
    Revision: '0'
    ABI: 'arm64'
    Timestamp: 2020-05-15 17:22:09+0930
    pid: 1711, tid: 1889, name: Thread-3  >>> com.Microsoft.WebRTCSample <<<
    uid: 10162
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Cause: null pointer dereference
        x0  0000000000000000  x1  0000007c69306798  x2  0000000000000005  x3  0000000000000003
        x4  00496e6974526563  x5  0000000000800080  x6  07003c1d086e2e00  x7  802eee081d3c0007
        x8  310d5c66545e172d  x9  310d5c66545e172d  x10 0000007c69306240  x11 0000000000000019
        x12 0000000000000000  x13 0000000000000001  x14 0000000000000008  x15 0000243fbf627f6f
        x16 0000007deeab0640  x17 0000007def776e60  x18 0000007c663bc000  x19 0000007c6fd46448
        x20 0000007c6fd46200  x21 000000000000bb80  x22 0000007c6f9118a8  x23 0000007c4d243150
        x24 0000007c69306910  x25 0000007c6fd45af8  x26 0000007c69307020  x27 0000000000000048
        x28 00000000022bd0b3  x29 0000007c693067a0
        sp  0000007c69306790  lr  0000007c697d73b8  pc  0000007c697d7944
    
    backtrace:
          #00 pc 00000000003cf944  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::GetBufferQueueState() const+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #01 pc 00000000003cf3b4  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::OpenSLESRecorder::StartRecording()+56) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #02 pc 00000000003c8690  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::StartRecording()+104) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #03 pc 000000000033da48  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (webrtc::internal::AudioState::AddSendingStream(webrtc::AudioSendStream*, int, unsigned long)+108) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #04 pc 00000000002e9ffc  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceMediaChannel::SetSend(bool)+228) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #05 pc 00000000005a70f0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::UpdateMediaSendRecvState_w()+100) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #06 pc 00000000005a74d0  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (cricket::VoiceChannel::SetRemoteContent_w(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)+268) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #07 pc 00000000005a9b6c  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, rtc::MethodFunctor<cricket::BaseChannel, bool (cricket::BaseChannel::*)(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*), bool, cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*> const&>::OnMessage(rtc::Message*)+20) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #08 pc 00000000001b5604  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
2020-05-15 17:22:16.385 1711-1711/? E/AndroidRuntime:       #09 pc 00000000001b6f74  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #10 pc 00000000001b4dc8  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Get(rtc::Message*, int, bool)+140) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #11 pc 00000000001b6ca8  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::ProcessMessages(int)+92) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #12 pc 00000000001b6b58  /data/app/com.Microsoft.WebRTCSample-QRHf-dAS-edaF3rBVnQkNA==/lib/arm64/libmrwebrtc.so (rtc::Thread::PreRun(void*)+92) (BuildId: 6af41fc5c4417adb0440b62e680fe95a40639eef)
          #13 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
          #14 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
    
        at libmrwebrtc.webrtc::OpenSLESRecorder::GetBufferQueueState() const(GetBufferQueueState:20)
        at libmrwebrtc.webrtc::OpenSLESRecorder::StartRecording()(StartRecording:56)
        at libmrwebrtc.webrtc::AudioDeviceModuleImpl::StartRecording()(StartRecording:104)
        at libmrwebrtc.webrtc::internal::AudioState::AddSendingStream(webrtc::AudioSendStream*, int, unsigned long)(AddSendingStream:108)
        at libmrwebrtc.cricket::WebRtcVoiceMediaChannel::SetSend(bool)(SetSend:228)
        at libmrwebrtc.cricket::VoiceChannel::UpdateMediaSendRecvState_w()(UpdateMediaSendRecvState_w:100)
        at libmrwebrtc.cricket::VoiceChannel::SetRemoteContent_w(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*)(SetRemoteContent_w:268)
        at libmrwebrtc.rtc::FunctorMessageHandler<bool, rtc::MethodFunctor<cricket::BaseChannel, bool (cricket::BaseChannel::*)(cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*), bool, cricket::MediaContentDescription const*, webrtc::SdpType, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >*> const&>::OnMessage(rtc::Message*)(BaseChannel, bool :20)
        at libmrwebrtc.rtc::MessageQueue::Dispatch(rtc::Message*)(Dispatch:208)
        at libmrwebrtc.rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)(ReceiveSendsFromThread:84)
        at libmrwebrtc.rtc::MessageQueue::Get(rtc::Message*, int, bool)(Get:140)
        at libmrwebrtc.rtc::Thread::ProcessMessages(int)(ProcessMessages:92)
        at libmrwebrtc.rtc::Thread::PreRun(void*)(PreRun:92)
        at libc.__pthread_start(void*)(__pthread_start:36)
        at libc.__start_thread(__start_thread:64)
2020-05-15 17:22:16.401 2577-2036/system_process I/DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
2020-05-15 17:22:16.401 2577-4154/system_process W/ActivityTaskManager:   Force finishing activity com.Microsoft.WebRTCSample/com.unity3d.player.UnityPlayerActivity
2020-05-15 17:22:16.429 2577-2610/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2020-05-15 17:22:16.429 2577-2610/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2020-05-15 17:22:16.430 1711-1711/? I/Process: Sending signal. PID: 1711 SIG: 9
2020-05-15 17:22:16.434 2112-2112/? E/lowmemorykiller: Error writing /proc/1711/oom_score_adj; errno=22
2020-05-15 17:22:16.536 3058-3071/com.android.launcher3 I/droid.launcher: NativeAlloc concurrent copying GC freed 4577(319KB) AllocSpace objects, 1(80KB) LOS objects, 47% free, 6784KB/12MB, paused 87us total 105.504ms
2020-05-15 17:22:16.543 2786-2800/com.android.systemui I/ndroid.systemu: NativeAlloc concurrent copying GC freed 27084(1170KB) AllocSpace objects, 3(60KB) LOS objects, 48% free, 6416KB/12MB, paused 114us total 114.799ms
2020-05-15 17:22:16.591 2577-2715/system_process W/InputDispatcher: channel 'c110783 com.Microsoft.WebRTCSample/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0xd
2020-05-15 17:22:16.592 2577-2715/system_process E/InputDispatcher: channel 'c110783 com.Microsoft.WebRTCSample/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-05-15 17:22:16.592 2577-3093/system_process E/AudioService.RecordingActivityMonitor: Unexpected event 3 for riid 711

@djee-ms
Copy link
Member

djee-ms commented Jul 1, 2020

@HyperLethalVector I worked some more on Android, and the error you have in the last post is an audio permission error:

2020-05-15 17:22:09.698 2110-10675/? E/ServiceUtilities: Request requires android.permission.RECORD_AUDIO
2020-05-15 17:22:09.698 2110-10675/? E/AudioPolicyIntefaceImpl: getInputForAttr permission denied: recording not allowed for uid 10162 pid 1711

This means either the Android.manifest does not contain the RECORD_AUDIO permission, or the user denied the permission with the dialog. I think it's the former because Unity doesn't detect automatically that MixedReality-WebRTC uses the microphone so don't set that permission by default. Same for webcam, you need the WEBCAM permission in AndroidManifest.xml (Unity should have already added the INTERNET one):

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

I didn't investigate how to make that happen automatically, but it's likely the error you're getting. One way to prevent Unity to overwrite that manual change is to delete the comment toward the top of the XML file where it's written something about that, and Unity will leave that file alone when regenerating projects in subsequent builds, so you don't have to think anymore about it.

@HyperLethalVector
Copy link
Author

Hi there!

I actually spotted that earlier and had already set my permissions, making me think this was elsewhere, however I'll try this again after building the latest MR Webrtc library pull.

image

@djee-ms
Copy link
Member

djee-ms commented Jul 29, 2020

Hi @HyperLethalVector,

Can I check with you if there's anything left on that issue? Did you try again with the latest library pull as you mentioned in your last comment, and is the issue with permissions fixed? I have been doing some Android testing on my side ahead of 2.0.0-preview.1 and had no issue with the prerelease packages, aside from the usual thing of being careful of android permissions if/when Unity regenerate the project and overwrite the manifest (which I think can be disabled in some of the latest versions by deleting a comment in that file).

@HyperLethalVector
Copy link
Author

Hi, I haven't had the chance to do this yet, I'm hoping this weekend I will~
Do you mean that the newer preview package includes pre-built android libraries?

@djee-ms
Copy link
Member

djee-ms commented Aug 4, 2020

Do you mean that the newer preview package includes pre-built android libraries?

Yes. Available from GitHub Releases page or from the new UPM registry:
https://dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging?_a=feed&feed=Unity-packages
See updated docs : https://microsoft.github.io/MixedReality-WebRTC/manual/unity/helloworld-unity-importwebrtc.html

@everystone
Copy link

Hi, I am trying to get the samples to run on Oculus Quest, my project settings are IL2CPP, net standard 2.0 and ARM64. The app crashes on startup. I have added the RECORD_AUDIO and CAMERA permissions. Any advice?

10-21 11:26:09.804 12430 12430 D Error   : ERR: exMsg=*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-21 11:26:09.804 12430 12430 D Error   : Version '2020.1.4f1 (fa717bb873ec)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
10-21 11:26:09.804 12430 12430 D Error   : Build fingerprint: 'oculus/vr_monterey/monterey:7.1.1/NGI77B/904120.17180.0:user/release-keys'
10-21 11:26:09.804 12430 12430 D Error   : Revision: '0'
10-21 11:26:09.804 12430 12430 D Error   : ABI: 'arm64'
10-21 11:26:09.804 12430 12430 D Error   : Timestamp: 2020-10-21 11:26:09+0200
10-21 11:26:09.804 12430 12430 D Error   : pid: 12430, tid: 12498, name: WebRTC worker t  >>> com.DefaultCompany.WebRTCSamples <<<
10-21 11:26:09.804 12430 12430 D Error   : uid: 10099
10-21 11:26:09.804 12430 12430 D Error   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
10-21 11:26:09.804 12430 12430 D Error   : Cause: null pointer dereference
10-21 11:26:09.804 12430 12430 D Error   :     x0  0000000000000001  x1  0000000000000000  x2  0000000000000000  x3  0000007f53635f72
10-21 11:26:09.804 12430 12430 D Error   :     x4  00000000ffffffff  x5  0000007f7a028c80  x6  0000000000000000  x7  0000007f5628ac08
10-21 11:26:09.804 12430 12430 D Error   :     x8  0000000000000000  x9  0000000000000001  x10 0000000000004001  x11 0000000000000001
10-21 11:26:09.804 12430 12430 D Error   :     x12 00000000000030d2  x13 00000000000030d2  x14 6243c5a6720e50ff  x15 0000000000000000
10-21 11:26:09.804 12430 12430 D Error   :     x16 0000000000000000  x17 0000007f79fe14a4  x18 000000000000ffff  x19 0000007f54bd3201
10-21 11:26:09.804 12430 12430 D Error   :     x20 0000007f54bd3200  x21 0000000000000000  x22 0000007f535e838c  x23 0000007f70da9c20
10-21 11:26:09.804 12430 12430 D Error   :     x24 0000000000000001  x25 0000007f5688d3f8  x26 0000007f5688d4b8  x27 0000000000000048
10-21 11:26:09.804 12430 12430 D Error   :     x28 00000000045d7d8f  x29 0000007f52e98f70
10-21 11:26:09.804 12430 12430 D Error   :     sp  0000007f52e98f50  lr  0000007f5327256c  pc  0000007f53272574
10-21 11:26:09.804 12430 12430 D Error   :
10-21 11:26:09.804 12430 12430 D Error   : backtrace:
10-21 11:26:09.804 12430 12430 D Error   :       #00 pc 00000000002db574  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AttachCurrentThreadIfNeeded::AttachCurrentThreadIfNeeded()+64) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #01 pc 00000000002e7c98  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioManager::AudioManager()+28) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #02 pc 00000000002e277c  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::CreatePlatformSpecificObjects()+68) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #03 pc 00000000002e2664  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::CreateForTest(webrtc::AudioDeviceModule::AudioLayer)+140) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #04 pc 00000000002e25bc  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer)+56) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #05 pc 0000000000413948  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceEngine::Init()+388) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #06 pc 0000000000405150  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (cricket::CompositeMediaEngine<cricket::WebRtcVoiceEngine, cricket::WebRtcVideoEngine>::Init()+12) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #07 pc 00000000004f4c24  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, cricket::ChannelManager::Init()::$_3>::OnMessage(rtc::Message*)+32) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #08 pc 0000000000143fe8  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #09 pc 000000000015aef0  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #10 pc 00000000001437ac  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Get(rtc::Message*, int, bool)+140) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #11 pc 000000000015ac24  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::Thread::ProcessMessages(int)+92) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #12 pc 000000000015aad4  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::Thread::PreRun(void*)+92) (BuildId:
10-21 11:26:09.804 12430 12430 D Error   : ERR: file=AttachCurrentThreadIfNeeded
10-21 11:26:09.804 12430 12430 D Error   : ERR: class=libmrwebrtc
10-21 11:26:09.804 12430 12430 D Error   : ERR: method=webrtc::AttachCurrentThreadIfNeeded::AttachCurrentThreadIfNeeded() line=64
10-21 11:26:09.804 12430 12430 D Error   : ERR: stack=java.lang.Error: FATAL EXCEPTION [main]
10-21 11:26:09.804 12430 12430 D Error   : Unity version     : 2020.1.4f1
10-21 11:26:09.804 12430 12430 D Error   : Device model      : Oculus Quest
10-21 11:26:09.804 12430 12430 D Error   : Device fingerprint: oculus/vr_monterey/monterey:7.1.1/NGI77B/904120.17180.0:user/release-keys
10-21 11:26:09.804 12430 12430 D Error   : Build Type        : Release
10-21 11:26:09.804 12430 12430 D Error   : Scripting Backend : IL2CPP
10-21 11:26:09.804 12430 12430 D Error   : ABI               : arm64-v8a
10-21 11:26:09.804 12430 12430 D Error   : Strip Engine Code : true
10-21 11:26:09.804 12430 12430 D Error   :
10-21 11:26:09.804 12430 12430 D Error   : Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-21 11:26:09.804 12430 12430 D Error   : Version '2020.1.4f1 (fa717bb873ec)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
10-21 11:26:09.804 12430 12430 D Error   : Build fingerprint: 'oculus/vr_monterey/monterey:7.1.1/NGI77B/904120.17180.0:user/release-keys'
10-21 11:26:09.804 12430 12430 D Error   : Revision: '0'
10-21 11:26:09.804 12430 12430 D Error   : ABI: 'arm64'
10-21 11:26:09.804 12430 12430 D Error   : Timestamp: 2020-10-21 11:26:09+0200
10-21 11:26:09.804 12430 12430 D Error   : pid: 12430, tid: 12498, name: WebRTC worker t  >>> com.DefaultCompany.WebRTCSamples <<<
10-21 11:26:09.804 12430 12430 D Error   : uid: 10099
10-21 11:26:09.804 12430 12430 D Error   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
10-21 11:26:09.804 12430 12430 D Error   : Cause: null pointer dereference
10-21 11:26:09.804 12430 12430 D Error   :     x0  0000000000000001  x1  0000000000000000  x2  0000000000000000  x3  0000007f53635f72
10-21 11:26:09.804 12430 12430 D Error   :     x4  00000000ffffffff  x5  0000007f7a028c80  x6  0000000000000000  x7  0000007f5628ac08
10-21 11:26:09.804 12430 12430 D Error   :     x8  0000000000000000  x9  0000000000000001  x10 0000000000004001  x11 0000000000000001
10-21 11:26:09.804 12430 12430 D Error   :     x12 00000000000030d2  x13 00000000000030d2  x14 6243c5a6720e50ff  x15 0000000000000000
10-21 11:26:09.804 12430 12430 D Error   :     x16 0000000000000000  x17 0000007f79fe14a4  x18 000000000000ffff  x19 0000007f54bd3201
10-21 11:26:09.804 12430 12430 D Error   :     x20 0000007f54bd3200  x21 0000000000000000  x22 0000007f535e838c  x23 0000007f70da9c20
10-21 11:26:09.804 12430 12430 D Error   :     x24 0000000000000001  x25 0000007f5688d3f8  x26 0000007f5688d4b8  x27 0000000000000048
10-21 11:26:09.804 12430 12430 D Error   :     x28 00000000045d7d8f  x29 0000007f52e98f70
10-21 11:26:09.804 12430 12430 D Error   :     sp  0000007f52e98f50  lr  0000007f5327256c  pc  0000007f53272574
10-21 11:26:09.804 12430 12430 D Error   :
10-21 11:26:09.804 12430 12430 D Error   : backtrace:
10-21 11:26:09.804 12430 12430 D Error   :       #00 pc 00000000002db574  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AttachCurrentThreadIfNeeded::AttachCurrentThreadIfNeeded()+64) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #01 pc 00000000002e7c98  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioManager::AudioManager()+28) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #02 pc 00000000002e277c  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModuleImpl::CreatePlatformSpecificObjects()+68) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #03 pc 00000000002e2664  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::CreateForTest(webrtc::AudioDeviceModule::AudioLayer)+140) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #04 pc 00000000002e25bc  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (webrtc::AudioDeviceModule::Create(webrtc::AudioDeviceModule::AudioLayer)+56) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #05 pc 0000000000413948  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (cricket::WebRtcVoiceEngine::Init()+388) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #06 pc 0000000000405150  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (cricket::CompositeMediaEngine<cricket::WebRtcVoiceEngine, cricket::WebRtcVideoEngine>::Init()+12) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #07 pc 00000000004f4c24  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::FunctorMessageHandler<bool, cricket::ChannelManager::Init()::$_3>::OnMessage(rtc::Message*)+32) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #08 pc 0000000000143fe8  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Dispatch(rtc::Message*)+208) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #09 pc 000000000015aef0  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::Thread::ReceiveSendsFromThread(rtc::Thread const*)+84) (BuildId: 08331175ce8365b84ec907a36548abb705815da7)
10-21 11:26:09.804 12430 12430 D Error   :       #10 pc 00000000001437ac  /data/app/com.DefaultCompany.WebRTCSamples-1/lib/arm64/libmrwebrtc.so (rtc::MessageQueue::Get(rtc::Message*, int, bool)+140) (BuildId: 08331175ce8365b84ec907a36548abb705815da
10-21 11:26:09.804 12430 12430 D Error   : ERR: TOTAL BYTES WRITTEN: 20860
10-21 11:26:09.807  1058  1083 W ActivityManager:   Force finishing activity com.DefaultCompany.WebRTCSamples/com.unity3d.player.UnityPlayerActivity```

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working platform:android Android specific issues
Projects
None yet
Development

No branches or pull requests

3 participants