MCMrARM / revolution-irc

A modern Android IRC client. #revolutionirc on Libera.chat
GNU General Public License v3.0
548 stars 63 forks source link

history/logs lost on abrupt shutdown #323

Open kurahaupo opened 2 years ago

kurahaupo commented 2 years ago

As I mentioned in #287, if the app is terminated abruptly, upon restarting the most recent content from the channels and privmsgs is missing; typically I can see all message older than 12 to 48 hours, and then nothing until the restart. The cut-off is consistent across all channels; they all appear to have stopped recording at the same time.

The most common proximate cause seems to be device shut-down/reboot, either because the battery goes flat, or once a month at 4am after an automatic OS upgrade.

It's particularly distressing to find that some important PM has been lost because the device has shut down or rebooted while unattended.

It seems likely that this is retrospective erasure of the most recent messages, rather than a failure to (attempt to) record them. Perhaps the message logs are buffered in-memory, and that's not being properly flushed to storage?

-Martin

kurahaupo commented 2 years ago

I figured out how to turn off unattended automatic OS upgrades, now I just have to figure out how to permanently avoid a flat battery.