petabridge / petabridge/DrawTogether.NET
Disposal errors when navigating away from `Paint.razor` under some conditions
Open
Nobody has claimed this yet.
bug
- Dominant language
- C#
- Stars
- 107
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
System.NullReferenceException: Object reference not set to an instance of an object.
at Akka.Actor.ActorRefImplicitSenderExtensions.Tell(IActorRef receiver, Object message)
at DrawTogether.Components.Pages.Paint.DisposeAsync() in C:\Repositories\Petabridge\DrawTogether.NET\src\DrawTogether\Components\Pages\Paint.razor:line 238
at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass93_0.<<Dispose>g__HandleAsyncExceptions|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass93_0.<<Dispose>g__HandleAsyncExceptions|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.RenderTree.Renderer.DisposeAsync()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.<DisposeAsync>g__Await|26_0(Int32 i, ValueTask vt, List`1 toDispose)
at Microsoft.AspNetCore.Http.Features.RequestServicesFeature.<DisposeAsync>g__Awaited|9_0(RequestServicesFeature servicesFeature, ValueTask vt)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.<FireOnCompleted>g__ProcessEvents|242_0(HttpProtocol protocol, Stack`1 events)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/DrawTogether/Components/Pages/Paint.razor, especially DisposeAsync() at line 238, and inspect the actor message sent during component disposal. Reproduce navigation away from Paint.razor under the failing conditions and verify disposal completes without the NullReferenceException shown in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100