You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet.js:8653 Uncaught (in promise) System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Test.Client.Main(JSObject output)
--- End of inner exception stack trace ---
Other times it prints something like the following with a tp callback threw a System.NullReferenceException
dotnet.js:2356
dotnet.js:2356 Unhandled Exception:
dotnet.js:2356 System.NullReferenceException: Object reference not set to an instance of an object.
dotnet.js:2356 at Test.Client.CloseWebSocket(String closeReason)
dotnet.js:2356 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
dotnet.js:2356 at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
dotnet.js:2356 at System.Threading.ThreadPoolWorkQueue.Dispatch()
dotnet.js:2356 at System.Threading.ThreadPool.Callback()
dotnet.js:2344 tp callback threw a System.NullReferenceException
I've been trying to reproduce this and can't. There must be more to it, like a set of conditions that lead to it happening. Does it need to be running in a browser environment in particular, or in node? Does the await need to happen in an event handler or a threadpool task?
The issue may be a little misleading. The issue is basically documenting that the message being displayed is a little weird and probably should be changed from tp to thread pool.
Activity
[-][browser][wasm] Handle null task exception [/-][+][browser][wasm] Handle null task exception message[/+]kg commentedon Jul 27, 2020
I've been trying to reproduce this and can't. There must be more to it, like a set of conditions that lead to it happening. Does it need to be running in a browser environment in particular, or in node? Does the await need to happen in an event handler or a threadpool task?
kjpou1 commentedon Jul 28, 2020
The issue may be a little misleading. The issue is basically documenting that the
messagebeing displayed is a little weird and probably should be changed fromtptothread pool.The system handles the case correctly though.
Update threadpool callback error messages to fix dotnet#38803
Update threadpool callback error messages to fix dotnet/runtime#38803
Update threadpool callback error messages to fix dotnet/runtime#38803 (…
Update threadpool callback error messages to fix dotnet#38803 (dotnet…