Since the while loop is not closed in the instance I assume it might be an similar issue to this one:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| "Continuous" logging | 6 | 1608 | May 8, 2017 | |
| Write to text file while using threads | 12 | 1246 | November 24, 2021 | |
| Update stdout while a function is running | 8 | 778 | January 26, 2023 | |
| Printing in a background process | 10 | 889 | May 22, 2022 | |
| Thread-safe alternative to `redirect_stdio`? | 3 | 128 | September 29, 2025 |