Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[iOS] App crashes with SIGSEV when tapping the "More" tab when a page from the "More" tab is already selected. #3358

Open
jgold6 opened this issue Jul 20, 2018 · 3 comments
Labels
e/6 🕕 6 help wanted We welcome community contributions to any issue, but these might be a good place to start! i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often inactive Issue is older than 6 months and needs to be retested p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@jgold6
Copy link
Contributor

jgold6 commented Jul 20, 2018

Description

Copied from 3 year old bugzilla bug: https://bugzilla.xamarin.com/show_bug.cgi?id=28379#c3

Confirmed this is still an issue with Forms version 3.1.0.637273

With a TabbedPage as the main page, and having enough child pages of the TabbedPage so there is a "More" tab, tapping the "More" tab when a page from the "More" tab is already selected causes a crash with the following stack trace:

critical: Stacktrace:
critical:   at <unknown> <0xffffffff>
critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x00095, 0xffffffff>
critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
critical:   at TestTabbedPage.iOS.Application.Main (string[]) [0x00008] in /Users/apple/Downloads/TestTabbedPage/TestTabbedPage/TestTabbedPage.iOS/Main.cs:13
critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
critical: 
Native stacktrace:
critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

This is only when each child page of the TabbedPage is wrapped in a NavigationPage.
Removing the NavigationPage wrapper for the child pages (specifically the child pages in the "More" tab) does resolve this issue.

Steps to Reproduce

  1. Load attached test project and run to an iOS simulator or device.

  2. Tap the "More" tab.

  3. Select a page from the list.

  4. Tap the "More" tab again.

Expected Behavior

The list of pages in the "More" tab will be displayed again

Actual Behavior

The app crashes with the above SIGSEV error

Basic Information

  • Version with issue: 3.1.0.637273
  • Last known good version: None. Bug initially filed against 1.4.1-Pre1
  • IDE: Visual Studio for Mac
  • Platform Target Frameworks:
    • iOS: 11.12.0.4

Reproduction Link

TabbedPageTest.zip

@pauldipietro pauldipietro added this to New in Triage Jul 20, 2018
@PureWeen PureWeen added this to To do in v3.6.0 via automation Jul 20, 2018
@PureWeen PureWeen moved this from New to Ready For Work in Triage Jul 20, 2018
@samhouts samhouts added e/6 🕕 6 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often and removed i/critical labels Jul 23, 2018
@samhouts samhouts removed this from To do in v3.6.0 Aug 21, 2018
@samhouts samhouts added this to To do in iOS Ready For Work Oct 15, 2018
@samhouts samhouts removed this from Ready For Work in Triage Oct 15, 2018
@StephaneDelcroix
Copy link
Member

still happen on 4.0.0-pre1 :(

@StephaneDelcroix
Copy link
Member

but embedding TabbedPage in a NavPage is an anti pattern on iOS, and we never supported that actively. Closing.

iOS Ready For Work automation moved this from To do to Done Dec 19, 2018
@jgold6
Copy link
Contributor Author

jgold6 commented Dec 19, 2018

@StephaneDelcroix

Actually, the TabbedPage is not wrapped in a NavigationPage in the sample. I edited the description to remove where it says it is.

Sorry, when I moved this from bugzilla, I copied my original description and the original sample I used might have had the TabbedPage wrapped in a NavigationPage, but Jimmy updated the sample later and the sample attached here is Just a TabbedPage (no NavigationPage) with children wrapped in NavigationPages (which should be supported).

I just loaded the sample, verified TabbedPage is not in a NavigationPage, and that the issue still occurs.

So I suggest re-opening this issue, thanks.

iOS Ready For Work automation moved this from Done to In progress Dec 19, 2018
@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help-wanted up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! help wanted We welcome community contributions to any issue, but these might be a good place to start! and removed help-wanted labels Jun 25, 2019
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 14, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e/6 🕕 6 help wanted We welcome community contributions to any issue, but these might be a good place to start! i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often inactive Issue is older than 6 months and needs to be retested p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
iOS Ready For Work
  
In progress
Development

No branches or pull requests

4 participants