android / android/camera-samples

[Camera2Basic] Application not responsive after taking X pictures

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

Description

Device and System: Multiple, multiple emulator configurations, multiple hardware devices.
No real error in logcat.

Steps:
Remove `navController.navigate...` part from [here](https://github.com/android/camera-samples/blob/6cbd2cc5a5318029f889fb46b4509c869b454856/Camera2Basic/app/src/main/java/com/example/android/camera2/basic/fragments/CameraFragment.kt#L248).

I want to take multiple pictures, so, just spam the capture button, it happened after 50 as well as 3 pictures on a real device where the bug seems to be popping more often.

Contributor guide

Open the contributing guide

Research direction

Start in Camera2Basic/app/src/main/java/com/example/android/camera2/basic/fragments/CameraFragment.kt around line 248, then reproduce the issue by rapidly taking multiple pictures on an emulator or device. Trace the navigation triggered after capture and compare behavior with that navigation call removed; done means repeated captures no longer make the application unresponsive.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.