-
Notifications
You must be signed in to change notification settings - Fork 778
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
Multithread error #109
Comments
Thanks for reporting! Would you submit a pull request that adds a mutex around building the index? |
@mislav Of course, but we fix this problem in version 2.1.0. In 3.0.0rc1, you use |
This was referenced Nov 24, 2016
virgoproz
pushed a commit
to virgoproz/gemoji
that referenced
this issue
Mar 28, 2017
Fixes github#109, closes github#111
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
We use your gems in high-load application and faced with a problem :
NoMethodError
in function.find_by_unicode
/.find_by_alias
.After some review, we found problem: when we use Gemoji in multithreading, variable@all
defined in first thread, but not fill-in yet. Second thread use.find_by_unicode
, pass check on@all
and return not defined@unicode_index
=>NoMethodError
.I create a RSpec test for you:(it don't looks great, but I have small xp in testing yet:) )
and propose to use Mutex in this functions to avoid this problem.
Maybe, you have another ideas for this error :)
The text was updated successfully, but these errors were encountered: