NullReferenceException in Avalonia.Media.MediaContext.CommitCompositor
See original GitHub issueDescribe the bug NullReference in Avalonia.Media.MediaContext.CommitCompositor:
partial class MediaContext
{
private bool _scheduleCommitOnLastCompositionBatchCompletion;
private Batch CommitCompositor(Compositor compositor)
{
var commit = compositor.Commit();
_requestedCommits.Remove(compositor);
_pendingCompositionBatches[compositor] = commit;
commit.Processed.ContinueWith(_ =>
Dispatcher.UIThread.Post(() => CompositionBatchFinished(compositor, commit), DispatcherPriority.Send));
return commit;
}
This happens after upgrade from 11.0.0-preview6 to 11.0.0-rc1.1
To Reproduce
- Clone https://github.com/arnirichard/visual_neural_networks
- Debug project VisualNeuralNetwork and wait until data is loaded
- Set “Image processing” to “Stretch” on one side (this may not matter at all)
- Press “Next batches”
- Exception occurs after some time while the neural network is training (this did not happen in Avalonia 11.0.0-preview6
Expected behavior No exception should occur
Screenshots
Desktop (please complete the following information):
- OS: Windows 11 Pro
- Version 11.0.0-rc1.1
Issue Analytics
- State:
- Created 3 months ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
c# - Avalonia NullReferenceException when referencing ...
Why am I getting this null exception? This seems to work fine outside of Avalonia. I tried. Getting/setting in the UserControl (produced the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Duplicate of #11603. Can you please try latest nightly builds? It should already be fixed there.
Thanks, fixed now.