Skip to content

Conversation

@Matistjati
Copy link
Contributor

@Matistjati Matistjati commented Jun 12, 2025

Multithreading crashes with the latest problemtools version:

Loading problem <x>
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/matistjati/software/problemtools/problemtools/verifyproblem.py", line 2037, in <module>
    main()
  File "/home/matistjati/software/problemtools/problemtools/verifyproblem.py", line 2021, in main
    errors, warnings = prob.check()
                       ^^^^^^^^^^^^
  File "/home/matistjati/software/problemtools/problemtools/verifyproblem.py", line 1873, in check
    item.start_background_work(context)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TestCaseGroup' object has no attribute 'start_background_work'

I have not dug into where along the way things went awry, but the fix is simple. We really need more automated tests.

@gkreitz gkreitz merged commit 3be768f into Kattis:master Jun 12, 2025
5 checks passed
@Matistjati Matistjati deleted the fix-multithreading branch August 20, 2025 13:43
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.

2 participants