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
+4.1k Golang : automatically figure out array length(size) with three dots
+3.5k How to let Facebook Login button redirect to a particular URL ?
+15.6k Golang : Get and Set User-Agent examples
+1.7k Detect if Google Analytics and Developer Media are loaded properly or not
+2.6k Android Studio : AlertDialog to get user attention example
+5.5k Golang : Bcrypting password
+4.7k Golang : Resolve domain name to IP4 and IP6 addresses.
+6.3k Elastic Search : Return all records (higher than default 10)
+6.6k Golang : calculate elapsed run time
857 Java : Get FX sentiment from website example
+6k Golang : Transform comma separated string to slice example
+3.3k Mac OSX : Find large files by size