Release of invalid GC handle. The handle is from a previous domain. The release operation is skipped

当我使用cesium-unity-samples示例时,偶尔会报出Release of invalid GC handle. The handle is from a previous domain. The release operation is skipped.这个错误
Release of invalid GC handle native callstack: 0x00007ff72aeba45d (Unity) StackWalker::GetCurrentCallstack 0x00007ff72aebf529 (Unity) StackWalker::ShowCallstack 0x00007ff72be90e11 (Unity) GetStacktrace 0x00007ff72adb7c4d (Unity) ScriptingGCHandle::ReleaseAndClear 0x00007ff72b36ffff (Unity) DownloadHandlerScript::~DownloadHandlerScript 0x00007ff72b370192 (Unity) DownloadHandlerScriptCached::vector deleting destructor’
0x00007ff72b3729bd (Unity) DownloadHandler::Release
0x00007ff72b373f15 (Unity) UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>::~UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>
0x00007ff72b3741f6 (Unity) UnityWebRequest::vector deleting destructor' 0x00007ff72a0e1f77 (Unity) UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>::Release 0x00007ff72b375a65 (Unity) UnityWebRequestAsyncOperation::InvokeCoroutine 0x00007ff72b375c41 (Unity) UnityWebRequestProto<UnityWebRequestTransport,AtomicRefCounter,RedirectHelper,ResponseHelper,DownloadHandler,UploadHandler,CertificateHandler,HeaderHelper,AsyncOperation>::Job_InvokeCoroutine 0x00007ff72a9e63ba (Unity) BackgroundJobQueue::ExecuteMainThreadJobs 0x00007ff72aa98c3f (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete 0x00007ff72bd10ea2 (Unity) EditorSceneManager::RestoreSceneBackups 0x00007ff72ba0cc86 (Unity) PlayerLoopController::EnterPlayMode 0x00007ff72ba1d336 (Unity) PlayerLoopController::SetIsPlaying 0x00007ff72ba1faa9 (Unity) Application::TickTimer 0x00007ff72be9778a (Unity) MainMessageLoop 0x00007ff72be9d020 (Unity) WinMain 0x00007ff72d27d38e (Unity) __scrt_common_main_seh 0x00007ffe4f3f7344 (KERNEL32) BaseThreadInitThunk 0x00007ffe501a26b1 (ntdll) RtlUserThreadStart

Hi @masterofgongfu, welcome to the community!

I see you’ve posted a callstack for a bug. We usually need more information to figure out what’s actually happening. For example, what were you doing when you saw this message? Can you provide us with step-by-step instructions for reproducing it?

Once we have more information, we’ll be able to provide more informed support. Thank you!

使用的unity版本 unity 2022.3.17f1c1. 当我第一次打开项目并启动02_CesiumeMelboure时,很大概率会出现这个错误,我没有修改任何代码或执行任何操作。我猜想可能跟加载3D瓦片的texture有关,但我并没有找到证据来验证这一点。显卡使用的时 NVIDIA GeForce RTX 2060.而且每当我打开cesium-unity-samples时会占用我很高的GPU内存

Hi @masterofgongfu,

Thank you for the detailed information. I was able to see this error myself when entering / exiting Play mode in 02_CesiumMelbourne.

We keep track of bugs like these on Github, so I’ve written up some notes on this issue here. We need to investigate this more thoroughly, but we’ll be sure to update this thread when we make progress. Thank you again for your report, it’s very helpful!