Bug 39403 - [Android] Forms 2.1.0, Switching tabs that have NavigationPages throws: Java.Lang.IllegalStateException: Recursive entry to executePendingTransactions
Summary: [Android] Forms 2.1.0, Switching tabs that have NavigationPages throws: Java....
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.1.0
Hardware: PC Mac OS
: Normal critical
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-07 11:19 UTC by Ronald
Modified: 2016-04-26 09:57 UTC (History)
7 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
Reproduction sample (62.89 KB, application/zip)
2016-04-26 09:57 UTC, Ronald
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ronald 2016-03-07 11:19:32 UTC
Forms 2.1.0
Android
TabbedPage, NavigationPage

Having 3 or more tabs and switching between crashes the app.

https://forums.xamarin.com/discussion/comment/184109/#Comment_184109
https://forums.xamarin.com/discussion/comment/183646/#Comment_183646


Java.Lang.IllegalStateException: Recursive entry to executePendingTransactions

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/2692/e98e9627/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at Android.Runtime.JNIEnv.CallBooleanMethod (IntPtr jobject, IntPtr jmethod) [0x00063] in /Users/builder/data/lanes/2692/e98e9627/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:218 
  at Android.Support.V4.App.FragmentManagerInvoker.ExecutePendingTransactions () [0x00033] in <filename unknown>:0 
  at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.Dispose (Boolean disposing) [0x0007a] in <filename unknown>:0 
  at Java.Lang.Object.Dispose () [0x00000] in /Users/builder/data/lanes/2692/e98e9627/source/monodroid/src/Mono.Android/src/Java.Lang/Object.cs:115 
  at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnDestroyView () [0x00066] in <filename unknown>:0 
  at Android.Support.V4.App.Fragment.n_OnDestroyView (IntPtr jnienv, IntPtr native__this) [0x00009] in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:84a3f5f9-afb7-4b71-baad-d0e5e59e2ab0 (intptr,intptr)
  --- End of managed exception stack trace ---
java.lang.IllegalStateException: Recursive entry to executePendingTransactions
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1544)
    at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:545)
    at md5270abb39e60627f0f200893b490a1ade.FragmentContainer.n_onDestroyView(Native Method)
    at md5270abb39e60627f0f200893b490a1ade.FragmentContainer.onDestroyView(FragmentContainer.java:57)
    at android.support.v4.app.Fragment.performDestroyView(Fragment.java:2167)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1100)
    at android.support.v4.app.FragmentManagerImpl.detachFragment(FragmentManager.java:1363)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:723)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572)
    at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:545)
    at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
    at android.support.v4.view.ViewPager.populate(ViewPager.java:1106)
    at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552)
    at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514)
    at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:506)
    at md5270abb39e60627f0f200893b490a1ade.TabbedPageRenderer.n_onTabSelected(Native Method)
    at md5270abb39e60627f0f200893b490a1ade.TabbedPageRenderer.onTabSelected(TabbedPageRenderer.java:86)
    at android.support.design.widget.TabLayout.selectTab(TabLayout.java:837)
    at android.support.design.widget.TabLayout.selectTab(TabLayout.java:809)
    at android.support.design.widget.TabLayout$Tab.select(TabLayout.java:1077)
    at android.support.design.widget.TabLayout$1.onClick(TabLayout.java:643)
    at android.view.View.performClick(View.java:4475)
    at android.view.View$PerformClick.run(View.java:18786)
    at android.os.Handler.handleCallback(Handler.java:730)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5419)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:525)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
    at dalvik.system.NativeStart.main(Native Method)
Comment 1 Jason Smith [MSFT] 2016-03-10 23:45:51 UTC
Should be fixed in 2.2.0-pre1
Comment 2 Parmendra Kumar 2016-04-25 17:01:38 UTC
To verify this issue I have tried to reproduce this issue but not able to reproduce it.

Could you please provide us small sample reproduce test case ? so that I can verify this issue efficiently.
Comment 3 Ronald 2016-04-26 09:57:53 UTC
Created attachment 15844 [details]
Reproduction sample