You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading excel files from different threads this method can be executed at same time. On screenshot we got race condition when inserting tblLook in non thread safe class Dictionary
The text was updated successfully, but these errors were encountered:
The SDK is not guaranteed to be threadsafe. I've been slowly adding better synchronization/reduction of state to help it work better in a threaded environment, but since it was not designed initially to be threadsafe, it's a slow process. Can you provide a test that shows the exact scenario you are doing?
I took a quick look and can definitely see a possible cause (lots of unsynchronized read/write). A repro would help ensure it's a full fix, but is probably not necessary if it's hard to create (which a lot of multi-threaded issues tend to be)
I've marked this as up-for-grabs - should be a fairly easy fix. The dicOfTranslators can be preinitialized. If @proff or anyone else is interested, let me know and I'll assign you to it.
@proff I've submitted a fix for this. It turned out to be many kinds of wrong with multiple ways of entering race conditions. I completely redesigned this feature and it should work much more reliably. Thanks for notifying us of this issue!
When loading excel files from different threads this method can be executed at same time. On screenshot we got race condition when inserting tblLook in non thread safe class Dictionary
The text was updated successfully, but these errors were encountered: