Nativescript Camera plugin makes the app to be killed by Android system on takePicture function
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- android, typescript
- 領域
- mobile
調査の方向性
まず、報告された Moto G5 で NativeScript CLI 8.1.5、NativeScript Android 8.1.1、NativeScript Core 8.1.5、Camera Plugin 5.0.10 を使用して takePicture を再現し、その後 Android logcat の出力を調査します。カメラアクティビティを開いたときにアプリプロセスが終了する原因となる条件を特定して解決できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When I open the camera in certain devices like Mogo G5 the very moment the app calls takePicture function makes the app to crash or to be killed by android system with the following logcat error:
2021-12-24 09:42:21.699 1832-4115/? I/ActivityManager: START u0 {act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.motorola.cameraone/com.motorola.camera.Camera clip={text/uri-list U:content://com.example.app.provider/external_files/Android/data/com.example.app/files/NSIMG_20211224_94221.jpg} (has extras)} from uid 10157
2021-12-24 09:42:21.710 11535-11535/com.example.app I/JS: loading change false true
2021-12-24 09:42:21.752 810-810/? D/SFPerfTracer: layers: (2:8) (animation background stackId=1#0 (0xb0ed6000): 0:16514)* (DimLayerController/Stack=0#0 (0xb0ee3000): 0:69830)* (Sprite#0 (0xb0f7d000): 0:55)* (StatusBar#0 (0xb0ee6000): 4:1221672) (com.android.systemui.ImageWallpaper#0 (0xb0ee9000): 0:64133)* (animation background stackId=0#0 (0xb0992000): 0:2)* (SnapshotStartingWindow for taskId=13852#0 (0xb0936000): 0:21)- (com.example.app/com.tns.NativeScriptActivity#0 (0xb050a000): 229:247)
2021-12-24 09:42:21.758 11535-11535/com.example.app D/FirebasePlugin: onActivityPaused: Application has been stopped.
2021-12-24 09:42:21.876 11535-11898/com.example.app D/OpenGLRenderer: endAllActiveAnimators on 0x8b452080 (RippleDrawable) with handle 0x8b543cc0
2021-12-24 09:42:24.310 1832-5590/? I/ActivityManager: Process com.example.app (pid 11535) has died: prev LAST
2021-12-24 09:42:24.311 1832-7137/? I/WindowManager: WIN DEATH: Window{34be533 u0 com.example.app/com.tns.NativeScriptActivity}
2021-12-24 09:42:25.011 810-810/? D/SFPerfTracer: layers: (1:9) (animation background stackId=1#0 (0xb0ed6000): 0:16516)* (DimLayerController/Stack=0#0 (0xb0ee3000): 0:69830)* (Sprite#0 (0xb0f7d000): 0:55)* (StatusBar#0 (0xb0ee6000): 66:1221764)* (com.android.systemui.ImageWallpaper#0 (0xb0ee9000): 0:64133)* (animation background stackId=0#0 (0xb0992000): 0:2)* (com.example.app/com.tns.NativeScriptActivity#0 (0xb050a000): 0:268)- (Splash Screen com.motorola.cameraone#0 (0xb0936000): 0:30)- (com.motorola.cameraone/com.motorola.camera.Camera#0 (0xb050f000): 2:10)*
Using:
NativeScript CLI: 8.1.5
NativeScript Android: 8.1.1
NativeScript Core: 8.1.5
Camera Plugin: 5.0.10
The plugin is unusable at this point so I'll try @nstudio/nativescript-camera-plus to see if the same happens
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NativeScript/plugins のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
NativeScript/plugins#680 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NativeScript/plugins#671 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
NativeScript/plugins#640 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/plugins#668 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/plugins#665 · コメント 1 件 ·
NativeScript/plugins の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
usability
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
inmanta/web-console#7367 ·