strix icon indicating copy to clipboard operation
strix copied to clipboard

[BUG] RuntimeError: dictionary changed size during iteration when running Strix in TUI mode

Open reza-seidgar opened this issue 1 month ago • 3 comments

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!

reza-seidgar avatar Nov 26 '25 09:11 reza-seidgar

Hi @reza-seidgar Thanks for reporting the issue!

Which version of Strix do you have installed?

0xallam avatar Nov 26 '25 10:11 0xallam

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

SirTificate avatar Nov 30 '25 16:11 SirTificate

@0xallam @SirTificate This is the fix https://github.com/usestrix/strix/pull/185

Vincent550102 avatar Dec 09 '25 08:12 Vincent550102