Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Error while compiling application

Open Slupy opened this issue 1 year ago • 12 comments

When the application starts, it starts and freezes, and an error is written in the debug console: [Visual] Exception in render loop: 'System.Runtime.InteropServices.COMException (0x80070057): Resize failed

Slupy avatar Jul 22 '22 19:07 Slupy

@Slupy it's not possible to help without being able to reproduce it. Do you have anything that might help?

maxkatz6 avatar Jul 22 '22 19:07 maxkatz6

@maxkatz6 I don't even know what can help.

Here's what I'm using: 4GB RAM Windows 10 VSC Preview (latest)

Slupy avatar Jul 22 '22 19:07 Slupy

In that case it can help to upload your entire solution to a new github repo. I think there's smth broken in your code.

timunie avatar Jul 22 '22 20:07 timunie

@timunie which version dotNET should be used?

Slupy avatar Jul 24 '22 12:07 Slupy

I'm using 6.0

Slupy avatar Jul 24 '22 12:07 Slupy

I use also net 6.0

timunie avatar Jul 24 '22 12:07 timunie

But again, if you show us what you have so far we may be able to help.

Do.you have any custom control or something like this?

timunie avatar Jul 24 '22 12:07 timunie

@timunie I didn't change anything there. Just took a sample

Slupy avatar Jul 24 '22 12:07 Slupy

That's very strange.

timunie avatar Jul 24 '22 13:07 timunie

Please upload your sample here. There must be anything wrong.

Also which Avalonia version are you using?

timunie avatar Jul 24 '22 13:07 timunie

How to check the version?

Slupy avatar Jul 24 '22 13:07 Slupy

How to check the version?

In your nuget package manager.

timunie avatar Jul 25 '22 08:07 timunie

I got this same error today and also months ago around when @Slupy posted this if I recall correctly. So its definitely intermittent because re-running started fine.

I'm using .net 6 on Windows:

Edition Windows 11 Pro Version 22H2 Installed on ‎10/‎4/‎2022 OS build 22621.1105 Experience Windows Feature Experience Pack 1000.22638.1000.0

Pretty much the same console message: [Visual] Exception in render loop: 'System.Runtime.InteropServices.COMException (0x887A0005): Resize failed

In Windows Event Viewer my system log shows a 'Display' Warning w/ Event ID '4101': Display driver igfx stopped responding and has successfully recovered.

So its probably graphics hw related...My cards are: Nvidia quadro m1200 | Intel HD Graphics 630

tkefauver avatar Jan 16 '23 15:01 tkefauver

In this case this issue can be closed, as latest nightly does restart the rendering loop after driver has crashed.

maxkatz6 avatar Jan 17 '23 05:01 maxkatz6