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

Maui Blazor App :in (release process: "ipa" file ) project crashes on showing a nuget control #13016

Closed
shaden-kwaik opened this issue Jan 31, 2023 · 6 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/iOS 🍎 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working

Comments

@shaden-kwaik
Copy link

Description

I have created .Net Maui Blazor App project and added the nuget package :(Radzen.Blazor version 4.6.3) to use different components.

Everything went fine in the Debug process: tested on Windows Machine, MacCatalyst, ipad

When I released the project and used the ipa file in the ipad :

RadzenButton worked fine but it crashed when the RadzenDropDown appeared.

i thought its the package problem , so i used instead the nuget package: (MudBlazor version 6.1.8) the project also crashed when MudSelect appeared in the Released project.

Operating System: Windows

.NET runtime version: .NET 7

Visual Studio Enterprise 2022 : 17.4.3

(Mac used to create ipa file):

Model Name: Mac mini

MacOS: Ventura 13.0.1

Visual Studio for Mac: 17.4.3

(Ipad used to view the app):

Model Name: ipad (9th generation)

iPadOS: 16.2

Steps to Reproduce

  1. Create new project > .Net MAUI Blazor App
  2. Add nuget package Radzen.Blazor
  3. Follow the steps in https://blazor.radzen.com/get-started to add all Required feature to let it work in the project.
  4. Add RadzenDropdown as described in https://blazor.radzen.com/dropdown
  5. Debug the project either in Windows Machine, IOS (Macatalyst or ipad), or Android device; everthing went fine.
  6. Release the project by creating the.ipa file
  7. Project crashes when the dropdown appears (the yellow default Blazor error appears: An unhandled error has occurred.)

Link to public reproduction project repository

https://blazor.radzen.com/dropdown

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

iOS

Affected platform versions

ipadOS:16.2

Did you find any workaround?

No

Relevant log output

No response

@shaden-kwaik shaden-kwaik added the t/bug Something isn't working label Jan 31, 2023
@jfversluis jfversluis added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Jan 31, 2023
@shaden-kwaik
Copy link
Author

a reminder to check my issue because i cant publish my project on IOS

@mkArtakMSFT
Copy link
Member

@rolfbjarne does this seem to be an AoT issue? And if yes, what would be the next step?
It just feels unlikely that this is Blazor specific issue.

@rolfbjarne
Copy link
Member

Does the Mac Catalyst release version work as well (would be interesting to test on an M1 machine in particular if you can)?

Any crash reports from the device would also be helpful in figuring out what happens.

@shaden-kwaik
Copy link
Author

@rolfbjarne yes i have tested my app on MacCatalyst, Android, and Windows Machine ; where all worked fine in Release mode.
My current problem exists while releasing the project on iPad and iPhone

@rolfbjarne
Copy link
Member

Can you try enabling the interpreter for all configurations, and see if that fixes your release build?

<PropertyGroup>
    <UseInterpreter>true</UseInterpreter>
</PropertyGroup>

@shaden-kwaik
Copy link
Author

Thank you @rolfbjarne
After enabling the interpreter, the IOS didn't crash in release mode

@ghost ghost locked as resolved and limited conversation to collaborators Mar 11, 2023
@samhouts samhouts added the s/not-a-bug This isn't actually a bug, or is working as expected label May 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/iOS 🍎 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants