mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
Panics during Window serialization can kill listener threads #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LGUG2Z on GitHub (Oct 26, 2021).
Originally assigned to: @LGUG2Z on GitHub.
6ae59671a2/komorebi/src/window.rs (L59)The current
Serializeimplementation for Window is full ofexpectcalls which will panic on the running thread if ever encountered. I have encountered a few of these in the last few days when running at more verbose logging levels.These should be replaced with calls to
serde::ser::Error::customto return aResultso that serialization errors can be handled gracefully without requiring a full restart of the application following a panic on a listener thread.