Version: Cheogram 2.19.0-4+free
java.io.UncheckedIOException: java.io.IOException: close failed: EIO (I/O error)
at java.util.zip.ZipFile$CleanableResource.run(ZipFile.java:879)
at jdk.internal.ref.CleanerImpl$PhantomCleanableRef.performCleanup(CleanerImpl.java:212)
at jdk.internal.ref.PhantomCleanable.clean(PhantomCleanable.java:133)
at java.lang.Daemons$FinalizerDaemon.doClean(Daemons.java:405)
at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:375)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:352)
at java.lang.Daemons$Daemon.run(Daemons.java:132)
at java.lang.Thread.run(Thread.java:1119)
Caused by: java.io.IOException: close failed: EIO (I/O error)
at libcore.io.IoBridge.closeAndSignalBlockedThreads(IoBridge.java:313)
at java.io.RandomAccessFile.close(RandomAccessFile.java:726)
at java.util.zip.ZipFile$Source.close(ZipFile.java:1488)
at java.util.zip.ZipFile$Source.release(ZipFile.java:1435)
at java.util.zip.ZipFile$CleanableResource.run(ZipFile.java:870)
… 7 more
Caused by: android.system.ErrnoException: close failed: EIO (I/O error)
at libcore.io.Linux.close(Native Method)
at libcore.io.ForwardingOs.close(ForwardingOs.java:176)
at libcore.io.BlockGuardOs.close(BlockGuardOs.java:113)
at libcore.io.ForwardingOs.close(ForwardingOs.java:176)
at libcore.io.IoBridge.closeAndSignalBlockedThreads(IoBridge.java:311)
… 11 more
Seems real and seems related to the lifetime of WebxdcPage objects, which open a ZipFile in their constructors. They’re created with MessageAdapter.displayWebxdcMessage() during message-row binding. Scrolling around a conversation with WebXDC messages might create ZipFiles, but I don’t think they’re ever explicitly closed until the GC tries to clean them up later on. I’m not sure why the GC fails to close them, but explicitly doing so when we’re done seems good and might let us figure out what the underlying issue is.