-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] iOS Crash, Shell.GetNavBarIsVisible: 'SIGABRT' for 'Object reference not set to an instance of an object' #14125
Comments
Hi, @inimirpaz - thanks for submitting this issue. Would you be able to share your project or a sample project reproducing the issue so that we can take a closer look? Thanks :) |
Hi, @rachelkang , I am not able to share a project. Is there anything we can add to make it more debugable? What should we be keeping an eye on? (e.g. Navigation.Push/Pop, ... ?) We have a lot of this issue reports but they have basically the same details... Here's another one
Hardware Model: iPhone11,8
Code Type: arm64
Parent Process: [1]
Date/Time: 2021-04-17T17:19:06.999Z Exception Type: SIGABRT Application Specific Information: Xamarin Exception Stack: Thread 0 Crashed: Thread 1: Thread 2: Thread 3: Thread 4: Thread 5: Thread 6: Thread 7: Thread 8: Thread 9: Thread 10: Thread 11: Thread 12: Thread 13: Thread 14: Thread 15: Thread 16: Thread 17: Thread 0 crashed with arm64 Thread State: Binary Images: |
We just encoutered this issue as well, it points to this code - Xamarin.Forms/Xamarin.Forms.Platform.iOS/Renderers/ShellSectionRenderer.cs Lines 622 to 628 in ad71f11
|
Minimal reproduction steps I've been able to find - https://github.com/Kukkimonsuta/xamarin-forms-14125 - keep clicking buttons till the problem occurs.
Bug occurs here: https://github.com/Kukkimonsuta/xamarin-forms-14125/blob/1b951c0a3cad5e97ccae5cc81b32605d4c933211/xamarin-forms-14125/Views/LogoutPage.xaml.cs#L17-L23 |
I just encounter this as well, but only have some log from production so too hard to tell which step |
This is a big problem for our app. 8x last 7 days and not very many users at the moment. Any workarounds? I tried making some other stuff in functions that call Shell.GoToAsync not async but it's unclear if that helps. |
related? #14122 |
This error is still being generated. Not only is it being generated for Xamarin forms, but we are seeing it in MAUI with .NET 6 and 7. |
@trj2059 - did you find a solution for your maui issue? Seeing this in my project too |
Created pull request for this in maui |
Description
I have been experiencing a lot of crash issues on iOS due to a
Xamarin.Forms.Shell.GetNavBarIsVisible
call.E.g.
Steps to Reproduce
N/A
Basic Information
The text was updated successfully, but these errors were encountered: