diff options
| author | BoiledElectricity <james.dellamorte@gmail.com> | 2026-06-16 16:20:02 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-06-16 16:20:02 +0200 |
| commit | ce14fc91fb84c51650f57c059396756e1fc3c4cf (patch) | |
| tree | fe4de221202edf705f3b5383054bbf0b79b7d4bc /src/input_common/input_poller.cpp | |
| parent | c27266c4cd5feabd01c8de89573c229a0ed5991d (diff) | |
[game_list] fix crash and flashing from the directory watcher (#4099)
So the game list watcher could rebuild the content providers
(CreateFactories) while the populate worker was still scanning them, and
the worker would walk a torn-down RegisteredCache and segfault in
OpenFileOrDirectoryConcat. Fixed by stopping and joining the worker
before rebuilding.
On macOS the watcher also re-armed itself every populate. Re-adding the
same paths makes QFileSystemWatcher re-emit directoryChanged (the
FSEvent comes in async, so the blockSignals guard misses it), so it just
kept refreshing and the list flashed forever. Now it only re-arms when
the watched dirs actually changed.
Also null-guarded OpenFileOrDirectoryConcat so a torn-down cache cant
null-deref there.
Related: https://github.com/eden-emulator/Issue-Reports/issues/336
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4099
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/input_common/input_poller.cpp')
0 files changed, 0 insertions, 0 deletions
