evaluation of function '%s' cannot take place because the thread is in a state in which function evaluation is not possible ...