You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a ToolbarItem with an IconImageSource property set to a name that doesn't correspond to any existing image resource in the project, the iOS application crashes with an unhandled ArgumentException. This occurs during the initialization of the ToolbarItem, preventing the application from launching successfully.
Note: While fixing this issue enable the test case from HostApp: Issue2222.
Expected Behavior:
The application should display the ToolbarItem without an icon, allowing the app to continue running without crashing, while potentially logging the image loading failure for debugging purposes.
Actual Behavior:
The application immediately crashes during startup with an unhandled System.ArgumentException stating "Unable to load image stream", preventing any user interaction with the app.
Link to public reproduction project repository
No response
Version with bug
9.0.22 SR2.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iphone 18.0
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered:
Hi @nivetha-nagalingam, this issue has been verified in Visual Studio 17.13.0 Preview 2.1(9.0.22) using the .cs file you provided, but I can't reproduce your issue. Could you help check whether the project I changed is consistent with yours? Do I need to change other code? Or could you provide your complete project so we can investigate it further? Looking forward to your reply! MauiApp34.zip
Description
When creating a ToolbarItem with an IconImageSource property set to a name that doesn't correspond to any existing image resource in the project, the iOS application crashes with an unhandled ArgumentException. This occurs during the initialization of the ToolbarItem, preventing the application from launching successfully.
Note: While fixing this issue enable the test case from HostApp: Issue2222.
Steps to Reproduce
Expected Behavior:
The application should display the ToolbarItem without an icon, allowing the app to continue running without crashing, while potentially logging the image loading failure for debugging purposes.
Actual Behavior:
The application immediately crashes during startup with an unhandled System.ArgumentException stating "Unable to load image stream", preventing any user interaction with the app.
Link to public reproduction project repository
No response
Version with bug
9.0.22 SR2.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iphone 18.0
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: