Fix fatal error: evacuation not done in time problem
Encounter one of the strangest error messages in Go today regarding evacuation. Now, what the heck "evacuation" has to do with programming language ? Apparently it has something to do with locks.
This error message :
"fatal error: evacuation not done in time"
is caused by accessing a map from multiple go-routines and ....map is not thread-safe.
Solution :
Check if the RLock or Lock is in proper place. Might need some fine tuning through trial and error.
p/s : This solution is applicable to the error message fatal error: bad state
as well.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+33.9k Golang : Save image to PNG, JPEG or GIF format.
+50.6k Golang : How to get time in milliseconds?
+20.6k Golang : Join arrays or slices example
+9.9k Golang : How to determine a prime number?
+12.6k Golang : Reverse IP address for reverse DNS lookup example
+9.7k Golang : Create Temporary File
+16.2k Golang : Qt image viewer example
+28.1k Golang : missing Git command
+6.4k Android Studio : AlertDialog to get user attention example
+16.3k Golang : Linked list example
+8.6k Golang : Copy map(hash table) example
+8.2k Golang : Timeout example