[Crash] Droid-ify tries to open non-existing (stale/removed) APK in cache.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
The crash is a FileNotFoundException thrown from ReleaseFileValidator.validate when it opens a file under cache/partial. Start by reading that validator and the download code that writes and cancels the partial APK, to see where the file can disappear before it is opened. The issue does not name a fix, so agree on the intended behaviour with maintainers first. Done means a missing cached file is handled without a crash, with a test covering that case.
索引モデルが issue の本文から書いたものです。
説明
Guidelines
- I have searched the issue tracker for open and closed issues that are related to the crash report I want to file, without success.
- I'm on the latest release
What happened
Crash suggests Droid-ify does not guard somewhere at com.looker.droidify.service.ReleaseFileValidator.validate I believe (check relevant stsck trace). I don't think this crash is critical, and I have yet to reproduce it again. It still might be good idea to check code there and maybe catch some exceptions before they propagate further, eventually adding some fallback logic.
Even though it might be some (rare?) edge case I'm just writing this issue in order to add it to some kind of agenda to let it be checked out eventually. Maybe I'll even check it out if this stays open long enough.
Steps to reproduce
Crash happens in background, might be unnoticeable (LogFox captures it). It most likely can happen on downloads and possibly on race between opening fetched APK and canceling the operation / clearing cache.
Device
(irrelevant, crash is about IO handling)
Android version
Android 13
Droid-ify version
v0.7.8 (F-Droid)
Logs
Logs
AndroidRuntime: java.io.FileNotFoundException: /data/user/[USER]/com.looker.droidify/cache/partial/f9e9e39fccf340ca9331287940c29945452f07cd971c28be3626f634ba488c3d.apk: open failed: ENOENT (No such file or directory)
AndroidRuntime: at libcore.io.IoBridge.open(IoBridge.java:574)
AndroidRuntime: at java.io.FileInputStream.<init>(FileInputStream.java:160)
AndroidRuntime: at com.looker.droidify.service.ReleaseFileValidator.validate(r8-map-id-ae06e847c618fe2b529b0ff6b4af8904ca732891fa1c5a4bdf155504602ab775:7)
AndroidRuntime: at androidx.compose.foundation.MutatorMutex$mutateWith$2.invokeSuspend(r8-map-id-ae06e847c618fe2b529b0ff6b4af8904ca732891fa1c5a4bdf155504602ab775:233)
- 主要言語
- Kotlin
- スター
- 7.8k
- フォーク
- 237
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Droid-ify/client のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Droid-ify/client の issue をすべて見る
似ている issue
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
codual-ai/designlane#58 ·
メンテナーはふだん 1 日以内に返信
-
[Request]: Kylleneオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ScoopInstaller/Extras#19589 ·
メンテナーはふだん 1 日以内に返信
-
difficulty: beginner documentation help wanted networking
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
feature request needs decision
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tswistak/Battery-Monitor#207 ·
メンテナーはふだん 1 日以内に返信