-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] UWP application cannot run in release mode in Xamarin.Forms 4.8 #11736
Comments
I hope this is related to my problem, that seems similar. Can anyone comment on that? I use Xamarin.Forms 4.8.0.1269. I can run and install the DEBUG build of the UWP-version of my client, for both x86 and x64. In both cases it basically crashes in The exception is: The stack for x86 is: |
closed by #11766 |
Description
UWP applications with Shell cannot run in the release mode. It crashes immediately after start. When I downgrade to 4.7.0.1239, it runs also in the release mode.
My application works fine in debug mode. When I switch to release mode and run it using Ctrl+F5, the following error is displayed:
When I run it using F5, a more details are shown. It seems that the crash is in the OnLaunched method in the App.xml.cs in the UWP project. The error message is "Unhandled exception at 0x01D5D83E (SharedLibrary.dll) in MyApp.UWP.exe: 0x00001007.":
Things that I have tried and that do not help:
If I downgrade XF back to 4.7.0.1239, the app works fine in the release mode. The bug is in the Shell. If I set the MainPage to a ContentPage instead of the Shell, the app runs also in release mode in XF 4.8.
This bug is very nasty because everything seems to be all right during development. I have already added several new features that use gradient brushes from XF 4.8. Only when I prepared a new version and tried to publish it, I have released that it is completely broken.
Steps to Reproduce
I have prepared a repro project.
UwpReleaseCrash.zip
Try to launch it in debug mode and it should work. Now try it in release mode. It crashes immediately.
The repro project does not contain anything special. It is basically a new blank Xamarin.Form project created in Visual Studio where I have just added Shell and upgraded all Nugets.
Expected behavior
The UWP applications with Shell should work in both debug and release mode.
Actual behavior
The UWP applications with Shell works only in debug mode. It crashes immediately in release mode.
Basic Information
Xamarin.Forms (4.7.0.1239)
Xamarin.Essentials (1.5.3.2)
Microsoft.NETCore.UniversalWindowsPlatform (6.2.10)
Workaround
No workaround. The only way how to make it work again is to revert all your recent commits that uses features from Xamarin.Forms 4.8 and downgrade back to Xamarin.Forms 4.7 :-(.
The text was updated successfully, but these errors were encountered: