jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
270 stars 235 forks source link

Bug status from version 4.0.0 to version 8.1.0 #196

Closed mfurkancelik closed 9 months ago

mfurkancelik commented 9 months ago

We switched from Jitsi version 4.0.0 to version 8.1.0 in the project. It gives the error "Unable to access camera and microphone" but the sound goes to the other party.

saghul commented 9 months ago

On what platform? Can you please share the logs when that happens?

mfurkancelik commented 9 months ago

Android platform. It gives this error even though we have given permissions.

E/com.oney.WebRTCModule.WebRTCModule: Failed to add renderer
    java.util.concurrent.ExecutionException: java.lang.IllegalStateException: MediaStreamTrack has been disposed.
        at java.util.concurrent.FutureTask.report(FutureTask.java:123)
        at java.util.concurrent.FutureTask.get(FutureTask.java:193)
        at com.oney.WebRTCModule.WebRTCView.tryAddRendererToVideoTrack(WebRTCView.java:530)
        at com.oney.WebRTCModule.WebRTCView.onAttachedToWindow(WebRTCView.java:198)
        at android.view.View.dispatchAttachedToWindow(View.java:20576)
        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3511)
        at android.view.ViewGroup.addViewInner(ViewGroup.java:5305)
        at android.view.ViewGroup.addView(ViewGroup.java:5091)
        at com.facebook.react.views.view.ReactViewGroup.addView(ReactViewGroup.java:466)
        at android.view.ViewGroup.addView(ViewGroup.java:5028)
        at com.facebook.react.views.view.ReactClippingViewManager.addView(ReactClippingViewManager.java:38)
        at com.facebook.react.views.view.ReactClippingViewManager.addView(ReactClippingViewManager.java:19)
        at com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:533)
        at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:217)
        at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:915)
        at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1026)
        at com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47)
        at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1086)
        at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
        at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175)
        at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1056)
        at android.view.Choreographer.doCallbacks(Choreographer.java:880)
        at android.view.Choreographer.doFrame(Choreographer.java:809)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1043)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:236)
        at android.app.ActivityThread.main(ActivityThread.java:7876)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
     Caused by: java.lang.IllegalStateException: MediaStreamTrack has been disposed.
        at org.webrtc.MediaStreamTrack.checkMediaStreamTrackExists(MediaStreamTrack.java:120)
        at org.webrtc.MediaStreamTrack.getNativeMediaStreamTrack(MediaStreamTrack.java:114)
        at org.webrtc.VideoTrack.addSink(VideoTrack.java:40)
        at com.oney.WebRTCModule.WebRTCView.lambda$tryAddRendererToVideoTrack$2$com-oney-WebRTCModule-WebRTCView(WebRTCView.java:530)
        at com.oney.WebRTCModule.WebRTCView$$ExternalSyntheticLambda0.run(Unknown Source:2)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)
saghul commented 9 months ago

Can you to update to 8.4?

mfurkancelik commented 9 months ago

It didn't work and gave the same error again.

saghul commented 9 months ago

Have you made any changes to the SDK?

What steps do you follow to reproduce the issue?

mfurkancelik commented 9 months ago

I only changed the jitsi version. Apart from that, I added a broadcastReceiver that changes with the jitsi integration. When I try it in version 6.0.0, there is no problem again.

saghul commented 9 months ago

Please try to use the SDK without any changes, straight from our builds when making bug reports. This will help us rule out any issues on that end.

mfurkancelik commented 9 months ago

Hello, in the tests I did in version 6.0.0, my camera and microphone turned on successfully and then I switched to version 8.4.0 without making any changes in the codes, but the result is the same again. I don't know if it will help, but I found something like this in the logs

E/libc: Access denied finding property "persist.vendor.camera.privapp.list"

saghul commented 9 months ago

Sorry I have never seen such a problem.

mfurkancelik commented 9 months ago

The problem was that one side was using a very old version and the other a very high version.