New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to return a typed.Dict() from the function, but it raised error. Can anyone help me? #9511
Comments
@classysky, thanks for the report. I can reproduce the error. Error is coming from
edit: Just realized you're using |
@guilhermeleobas Thank you for your works. I think the code is thread safe since it works when the iteration number is 10000. |
I try to initialize a dictionary and pass it to the function. It works. |
The typed containers are currently not thread-safe, concurrent writes to a container that would cause a resize of the container would lead to invalid state occurring (threads trying to resize the underlying storage for the container whilst other threads are reading from/writing to it). This is documented here: numba/docs/source/reference/pysupported.rst Lines 795 to 800 in 609c8c9
It looks like you've found a workaround, will close this ticket. Thanks for using Numba! |
version:
numba=0.58.1
numpy=1.25.1
the error is:
[Done] exited with code=3221225477 in 1.75 seconds
sometimes error would become:
[Done] exited with code=3221226356 in 0.632 seconds
PS: If remove the code "return tdict" or reduce the iteration number 100000 to 100, it would not raise the error. I need to output the typed.Dict() and the iteration number is large generally.
The text was updated successfully, but these errors were encountered: