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

[iOS][NavigationBar] NSInternalInconsistencyException crash with latest Uno 5 Templates on iOS 17.0.1 #885

Closed
kazo0 opened this issue Oct 28, 2023 · 0 comments · Fixed by #886
Assignees
Labels
control/navigationbar kind/bug Something isn't working

Comments

@kazo0
Copy link
Contributor

kazo0 commented Oct 28, 2023

Only happening on iOS 17.0.1

Seems similar to https://stackoverflow.com/questions/77228311/nsinternalinconsistencyexception-reason-layout-requested-for-visible-naviga

Steps:

  • Run dotnet new install Uno.Templates::5.0.0-dev.566
  • Run dotnet new unoapp -o UnoTest1
  • Launch app and navigate to second page
  • Navigate back to first page
  • Notice error:

Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Layout requested for visible navigation bar, <Uno_UI_Controls_UnoNavigationBar: 0x7fee37f99340; baseClass = UINavigationBar; frame = (0 53.6667; 430 44); opaque = NO; autoresize = W; userInteractionEnabled = NO; tintColor = UIExtendedSRGBColorSpace 0.109804 0.105882 0.121569 1; layer = <CALayer: 0x600002ef5dc0>> delegate=0x7fee3e047c00 standardAppearance=0x600004021bc0 scrollEdgeAppearance=0x600004021aa0 compactAppearance=0x6000040213e0, when the top item belongs to a different navigation bar. topItem = <UINavigationItem: 0x7fee38dc5d80> title='First Page' style=navigator leftBarButtonItems=0x6000066f3580 rightBarButtonItems=0x600002dd1380, navigation bar = <UINavigationBar: 0x7fee38ba8900; frame = (0 0; 0 0); opaque = NO; tintColor = UIExtendedSRGBColorSpace 0.109804 0.105882 0.121569 1; layer = <CALayer: 0x60000641fcc0>> standardAppearance=0x600004024f00 scrollEdgeAppearance=0x600004024ea0 compactAppearance=0x600004024d80 no-scroll-edge-support, possibly from a client attempt to nest wrapped navigation controllers.

Screen.Recording.2023-10-27.at.5.14.04.PM.mov
@kazo0 kazo0 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Oct 28, 2023
@kazo0 kazo0 self-assigned this Oct 28, 2023
@kazo0 kazo0 added triage/untriaged Indicates an issue requires triaging or verification. control/navigationbar and removed triage/untriaged Indicates an issue requires triaging or verification. labels Oct 28, 2023
@kazo0 kazo0 changed the title [iOS][NavigationBar] Crash with latest Uno 5 Templates [iOS][NavigationBar] Crash with latest Uno 5 Templates on iOS 17.0.1 Oct 28, 2023
@kazo0 kazo0 changed the title [iOS][NavigationBar] Crash with latest Uno 5 Templates on iOS 17.0.1 [iOS][NavigationBar] NSInternalInconsistencyException crash with latest Uno 5 Templates on iOS 17.0.1 Oct 28, 2023
@kazo0 kazo0 removed the triage/untriaged Indicates an issue requires triaging or verification. label Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control/navigationbar kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant