Open tschramme86 opened 3 years ago
any fix found?
@joehage9 Not from my side. And I don't see any progress in the Xamarin.Forms project at all. Almost no updates here in the repository for weeks or even months and no new package versions. Seems that everybody is just focussing on .NET 6 MAUI. What I can understand a little bit on the one hand - but what is also not fair to the community on the other hand. So many people relied on XF for their projects. So many open bugs. So many open pull requests by the community without any reaction from the team. And when this situation will really last until November when .NET 6 will be released (fingers crossed), it has been almost a year without real updates/fixes. At least some official communication about this situation would be nice. What do you think @samhouts ?
@tschramme86 @joehage9 does this version fixes the issue for you? https://dev.azure.com/xamarin/public/_releaseProgress?releaseId=2843&_a=release-pipeline-progress
@pictos I cannot access that link. Website says "VS402939: Release with ID 2843 does not exist. Specify a valid ID and try again."
@PureWeen is there a way to access that nuget? Is related to #13648
Hmm @pictos it looks like our nightlies aren't running
Try grabbing the nuget off of here https://dev.azure.com/xamarin/public/_build/results?buildId=41405&view=artifacts&pathAsName=false&type=publishedArtifacts
See if that works
cc: @tschramme86 @joehage9 /\
@PureWeen @pictos Thank you for your effort. I was able to download the newest package from the provided Azure link and updated the example project of this issue. But although the project is now on Xamarin.Forms 5.0.0.7300 the error is still there.
@tschramme86 thanks for testing this version. I'll se if can take a look at it this week or next week
@pictos just fyi: Issue is not solved with latest 5.0.0-sr4 available from today.
In my case for Xamarin.Forms (5.0.2012), Shell.Current.GoToAsync throws Null pointer exception. Error dump below.
This is a SHOWSTOPPER. Can someone from Xamarin please clarify on this?
I do also experience the very same behavior when calling: await Shell.Current.GoToAsync("//pages/logbook/cloud")
Having hierrachy defined in AppShell: FlyoutItem Route="pages" Tab Route="logbook" ShellContent Route="cloud"
Exception: {System.ArgumentNullException: Shell Content Page is Null Parameter name: page at Xamarin.Forms.Platform.Android.ShellSectionRenderer.UpdateCurrentItem (Xamarin.Forms.ShellContent content) [0x00013] in D:\a\1\s\Xamarin.Forms.Platform.Android\Renderers\ShellSectionRenderer.cs:83 at Xamarin.Forms.Platform.Android.ShellSectionRenderer.AndroidX.ViewPager.Widget.ViewPager.IOnPageChangeListener.OnPageScrolled (System.Int32 position, System.Single positionOffset, System.Int32 positionOffsetPixels) [0x0001c] in D:\a\1\s\Xamarin.Forms.Platform.Android\Renderers\ShellSectionRenderer.cs:26 at AndroidX.ViewPager.Widget.ViewPager+IOnPageChangeListenerInvoker.n_OnPageScrolled_IFI (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.Single positionOffset, System.Int32 positionOffsetPixels) [0x00008] in D:\a\1\s\generated\androidx.viewpager.viewpager\obj\Release\monoandroid9.0\generated\src\AndroidX.ViewPager.Widget.ViewPager.cs:563 at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.93(intptr,intptr,int,single,int)}
I am having a related issue, with the last Xamarin update (5.0.0.2337), I am getting the follow error:
I am registering the routes using Routing.RegisterRoute and in the XAML as well.
@LuisiitoDev Have you resolved this issue? I have the same exact problem. I'm trying to do this from an event handler in AppShell
.
I'm having the exact same issue detailed above from other users. Anyone from the Xamarin team keen to advise?
@joehage9 Not from my side. And I don't see any progress in the Xamarin.Forms project at all. Almost no updates here in the repository for weeks or even months and no new package versions. Seems that everybody is just focussing on .NET 6 MAUI. What I can understand a little bit on the one hand - but what is also not fair to the community on the other hand. So many people relied on XF for their projects. So many open bugs. So many open pull requests by the community without any reaction from the team. And when this situation will really last until November when .NET 6 will be released (fingers crossed), it has been almost a year without real updates/fixes. At least some official communication about this situation would be nice. What do you think @samhouts ?
Completely agree.
Also reported on https://developercommunity.visualstudio.com/t/XAMARIN:-ShellCurrentGoToAsync-excepti/10089980
Still not fixed. This makes me wonder (after more than 2 years and still not fixed) if its ever gonna be fixed.
This issue has been around for more than 2 years now. It is well documented and should not be so hard to fix, given that. Can you please escalate this, it makes it very hard to make Xamarin useful to 100%.
Best Regards/Med Vänliga Hälsningar Lennart Hedlund
email: @.**@.> text: +46-72-530 30 19 phone: +46-72-530 30 19 twitter: LeonSweden about.me http://about.me/lennarthedlund
[A picture containing text, sign, blue Description automatically generated][A picture containing text, sign, blue Description automatically generated][A picture containing text, sign, outdoor, blue Description automatically generated][A picture containing text, sign, blue Description automatically generated][A picture containing text, sign Description automatically generated][A picture containing text, sign Description automatically generated]
From: Samantha Houts @.> Sent: den 11 juli 2022 18:36 To: xamarin/Xamarin.Forms @.> Cc: Lennart Hedlund @.>; Comment @.> Subject: Re: [xamarin/Xamarin.Forms] [Bug][Shell] Shell.Current.GoToAsync exception on certain navigation sequence (#12958)
Also reported on https://developercommunity.visualstudio.com/t/XAMARIN:-ShellCurrentGoToAsync-excepti/10089980.
— Reply to this email directly, view it on GitHubhttps://github.com/xamarin/Xamarin.Forms/issues/12958#issuecomment-1180626466, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE4EO6N6HX6AJSIO7JHNTZDVTREORANCNFSM4UAXPOZA. You are receiving this because you commented.Message ID: @.**@.>>
The only workaround I have found is to manually use Shell.Current.GoToAsync to go to the second tab first, then do the original navigation to the tab you actually want to go to. It's clunky and slow, but less clunky and slow than the app crashing! I recommend setting "animate: false" in the first GoToAsync call too to increase speed and avoid the user having to watch the second page loading then going away.
Does anyone have a better workaround?
experiencing same thing on .NET MAUI as well when switching between 2 pages constantyly until it brakes
at WinRT.ExceptionHelpers.
Description
The
Shell.Current.GoToAsync
method fails on a particular navigation sequence with ExceptionInner Stack Trace:
Steps to Reproduce
Put two Buttons onto Page2 with the following event handlers
BtnGotoPage4
event handlerExpected Behavior
The App navigates to Page 4
Actual Behavior
The above mentioned exception is thrown in the EventHandler at line
await Shell.Current.GoToAsync("//profile/settings");
when the navigation steps are executed exactly in the written order.Please note: The navigation works + exception is not thrown when
await Shell.Current.GoToAsync("//profile/details");
is executed), go back to Page 2 and then click the second buttonAlso the navigation to Page 3 with the first Button (
await Shell.Current.GoToAsync("//profile/details");
) works in all cases. It never throws an exception.Basic Information
Environment
Screenshots
Reproduction Link
ShellNavigationSample.zip