Closed inimirpaz closed 3 years ago
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
We just encoutered this issue as well, it points to this code - _self.ElementForViewController(viewController);
can evaluate to null
which is not acceptable for navBarVisible = Shell.GetNavBarIsVisible(element);
. I'll try to put together minimal repro project.
Minimal reproduction steps I've been able to find - https://github.com/Kukkimonsuta/xamarin-forms-14125 - keep clicking buttons till the problem occurs.
1) use shell
2) use Navigation.PushAsync
to go to another page
3) use Navigation.PushModalAsync
to open modal
4) run async handler (ex. button click) with some more async calls
5) call Shell.Current.GoToAsync
to another item
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? https://github.com/xamarin/Xamarin.Forms/issues/14122 We're also seeing a bunch of these errors in App Center - unable to reproduce locally.
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