error: evaluation of function '%s' cannot take place because the thread is at a location at which function evaluation is ...