Skip to content

Fix crash concurrent ftx UI postevent#59

Merged
janb84 merged 3 commits into
mainfrom
fix/fix_crash_concurrent_FTXUI_postevent
Jun 22, 2026
Merged

Fix crash concurrent ftx UI postevent#59
janb84 merged 3 commits into
mainfrom
fix/fix_crash_concurrent_FTXUI_postevent

Conversation

@janb84

@janb84 janb84 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

PR fixes app crashing after a while.

Root cause: background threads (the RPC poller, the animation ticker,
and every Lua tab worker) called ftxui::App::PostEvent() concurrently.

In FTXUI 7, PostEvent pushes onto an unlocked std::deque
(MultiReceiverBuffer::Push) and mutates animation state with no lock,
so it is loop-thread-only. Concurrent producers raced the loop's
consumer and corrupted the queue

This is a regression from the v6->v7 upgrade, where ScreenInteractive::PostEvent
used to be mutex-protected.

@janb84 janb84 merged commit 6693baa into main Jun 22, 2026
6 checks passed
@janb84 janb84 deleted the fix/fix_crash_concurrent_FTXUI_postevent branch June 22, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant