debug save thread error