"java.lang.IllegalStateException: There is no matched resolution!"
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- audio-video-rtc, mobile
Research direction
Start with WebRtcSessionManagerImpl.kt at getResolution, line 105, then trace how videoSource and localVideoTrack are initialized before VideoCallScreen.kt invokes the session. Reproduce the call-start crash using the Android 7 emulator and the reported devices. Done means the sample app can start a video call without the “There is no matched resolution!” exception.
Written by the indexing model from the issue text.
Description
Hi all, thanks for the amazing release! I'm having a really weird issue. Everything was working fine and then I messed w the code and versions of java, gradle kotlin, etc via homebrew and now the app crashes on start and logcat shows the error in the title of this issue. Some background info/things I've tried
- Testing via a call between a blackberry BBB100-1 and android 7 on a pixel 7 virtual phone in android studio (which used to work fine) Running MacOS 12.7.5. Tried both on Iguana and Jellyfish, same issue
- Solution attempt 1: Re-downloaded fresh code from the github page, Result: Build failed with weird deprecation warnings that never occurred before (Dependencies and IP address were set in the fresh code as instructed on the github page)
-
Solution attempt 2: Wiped everything android related from my mac. (Users/username/.android, AndroidStudioProjects, Preferences files, Library/Android, etc.) Also wiped gradle, kotlin, java (except the versions shipped w the os), node, npm, etc
-
Solution attempt 3: Reinstalled android jellyfish, using fresh code again, set IP address in local.properties, ensure webrtc in libs.toml and reflected in build.gradle, Result: No build errors but app still crashes on call start with the message in the title of this issue
Full error below, thanks for your time, any help is greatly appreciated
FATAL EXCEPTION: main
Process: io.getstream.webrtc.sample.compose, PID: 3235
java.lang.IllegalStateException: There is no matched resolution!
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.getResolution(WebRtcSessionManagerImpl.kt:105)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.access$getResolution(WebRtcSessionManagerImpl.kt:62)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl$videoSource$2.invoke(WebRtcSessionManagerImpl.kt:117)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl$videoSource$2.invoke(WebRtcSessionManagerImpl.kt:114)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.getVideoSource(WebRtcSessionManagerImpl.kt:114)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.access$getVideoSource(WebRtcSessionManagerImpl.kt:62)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl$localVideoTrack$2.invoke(WebRtcSessionManagerImpl.kt:123)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl$localVideoTrack$2.invoke(WebRtcSessionManagerImpl.kt:121)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.getLocalVideoTrack(WebRtcSessionManagerImpl.kt:121)
at io.getstream.webrtc.sample.compose.webrtc.sessions.WebRtcSessionManagerImpl.onSessionScreenReady(WebRtcSessionManagerImpl.kt:195)
at io.getstream.webrtc.sample.compose.ui.screens.video.VideoCallScreenKt$VideoCallScreen$1.invokeSuspend(VideoCallScreen.kt:48)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@b1ea14a, androidx.compose.runtime.BroadcastFrameClock@a6b68bb, StandaloneCoroutine{Cancelling}@546c1d8, AndroidUiDispatcher@3408931]
2024-06-11 20:10:24.659 2308-2396 WorkSourceUtil com.google.android.gms E Could not find package: io.getstream.webrtc.sample.compose
- Dominant language
- Kotlin
- Stars
- 890
- Forks
- 109
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/webrtc-android
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
GetStream/webrtc-android#323 ·
-
[Android] Native Crash (SIGSEGV) injecting Bitmap from PixelCopy into WebRTC VideoSource (GetStream)Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
GetStream/webrtc-android#320 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
GetStream/webrtc-android#319 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GetStream/webrtc-android#317 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
GetStream/webrtc-android#316 · 4 comments ·
All issues in GetStream/webrtc-android
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
krelltunez/dayGLANCE#2445 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
EANs strippenOpengood first issue prio:P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haritpanchal/WakeGuard#16 ·
-
PathSegmentTemplateMatcher accepts conflicting captures for repeated variable namesPossibly taken @Christiansada claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
modelcontextprotocol/kotlin-sdk#1217 ·
Maintainers usually reply within 3 days