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
[Bug] UWP is throwing exception randomly after 4.8.0.1687 and VS 2019 16.8.1 #12884
Comments
@maxbrister does this ring a bell ?? |
Same random error on UWP after VS 16.8.1 update |
Yes, this is a known issue with Uwp/Xamarin incremental hot reload. Disabling the Uwp in-app toolbar should workaround the crash (uncheck Options->Debugging->Hot Reload ->Enable in-app toolbar). Unfortunately the underlying crash is caused by a core clr issue and apps making heavy use of reflection may experience issues. We are working on a fix for 16.9. |
Can you try adding the following to your Uwp project head?
|
@EmilAlipiev Could you try the latest suggestion from Max? |
Build error with
|
It works now with disabled |
I disabled all of the UWP hot reload debug options and was still getting the ExecutionEngineException randomly. I then added |
question is if that is effecting Release mode as well?? or it is just debug issue. Do i need this EnableTypeInfoReflection = false when i want to make a new release? |
That's a good question. I'm also concerned with adding a new csproj tag not fully understanding the side effects. |
I've not had any problems with my release builds, it's only with the debugger attached since it's related to Hot Reload |
also, I can run my debug builds without the debugger attached and I don't receive the error. |
|
are you able to run your app in release mode? For me my app is no longer running in release. i am getting all the time |
Thanks @maxbrister and @jsuarezruiz this workaround worked for me with XF 5 and VS 16.8.4. I just hope this fix won't affect to Release... I'll keep in touch! |
Sorry for everyone having this issue. An update on the situation is that we've got a tooling fix in 16.9 Preview 4+, but it depends on a related fix that lives inside of the .NET Native NuGet package which is also going to be released soon and is required to make this error finally go away. Once both things are available, and your projects are updated then this issue should be fully resolved. Thank you for your patience and for now there is a workaround above that should work. |
Microsoft.NETCore.UniversalWindowsPlatform 6.2.12 is now available and contains a fix for the ExecutionEngineException. If you're on the preview channel after updating to 16.9 Preview 4 you should be prompted to update your NuGet package on F5. If you're on 16.8 you will need to update Microsoft.NETCore.UniversalWindowsPlatform via the NuGet package manager. @hupo376787, @EmanterolaDN, @EmilAlipiev, @MattRames can you guys undo your workarounds and give this a try? |
Thank you @maxbrister and all the people involved, we'll include in our app ASAP, @juanmalm |
Hi @maxbrister, I've had the same issue and I've been following this issue ever since then. I can confirm that the issue is gone on my end. Thank you for providing the fix! |
closing per @maxbrister request |
@maxbrister Unfortunately not working for me when I enable hotreaload as below. I updated to 6.2.12 and VS 2019 16.8.5. it is still throwing similar exception even on start up now. Exception:
|
Exception is thrown even if i disable Live VisualTree |
@EmilAlipiev that's a different issue. I think the problem you're running into now is |
Hi, I'm still facing
|
@hupo376787 can you provide a heap dump of your application when it is crashed? You can generate one in VS using |
Hi, @maxbrister I met this twice today, and the dump file is in https://github.com/hupo376787/System.ExecutionEngineException/releases/download/1.0/test.zip. |
@hupo376787 from your dump it looks like your app is a normal Uwp app not a Xamarin Forms app. Is that correct? There's a good chance you're running into the same underlying bug. If you update the Microsoft.NETCore.UniversalWindowsPlatform NuGet package for your project does that fix the issue? |
Yes, it's a pure uwp app. I will update and try, thanks.@maxbrister |
Description
After updating VS 2019 16.8.1 version. I am keep getting exception on the function shown below screenshot. This is happening in different places but mostly when i try to navigate between pages.
GetXamlTypeByName(string typeName)
typeName is also different on the crash. I read somewhere that it is related to Uwp Hot reload added into this version and it was suggested that disable hot reload toolbar on top which i did but it didnt help. Still happening.
only message in the debug window is as below. I a worried that this is not VS related but with 4.8.0.1687 version.
The text was updated successfully, but these errors were encountered: