Open JasonWeinzierl opened 6 months ago
Hi @JasonWeinzierl, Can you verify in the latest beta 2.6.0-beta.9? This should be fixed in that version
On 2.6.0-beta.9 i still get a crash. Different exception:
E FATAL EXCEPTION: main
Process: com.example.videocallingquickstart, PID: 18543
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:5247)
at android.view.ViewGroup.addView(ViewGroup.java:5076)
at android.view.ViewGroup.addView(ViewGroup.java:5016)
at android.view.ViewGroup.addView(ViewGroup.java:4988)
at com.azure.android.communication.calling.VideoStreamView.lambda$AddTextureView$1$VideoStreamView(VideoStreamView.java:203)
at com.azure.android.communication.calling.-$$Lambda$VideoStreamView$0vHxvVlVD8MHqdQmDmXkZD9qqXA.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7885)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
this is reproducible on my fork of the videoCallingQuickstart example:
2.6.0-beta.9
in the build.gradle
.switchSourceButton.setVisibility(View.INVISIBLE);
on line 430 of MainActivity.java
Hi @JasonWeinzierl, Thank you for the response, we will check this new issue and give you an update as soon as possible
Tracking: ADO Bug 3732686
Describe the bug
When switching video sources for a LocalVideoStream while its VideoStreamRendererView is not added to the current view, the app will crash.
Exception or Stack Trace
To Reproduce
LocalVideoStream
VideoStreamRenderer
VideoStreamRendererView
from the rendererswitchSource
on the stream with a different cameraCode Snippet
I was able to reproduce this by modifying the videoCallingQuickstart to always display the "Switch Source" button.
Expected behavior
Switching sources should not crash the app.
Screenshots
N/A
Setup (please complete the following information):
Additional context
N/A
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report