android / android/camera-samples

Some resolutions causing FATAL EXCEPTION: DefaultDispatcher-worker-1

Open
#366 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

This exception is submitted here: https://github.com/Kotlin/kotlinx.coroutines/issues/839

Hardware was Samsung SM-A716U.

Resolution attempted was 4624x3468 @ 30fps

3840x2160 @ 30fps works fine

Note that I had trouble building this due to the Kotlin version you are setting this to ("+") so I set that at 1.4.31

This could be the issue, but it would not build otherwise since it complained about a non-production build.

To reproduce, simply build your Camera2Video sample, select that resolution, take a video and upon release of the button the crash will occur.

Contributor guide

Open the contributing guide

Research direction

Build the Camera2Video sample using Kotlin 1.4.31, then reproduce the crash with 4624x3468 at 30fps and compare it with 3840x2160 at 30fps. Read the linked kotlinx.coroutines issue and trace what happens when recording is released; done means the failing resolution is understood and the crash no longer occurs or is clearly isolated.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.