Skip to content

Crash from Samsung devices selecting resolution #1335

@tonyo-vetai

Description

@tonyo-vetai

Describe the bug
We're seeing a crash on some Samsung phones causing a "NoSuchElementException: list is empty"
This is when the SDK is using selectDesiredResolution in MediaManager
My guess if first() on line 775... should be firstOrNull()0

SDK version

  • 1.4.3

To Reproduce
Steps to reproduce the behavior:
Unable to reproduce locally

Expected behavior
The SDK should handle this gracefully, not causing a crash.

Device:

  • Samsung S20+ & S20Ultra
  • Android version: 13

Screenshots

Bug stacktrace from Sentry

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions