Description
Hello Team,
We are working on react-native app. The iOS app is working fine but in the Android app, we are facing app crash when we click on close participants list in the meeting.
Here is the error response we are getting
Unable to stop activity {Myapp/com.zipow.videobox.ConfActivityNormal}: java.lang.ILLegalArgumentException: attempt to remove OnFrameMetricsAvailableListener that was never added
Which version?
Android version - 28
Zoom version - v4.6.15084.0206
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Go to zoom video
- Click on participants
- close participants list
- app crashed
Screenshots
error related screenshots to help
Hi jaiprakash,
Thanks for using Zoom SDK. Our SDK does not support React Native so we could not guarantee the SDK would work with React Native.
I tried to reproduce the issue you are mentioning with our Android demo app(https://github.com/zoom/zoom-sdk-android) but I did not encounter any issues. Could you have a try with our demo app and see if you could reproduce this issue? If yes, please let us know the steps to reproduce. In the meantime, it would be very helpful if you could provide the SDK log for us to further investigate.
Thanks!
FATAL EXCEPTION: main
Process: base, PID: 4714
java.lang.RuntimeException: Unable to stop activity {in.schoollog.testseries.base/com.zipow.videobox.ConfActivityNormal}: java.lang.IllegalArgumentException: attempt to remove OnFrameMetricsAvailableListener that was never added
at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4741)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4711)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4786)
at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.IllegalArgumentException: attempt to remove OnFrameMetricsAvailableListener that was never added
at android.view.View.removeFrameMetricsListener(View.java:7098)
at android.view.Window.removeOnFrameMetricsAvailableListener(Window.java:898)
at androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl.remove(FrameMetricsAggregator.java:433)
at androidx.core.app.FrameMetricsAggregator.remove(FrameMetricsAggregator.java:243)
at com.google.firebase.perf.internal.zza.onActivityStopped(Unknown Source:64)
at android.app.Application.dispatchActivityStopped(Application.java:530)
at android.app.Activity.dispatchActivityStopped(Activity.java:1331)
at android.app.Activity.onStop(Activity.java:2459)
at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:559)
at us.zoom.androidlib.app.ZMActivity.onStop(ZMActivity.java:666)
at com.zipow.videobox.ConfActivityNormal.onStop(ConfActivityNormal.java:1222)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1591)
at android.app.Activity.performStop(Activity.java:8031)
at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4733)
… 12 more
I am facing the same issue. here is the log.
sdk version : v4.6.21666.0429
- react-native
- compileSdkVersion = 29
- targetSdkVersion = 29
it happens when switching participants or app goes in background. Help me solve this issue. Thanks
Hi @schoollog,
Thanks for the reply. Based on the error message, this is caused by the hardware acceleration has been disabled. You may enable the hardware acceleration like the following:
<activity
tools:replace="android:configChanges"
android:name="com.zipow.videobox.ConfActivityNormal"
android:configChanges="orientation|screenSize|smallestScreenSize|layoutDirection|screenLayout|keyboardHidden|uiMode|colorMode"
android:hardwareAccelerated="true"
android:theme="@style/ZMTheme.SubWindow" />
Hope this helps. Thanks!