"java.lang.IllegalStateException: There is no matched resolution!"

Open
#152 2 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
android, kotlin

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)
Screen Shot 2024-06-11 at 8 31 00 PM
  • 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/webrtc-android

All issues in GetStream/webrtc-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.