Camera resource preemption in multi-window mode causing app crash
@ardier16 ci sta già lavorando.
Dal 14/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
The application crashes in multi-window mode when the camera resource is preempted or accessed by another application, causing freezing, crashing, or abnormal behavior.
Steps to reproduce
- Run the target application in full-screen mode and activate the camera functionality.
- Launch another application that also requires access to the camera resource in floating window mode and enable its camera functionality.
- Refocus on the target application by clicking on its interface area to return the operational focus to the application.
- Observe the operational state and behavioral performance of the target application.
Expected behaviour
The application should be able to regain access to the camera resource after refocusing, without freezing, crashing, or exiting unexpectedly.
Actual behaviour
After regaining focus, the application interface freezes, the application crashes, and it needs to be restarted to recover.
Additional info
It might be beneficial to consider implementing logic within the onWindowFocusChanged callback method to handle scenarios where the application regains focus. This could include reinitializing or reallocating the camera stream, which may help mitigate resource conflicts and enhance the application's stability. Below is an example of how such logic could be structured in pseudocode:
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
try {
camera = Camera.open();
camera.startPreview();
} catch (Exception e) {
Log.e("CameraHandler", "Error handling camera: " + e.getMessage());
}
}
- Lingua principale
- Kotlin
- Stelle
- 272
- Fork
- 110
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Blockstream/green_android
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Blockstream/green_android#313 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
Blockstream/green_android#315 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Blockstream/green_android#314 ·
-
Support scanning SeedQR recovery phrasesForse di nuovo libera @ardier16 l’ha presa 44 giorni fa e non c’è nessuna pull request aperta. Apertafeature request
Blockstream/green_android#311 · 2 commenti · 1 assegnatario ·
-
UX: Use "Passphrase BIP39" as a universal untranslated label — don't translate it as "contraseña"Forse di nuovo libera @ardier16 l’ha presa 44 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
Blockstream/green_android#310 · 4 commenti · 1 assegnatario ·
Tutte le issue di Blockstream/green_android
Issue simili
-
enhancement
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 72/100
afarber/OpenMapView#22 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nightscout/AndroidAPS#5245 ·
I maintainer di solito rispondono entro 1 giorno
-
Feature:Resolution
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
intellij-elixir/intellij-elixir#4396 ·
I maintainer di solito rispondono entro 1 giorno
-
s: need triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Tencent-TDS/KuiklyUI#1786 ·
I maintainer di solito rispondono entro 1 giorno
-
ExprQuerySet.getChildren() omits WITH clauseForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
partiql/partiql-lang-kotlin#1972 ·