Bluetooth-related crash (StackOverflowError)

Description
We’ve experienced following crash after integrating Zoom Video SDK into our app:

Fatal Exception: java.lang.StackOverflowError: stack size 8188KB
       at com.zipow.cmmlib.Logger.log(Logger.java:1)
       at us.zoom.video_sdk.e0.a(ZMLog.java:21)
       at us.zoom.video_sdk.e0.e(ZMLog.java:11)
       at us.zoom.video_sdk.e0.e(ZMLog.java:5)
       at us.zoom.video_sdk.e0.a(ZMLog.java:2)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:1)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset.close(BluetoothHeadset.java:453)
       at android.bluetooth.BluetoothAdapter.closeProfileProxy(BluetoothAdapter.java:3703)
       at us.zoom.androidlib.util.HeadsetUtil$a.onServiceDisconnected(HeadsetUtil.java:5)
       at android.bluetooth.BluetoothHeadset$3.handleMessage(BluetoothHeadset.java:1550)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7872)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Which Android Video SDK version?
1.12.0

To Reproduce(If applicable)
Just open the app that has Zoom Video SDK integrated

Smartphone (please complete the following information):

  • Device: ARM64 Android emulator
  • OS: Android 13