Page MenuHomePhorge

Crash if saving session fails
Closed, ResolvedPublicBUG

Description

moe.kazv.mxc.kazv: QtJob: Requesting "GET" QUrl("https://uwu.lily-is.land/_matrix/client/v3/sync?filter=jkq1&since=2579936&timeout=20000")
storeFile= "/home/tusooa/.local/share/project-kazv/kazv-release/sessions/QHR1c29vYTp1d3UubGlseS1pcy5sYW5k/Lb0CcIHm4L/store"
terminate called after throwing an instance of 'boost::archive::archive_exception'
  what():  output stream error
kf.xmlgui: Index  25  is not within range (0 -  21 )

First, I think we should use QSaveFile to prevent overriding the original session file if the save failed.

Second, exceptions should be handled, as it can happen when e.g. there is no more space on disk.