[Crash] Droid-ify tries to open non-existing (stale/removed) APK in cache.

オープン
#1,443 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

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 の本文から書いたものです。

説明

crash
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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Droid-ify/client のほかの issue

Droid-ify/client の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。