maui icon indicating copy to clipboard operation
maui copied to clipboard

Black screen when home menu item icon doesn't exist

Open pengalo opened this issue 3 years ago • 0 comments

Description

When an application has a flyout menu, if the home item (ShellContent) specifies an icon that doesn't exist in the project, the screen is black on iOS.

Steps to Reproduce

  1. Create a new .NET Maui 7.0 app with all defaults
  2. Change the AppShell.xaml source to have a menu: a. Delete FlyoutBehavior="Deleted" b. Add Icon="doesnotexist" to the ShellContent c. Add at least one other menu item like: <MenuItem Text="Settings" IconImageSource="dotnet_bot" />
  3. Execute on an iPhone or iPhone emulator
  4. Observe the after the splash screen, the screen goes black
  5. Change the Icon in ShellContent to be dotnet_bot
  6. After restarting the app, notice that the screen and menu appear

This should behave like it does on Android, with everything else showing, but just blank for an unresolved icon. Very difficult to diagnose what the issue is when the screen is just black.

Link to public reproduction project repository

https://github.com/pengalo/MauiApp1

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

All versions of iPhone

Did you find any workaround?

Yes, use an icon that exists. This is more of an annoyance because it took a long time to trace it down to that one icon missing (due to typo).

Relevant log output

No response

pengalo avatar Mar 10 '23 17:03 pengalo