Camera2Basic failed to open camera normally
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
前面カメラしか搭載していないデバイス上の Android Studio で Camera2Basic の起動失敗を再現し、CameraActivity とログに示されているカメラを開く経路から調査を開始します。最初に成功した起動と、その後の起動を比較し、報告された起動ログを使って、どこでカメラを開く処理が停止するのかを特定します。終了、データの消去、または再インストールの後にサンプルが前面カメラを確実に開ける状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
After I import Camera2Basic into Android Studio and run it (My device only has front camera)
for the first time, camera opened normally, then no matter I exit camera, clear the cache/data, uninstall the APP and reinstall it, camera still failed to open again. log from Android Studio is as below:
It seems stunk in the starting window, in the left-top window, it shows 'Front JPEG (0)'
2023-05-24 15:22:45.556 9183-9183 studio.deploy pid-9183 E Could not remove dir '/data/data/com.android.example.camera2.basic/code_cache/.ll/': No such file or directory
---------------------------- PROCESS STARTED (9201) for package com.android.example.camera2.basic ----------------------------
2023-05-24 15:22:47.208 9201-9201 chatty com.android.example.camera2.basic I uid=10054(com.android.example.camera2.basic) re-initialized> identical 1 line
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/ResourcesKey;-><init>(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/app/ResourcesManager;->invalidatePath(Ljava/lang/String;)V (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/ResourcesKey;->isPathReferenced(Ljava/lang/String;)Z (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager$ApkKey;->path:Ljava/lang/String; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/ApkAssets;->close()V (blacklist, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager$ApkKey;->path:Ljava/lang/String; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.209 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/ApkAssets;->close()V (blacklist, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/app/ResourcesManager;->isSameResourcesOverrideConfig(Landroid/os/IBinder;Landroid/content/res/Configuration;)Z (greylist-max-o, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->overrideConfig:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.210 9201-9201 chatty com.android.example.camera2.basic I uid=10054(com.android.example.camera2.basic) identical 1 line
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->overrideConfig:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/Configuration;->diffPublicOnly(Landroid/content/res/Configuration;)I (greylist-max-o, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/app/ResourcesManager;->overrideTokenDisplayAdjustments(Landroid/os/IBinder;Ljava/util/function/Consumer;)Z (blacklist, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.210 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/content/res/Resources;->overrideDisplayAdjustments(Ljava/util/function/Consumer;)V (blacklist, linking, denied)
2023-05-24 15:22:47.211 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/app/ResourcesManager;->updateResourcesForActivity(Landroid/os/IBinder;Landroid/content/res/Configuration;IZ)V (greylist-max-o, linking, denied)
2023-05-24 15:22:47.211 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/app/ResourcesManager;->getOrCreateActivityResourcesStructLocked(Landroid/os/IBinder;)Landroid/app/ResourcesManager$ActivityResources; (greylist-max-o, linking, denied)
2023-05-24 15:22:47.218 9201-9201 studio.deploy com.android.example.camera2.basic I JVMTI::HiddenAPIWarning:Restoring not supported
2023-05-24 15:22:47.482 9201-9201 NetworkSecurityConfig com.android.example.camera2.basic D No Network Security Config specified, using platform default
2023-05-24 15:22:47.483 9201-9201 NetworkSecurityConfig com.android.example.camera2.basic D No Network Security Config specified, using platform default
2023-05-24 15:22:47.662 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2023-05-24 15:22:47.664 9201-9201 e.camera2.basi com.android.example.camera2.basic W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2023-05-24 15:22:47.752 9201-9201 CameraManagerGlobal com.android.example.camera2.basic I Connecting to camera service
2023-05-24 15:22:47.793 9201-9217 System com.android.example.camera2.basic W A resource failed to call close.
2023-05-24 15:22:47.793 9201-9217 System com.android.example.camera2.basic W A resource failed to call close.
2023-05-24 15:22:47.972 475-1511 BufferQueueProducer surfaceflinger E [com.android.example.camera2.basic/com.example.android.camera2.basic.CameraActivity#0](id:1db0000006e,api:0,p:-1,c:475) disconnect: not connected (req=1)
2023-05-24 15:22:47.972 9201-9226 libEGL com.android.example.camera2.basic W EGLNativeWindowType 0xeba00018 disconnect failed
- 主要言語
- Kotlin
- スター
- 5.5k
- フォーク
- 2.4k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/camera-samples のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
android/camera-samples#546 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
android/camera-samples#544 ·
-
Does CameraX plan to support USB Camera? When was the launch date? Someone raised Issues in 2019 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
android/camera-samples#543 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
android/camera-samples#542 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
android/camera-samples#541 · コメント 1 件 · リアクション 1 件 ·
android/camera-samples の issue をすべて見る
似ている issue
-
autoteam community team/use
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
android: AlbumArtistDetailViewModel keeps groupKeys of albums that disappeared in expandedAlbums オープンtask
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
aaif-goose/goose#12496 ·
-
Schema rejections are neither logged nor attributed, so the offending object cannot be identified オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
zotero/zotero-android#350 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Richie97/track-history#325 ·