-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: The delegate target that is being invoked is no longer available. Please check if it has been prematurely GC'd. #55679
Comments
This is in Google Chrome, right? (by the look of the devtools screenshot). Do you know which specific version? The stack trace you provided is very strange to me, many of the functions in the traceback don't ever call each other. |
OK, thanks. We can just assume the stack traces being weird is an FF problem and worry about that separately. |
That's very helpful, thank you! It confirms my theory for what's going on here. |
Usually I was able to get this error in about 10 min (around 20 page refresh). But after changing: try{ await hc.StartAsync();} to something like: try{ I was not able to get this error in since 3h. But since its hard to reproduce it, not sure if that helped or I was just lucky. |
@lewing should we transfer the issue to Runtime? |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescribe the bug As originally posted in dotnet/aspnetcore#32386 sometimes when loading/refreshing Blazor wsam site that uses signalr connection it fails with message from title. But I do not think it is resolved in net6. This error is somewhe inside try{ await hc.StartAsync();} catch and finally block are never called. To Reproduce Similar as in: dotnet/aspnetcore#32386 Exceptions (if any) Uncaught Error: The delegate target that is being invoked is no longer available. Please check if it has been prematurely GC'd. Further technical details ASP.NET Core version: .NET6-previev5 Image is build using tools from Digest: sha256:789b28fbee1c28b2c637e5b1dcbc54f93bbcd01db1481447dfaccb79f8bd3fae And run inside: mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim Thanks for the additional details. Given that we haven't received any other similar feedback we're closing this issue as per your statement it's working correctly in .NET 6. Originally posted by @mkArtakMSFT in dotnet/aspnetcore#32386 (comment)
|
Have simpler steps to reproduce here #55735 |
Describe the bug
As originally posted in dotnet/aspnetcore#32386 sometimes when loading/refreshing Blazor wsam site that uses signalr connection it fails with message from title. But I do not think it is resolved in net6. This error is somewhe inside
HubConnection.StartAsync(CancellationToken cancellationToken = default). Also wrom whar I observed this exception is not propageted. So if you have something like:
try{ await hc.StartAsync();}
catch{}
finally{}
catch and finally block are never called.
To Reproduce
Similar as in: dotnet/aspnetcore#32386
Exceptions (if any)
Uncaught Error: The delegate target that is being invoked is no longer available. Please check if it has been prematurely GC'd.
invoke_delegate https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_unbox_delegate_rooted https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_set_object_property https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_invoke_method https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS https://mono-wasm.invalid/managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:16
endInvokeJSFromDotNet https://domain.com/_framework/blazor.webassembly.js:1
beginInvokeJSFromDotNet https://domain.com/_framework/blazor.webassembly.js:1
promise callbackbeginInvokeJSFromDotNet https://domain.com/_framework/blazor.webassembly.js:1
ct https://domain.com/_framework/blazor.webassembly.js:1
_mono_wasm_invoke_js_blazor https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_invoke_method https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_call_method_with_converted_args https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
call_method https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
set_task_result https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
js_to_mono_obj https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
promise callbackjs_to_mono_obj https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
mono_wasm_convert_return_value https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_invoke_js_with_args https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_invoke_method https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_call_method_with_converted_args https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
call_method https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
set_task_result https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
js_to_mono_obj https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
promise callback*js_to_mono_obj https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
mono_wasm_convert_return_value https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
_mono_wasm_invoke_js_with_args https://domain.com/_framework/dotnet.6.0.0-preview.5.21301.5.js:1
dotnet.6.0.0-preview.5.21301.5.js:1:203039
Further technical details
ASP.NET Core version: .NET6-previev5
Image is build using tools from
Digest: sha256:789b28fbee1c28b2c637e5b1dcbc54f93bbcd01db1481447dfaccb79f8bd3fae
Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim
And run inside:
mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim
Digest: sha256:37068731bf9ae0789e1d28f8d75ac52c7ef4d88e7b81574caa7017ebc8fe0320
Status: Downloaded newer image for mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim
Thanks for the additional details. Given that we haven't received any other similar feedback we're closing this issue as per your statement it's working correctly in .NET 6.
Originally posted by @mkArtakMSFT in dotnet/aspnetcore#32386 (comment)
The text was updated successfully, but these errors were encountered: