[BUG] RuntimeError: dictionary changed size during iteration when running Strix in TUI mode
Hi, While running a penetration test with Strix in TUI mode, the program crashes during the Dynamic Test phase with the following error: RuntimeError: dictionary changed size during iteration
After this error, the TUI session closes automatically and the test is marked as interrupted. The session folder is created under ~/strix/agent_runs/, but it remains empty and no report file is generated.
How to reproduce: Run a normal Strix test in TUI mode using any valid target. Static Analysis completes successfully. During the Dynamic phase, TUI crashes with the error above.
Expected behavior: TUI should remain stable The Dynamic Test should complete Report files should be generated
Actual behavior: TUI crashes Session ends prematurely No report file is produced
Environment: Ubuntu 22.04 Python 3.12 Strix installed via pipx
Thanks!
Hi @reza-seidgar Thanks for reporting the issue!
Which version of Strix do you have installed?
I'm having exactly the same issue, running: Strix 0.4 installed via pipx on Ubuntu 24.04 with Python 3.12.3.
The error appears to occur here
/pipx/venvs/strix-agent/lib/python3.12/site-packages/strix/interface/tui.py:485 in _update_ui_from_tracer
/pipx/venvs/strix-agent/lib/python3.12/site-packages/strix/interface/tui.py:556 in _update_chat_view
/pipx/venvs/strix-agent/lib/python3.12/site-packages/strix/interface/tui.py:788 in _gather_agent_events
@0xallam @SirTificate This is the fix https://github.com/usestrix/strix/pull/185