Commit 1781511
authored
Prevent crash from ZipFile GC cleanup I/O errors (#957)
When a ZipFile is garbage collected and its underlying file descriptor
is no longer valid, the FinalizerDaemon throws UncheckedIOException
wrapping an EIO error. This is a non-critical platform issue — the
object is already unreachable and the OS reclaims the fd on process
exit. Detect this specific pattern via CleanableResource/PhantomCleanable
in the stack trace, report to Sentry, and return without killing the
process.1 parent 3077688 commit 1781511
File tree
2 files changed
+14
-5
lines changed- app/src/main/java/com/itsaky/androidide/app
- subprojects/javac-services/src/main/java/com/itsaky/androidide/javac/services/fs
2 files changed
+14
-5
lines changedLines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | | - | |
189 | | - | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
199 | 207 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments