Skip to content
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

Exception in render loop #2063

Closed
ahopper opened this issue Nov 1, 2018 · 3 comments

Comments

@ahopper
Copy link
Contributor

commented Nov 1, 2018

I have recently started seeing these exceptions. I've yet to create a simple repro but they occur in my app which has a lot of the screen being continuously updated, the exceptions only seem to occur when I do things like mouseover a button.

Visual: Exception in render loop: "System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time) in D:\a\1\s\src\Avalonia.Visuals\Rendering\RenderLoop.cs:line 120"
Visual: Exception in render loop: "System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Ref<Avalonia.Rendering.SceneGraph.Scene>'.
   at Avalonia.Utilities.RefCountable.Ref`1.Clone() in D:\a\1\s\src\Avalonia.Base\Utilities\Ref.cs:line 186
   at Avalonia.Rendering.DeferredRenderer.Avalonia.Rendering.IRenderLoopTask.Render() in D:\a\1\s\src\Avalonia.Visuals\Rendering\DeferredRenderer.cs:line 173
   at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time) in D:\a\1\s\src\Avalonia.Visuals\Rendering\RenderLoop.cs:line 120"
@ahopper

This comment has been minimized.

Copy link
Contributor Author

commented Nov 19, 2018

appears fixed in v0.7.1-build731-beta possibly by #2117 ?

@ahopper ahopper closed this Nov 19, 2018
@ahopper

This comment has been minimized.

Copy link
Contributor Author

commented Nov 19, 2018

after a longer test the issue is still there

@ahopper ahopper reopened this Nov 19, 2018
@grokys grokys self-assigned this Mar 2, 2019
@ahopper

This comment has been minimized.

Copy link
Contributor Author

commented Mar 6, 2019

fixed by #2351

@ahopper ahopper closed this Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.