krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.11k stars 193 forks source link

fix: migrate back to Hive on Linux #1010

Closed TheOneWithTheBraid closed 4 months ago

TheOneWithTheBraid commented 5 months ago

Such sweet sorrow ...

Sadly sqlcipher highly struggles with sigkill. In case FluffyChat receives a sigkill while there's an ongoing database operation, the database in every case corrupts.

Since I didn't find a canonical way to recover this, I'd propose to temporarily migrate back to Hive on Linux - until we reached at fixing the upstream of the Flutter sqlcipher wrapper. I think both @selfisekai and me went deeper into that but as of now we keep crashing when using the distributed sqlcipher from the platform packages rather than the bundled and honestly weirdly implemented sqlcipher distributed in the Flutter wrapper.

Once we fix the upstream, we can likely remove this fix - since it also affects other of my projects I'm sure I'll keep going deeper into it.

So far : best regards from Hive 😢 ...

krille-chan commented 4 months ago

sqflite database no seems to work on all platforms :) so no need for this anymore

selfisekai commented 4 months ago

what