Importing can sometimes fail in multi-threaded scenarios

Issue #236 resolved
Max Bélanger
created an issue

We've noticed the following exception can occur (rarely) in some scenarios:

Traceback (most recent call last):
  File "ImageCaptureCore/", line 21, in <module>
  File "objc/", line 81, in __init__
RuntimeError: dictionary changed size during iteration

This is possible if another thread mutates sys.modules during the for loop in

Comments (4)

  1. Log in to comment