Pre-release: Xamarin.Forms 2.4.0.275-pre3

1356789

Posts

  • LGMaestrelliLGMaestrelli BRMember ✭✭✭

    Can someone take a look at this bug for this release?
    It's 7 months old and we are receiving a lot of complains from ours users...

  • AllDayerAllDayer AUMember ✭✭

    How about this bug while you're looking at tap gesture recognizers
    https://bugzilla.xamarin.com/show_bug.cgi?id=25943

  • NMackayNMackay GBInsider, University mod

    Any ideas is this will be fixed in 2.3.5? makes styling the app almost impossible in App.xaml.

    https://bugzilla.xamarin.com/show_bug.cgi?id=54416

  • LewisKLewisK USUniversity ✭✭

    @NMackay said:
    Any ideas is this will be fixed in 2.3.5? makes styling the app almost impossible in App.xaml.

    https://bugzilla.xamarin.com/show_bug.cgi?id=54416

    "I can confirm that it is working with 2.3.5.239-pre3.
    Thanks!"

    Looks like its fixed.

  • VictorGorri.4801VictorGorri.4801 USUniversity ✭✭

    Any idea why this update would have killed device debugging from VS when using an actual ios device?
    Breakpoints never get hit, neither in shared PCL or actual IOS project (which is a new one for me)

  • VelocityVelocity NZMember ✭✭✭

    Not too sure when 2.3.4-pre4 will be available, but just a small request - could the fixes from 2.3.4.247-sr2 please be added to this next preview release? Thanks!

  • JaredHJaredH AUMember ✭✭

    @VictorGorri.4801 said:
    Any idea why this update would have killed device debugging from VS when using an actual ios device?
    Breakpoints never get hit, neither in shared PCL or actual IOS project (which is a new one for me)

    I don't believe this issue is tied to the Xamarin Forms NuGet package version. My team seemed to lose iOS debugging about a month ago on 2.3.4.

  • PhilipGruebelePhilipGruebele USMember ✭✭

    With my Android app, moving from 2.3.4.247 to 2.3.5.239-pre3 causes the following exception and terminates the app at startup. I tried changing styles but nothing seems to avoid this exception. Unfortunately this means I can't test pre3.

    06-01 16:13:19.746 I/MonoDroid(15112): UNHANDLED EXCEPTION:
    06-01 16:13:19.793 I/MonoDroid(15112): System.InvalidCastException: Specified cast is not valid.
    06-01 16:13:19.793 I/MonoDroid(15112): at Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor () [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\LabelRenderer.cs:74
    06-01 16:13:19.793 I/MonoDroid(15112): at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor () [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\EntryRenderer.cs:86
    06-01 16:13:19.793 I/MonoDroid(15112): at Xamarin.Forms.Platform.Android.Platform.Xamarin.Forms.Platform.Android.IPlatformLayout.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:27
    06-01 16:13:19.793 I/MonoDroid(15112): at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:577
    06-01 16:13:19.793 I/MonoDroid(15112): at Android.Views.ViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00008] in <33e6e739ac344166b157e323586f11a1>:0
    06-01 16:13:19.793 I/MonoDroid(15112): at (wrapper dynamic-method) System.Object:af1cf79e-5b88-401f-bad0-99e05d0ad95e (intptr,intptr,bool,int,int,int,int)

  • JimmyGarridoJimmyGarrido USXamarin Team Xamurai

    @PhilipGruebele What Android version are you experiencing the crash with? There were some changes made in SetActionBarTextColor () for Lolliop and above. Can you share a small repro so we can confirm? Thanks!

  • PhilipGruebelePhilipGruebele USMember ✭✭

    @JimmyGarrido This is Android 6 both on phone and emulator. I'm afraid I won't have time for a repro at the moment.

  • BradChase.2654BradChase.2654 USMember ✭✭✭

    @PhilipGruebele That looks oddly like a bug that was already fixed. Is your version correct?

    @JimmyGarrido Is there any chance that the code could have been reverted somehow? Or changed again?

  • JimmyGarridoJimmyGarrido USXamarin Team Xamurai

    @BradChase.2654 According to the 2.3.5 branch the fix that you made is included, which is why I'm interested in confirming if it is still crashing in some cases.

    @PhilipGruebele Please confirm that the 2.3.5-pre3 package is installed in all the projects and that it is still crashing after a clean and rebuild. Thanks!

  • PhilipGruebelePhilipGruebele USMember ✭✭

    @JimmyGarrido Yes I triple checked this and did clean builds. Spent ~2 hours with it.

  • PhilipGruebelePhilipGruebele USMember ✭✭
    edited June 2017

    @JimmyGarrido I managed to create a repro and also filed bug report https://bugzilla.xamarin.com/show_bug.cgi?id=57108

  • JohnOsbornJohnOsborn USMember ✭✭
    edited June 2017

    Just in case anyone else runs into this:
    My UWP app was crashing in release mode and not debug mode after installing 2.3.5.239-pre3, but only on ARM. It was working fine on the desktop. I had to add <Namespace Name="Windows.UI.Xaml" MarshalObject="Required All"/> to the Default.rd.xml file to fix it. The problem occurs when compiling for .NET toolchain.

  • JohnOsbornJohnOsborn USMember ✭✭

    FastRender Exception, happens often:

    Fatal 6/5/2017 1:35:12 AM CurrentDomainOnUnhandledException System.Exception: CurrentDomainOnUnhandledException ---> Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException ---> Java.Lang.ReflectiveOperationException: Exception of type 'Java.Lang.ReflectiveOperationException' was thrown. ---> System.ObjectDisposedException: Cannot access a disposed object.
    Object name: 'Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer'.
      at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <dae67b9acd34460e8221345c3e820b56>:0 
      at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <dae67b9acd34460e8221345c3e820b56>:0 
      at Android.Widget.TextView.get_TextFormatted () [0x0000a] in <5799be89f1054676931a7a75e6214047>:0 
      at Android.Widget.TextView.get_Text () [0x00000] in <5799be89f1054676931a7a75e6214047>:0 
      at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer.UpdateText () [0x00009] in <aeb7f34d22f84110aa2a7a9085e2822b>:0 
      at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer.Xamarin.Forms.Platform.Android.IVisualElementRenderer.GetDesiredSize (System.Int32 widthConstraint, System.Int32 heightConstraint) [0x00000] in <aeb7f34d22f84110aa2a7a9085e2822b>:0 
      at Xamarin.Forms.Platform.Android.AppCompat.Platform.Xamarin.Forms.Internals.IPlatform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0008d] in <aeb7f34d22f84110aa2a7a9085e2822b>:0 
      at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00033] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00052] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x00236] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0005b] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x000c7] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 
      at Xamarin.Forms.Layout+<>c.<OnChildMeasureInvalidated>b__39_0 () [0x00080] in <5b75a2c0acb24953a24306831025f521>:0 
      at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <5799be89f1054676931a7a75e6214047>:0 
      at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <5799be89f1054676931a7a75e6214047>:0 
      at (wrapper dynamic-method) System.Object:19d3a1e8-99d9-4ea5-9c66-68322ed1b67b (intptr,intptr)
    
  • BjornBBjornB USMember ✭✭✭
    edited June 2017

    @JohnOsborn
    made a pr to fix your issue (Fast Button) https://github.com/xamarin/Xamarin.Forms/pull/975

  • montomonto GBMember ✭✭

    Tried the following with both VS 2015 & 2017 on different Dev machines. Are pre-release packages even tested with default VS templates before releasing to NuGet?

    • Just create a new project from Visual Studio Template > c# > Cross-Platform App > Master Detail, XF, PCL.
    • Open "Manage Nuget packages for Soln", and update Xamarin Forms package from 2.3.4.x to 2.3.5.239-pre3
    • Connected my Nexus 5X running Android 7.1.2 and started debuging the Android Project
    • App crashed immediately at launch with "An unhandled exception occured." and no further info. The Debug Output is attached.
  • NMackayNMackay GBInsider, University mod

    @DavidOrtinau @rmarinho

    Is Forms 2.3.5 going to be compatible with the legacy FormsApplicationActivity?

    System.InvalidCastExceptionSpecified cast is not valid.
    Raw
    Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor()<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor()<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.Platform.ShowActionBar()<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.Platform.UpdateActionBar()<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.Platform.SetPage(Page newRoot)<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage(Page page)<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage()<aeb7f34d22f84110aa2a7a9085e2822b>:0
    Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication(Application application)<aeb7f34d22f84110aa2a7a9085e2822b>:0
    MyApp.Droid.MainActivity.OnCreate(Bundle bundle)<cdc57a2b0aa241fab44a2d33438cbf6d>:0
    Android.App.Activity.n_OnCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState)<ce9491aaa0be4c32aaa9b777d81ba291>:0
    at (wrapper dynamic-method) System.Object:90aadea4-2134-4ccf-8411-80e97889d724 (intptr,intptr,intptr)
    

    I'm reluctant to move the app to AppCompat but if that's the case then we will, LIstview's in tab's and other weird bugs kept us from moving our Android apps over.

  • NMackayNMackay GBInsider, University mod

    Disabling the theme in my Droid app gets round this...but the app looks pretty crap now.

    See if I can figure out what in the theme causes the crash and I'll post my findings here.

    On a positive note 2.3.5 pre3 fixed a bunch of UWP issues in 2.3.4 and the app does seem to run quicker.

  • BradChase.2654BradChase.2654 USMember ✭✭✭

    @NMackay Without knowing Xamarin's official take on it, I moved over because it was getting harder and harder to keep up to date with the defects that were hitting it. It seems almost like 100% of their test cases use the newer one. Given that I thought ok lets just take a day and move over :). It was pretty painless... some theme stuff but overall glad we did in case it ever goes not supported.

  • NMackayNMackay GBInsider, University mod

    @BradChase.2654 said:
    @NMackay Without knowing Xamarin's official take on it, I moved over because it was getting harder and harder to keep up to date with the defects that were hitting it. It seems almost like 100% of their test cases use the newer one. Given that I thought ok lets just take a day and move over :). It was pretty painless... some theme stuff but overall glad we did in case it ever goes not supported.

    Yeah, that's what I'm doing right now, spent a while weighing up earlier but came to the same conclusion as yourself :)

  • BradChase.2654BradChase.2654 USMember ✭✭✭
    edited June 2017

    @NMackay YAYYY on UWP! Ours as well. I mean its lightening fast for us when using the same views we use on iOS, Droid, and macOS.

    That said.......... I want to try and get some time to go over the bindings. I hope there is a way to speed them up because right now creating the controls for all the OSs is fast, rendering the controls is fast, but adding the controls into the tree is still pretty slow. Thats our main slow down across the board.

    EDIT: I wanted to add that the best part about UWP is I get to performance profile in VS2017. Our app is too large for the Xamarin Profiler. So I get to find these slow downs now fairly easily.

  • NMackayNMackay GBInsider, University mod
    edited June 2017

    @BradChase.2654

    It's been fairly painless to move over actually, mostly legacy hacks to cleanup and some code to refactor, just need to get the system bar to change color from bright blue and I'm done :smile:

    EDIT: All done.

  • BradChase.2654BradChase.2654 USMember ✭✭✭

    @NMackay hah I came in late and was just looking up our style.xml for ya but ya got it before I could. I dont miss that bright blue... I really dont...

  • NMackayNMackay GBInsider, University mod

    @BradChase.2654 said:
    @NMackay hah I came in late and was just looking up our style.xml for ya but ya got it before I could. I dont miss that bright blue... I really dont...

    Does this issue affect you? not the end of the world but it behaves differently to Hockeyapp which has the slideout menu below the page title.

    https://bugzilla.xamarin.com/show_bug.cgi?id=41404

  • BradChase.2654BradChase.2654 USMember ✭✭✭
    edited June 2017

    @NMackay We hide our status bar to give our users more room. I just ran some tests and can confirm we see the exact same thing when I enable the status bar...

    we use this to hide it.:

    WindowManagerLayoutParams attrs = Window.Attributes;
    attrs.Flags |= WindowManagerFlags.Fullscreen;
    Window.Attributes = attrs;

    Thats in our OnCreate method...

    Thats an old bug right? I remember that thing a long time ago that kept creeping back in with different versions of Android.

    EDIT: I wanted to add that macOS has the same padding there :).

  • NMackayNMackay GBInsider, University mod

    @BradChase.2654 said:
    @NMackay We hide our status bar to give our users more room. I just ran some tests and can confirm we see the exact same thing when I enable the status bar...

    we use this to hide it.:

    WindowManagerLayoutParams attrs = Window.Attributes;
    attrs.Flags |= WindowManagerFlags.Fullscreen;
    Window.Attributes = attrs;

    Thats in our OnCreate method...

    Thats an old bug right? I remember that thing a long time ago that kept creeping back in with different versions of Android.

    EDIT: I wanted to add that macOS has the same padding there :).

    Yeah, it keeps creeping back from what I'm reading. I was looking at the Hockeyapp android client which is MD and the slide drawer appears below the navigation bar (As it did in tabbedpages in the classic API), suppose I can adding padding with a renderer but try and avoid these hacks where possible. It just looks a bit weird and doesn't behave like other MD consumer apps I use.

  • NMackayNMackay GBInsider, University mod

    Looks like they are following the google guidelines hence why the toolbar is been covered.

    https://material.io/guidelines/patterns/navigation-drawer.html#

  • NMackayNMackay GBInsider, University mod
    edited June 2017

    @DavidOrtinau @rmarinho

    Any chance you could look into why the following is occuring.

    I have a tabbed page (AppCompat) wrapped in a navigation in the Detail section of a master detail page, the tabbed page has a map in the 4th tab inside a stacklayout.

    If I push a modal page wrapped in a navigation page the following error occurs:

    An unhandled exception occured.
    
    06-15 11:13:57.555 W/Xamarin.Insights(28085): Warning: Unhandled exception: Java.Lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   --- End of managed Java.Lang.ClassCastException stack trace ---
    06-15 11:13:57.555 W/Xamarin.Insights(28085): java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.os.Handler.handleCallback(Handler.java:751)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.os.Handler.dispatchMessage(Handler.java:95)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.os.Looper.loop(Looper.java:154)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at android.app.ActivityThread.main(ActivityThread.java:6682)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at java.lang.reflect.Method.invoke(Native Method)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    06-15 11:13:57.701 D/Mono    (28085): DllImport searching in: '__Internal' ('(null)').
    06-15 11:13:57.701 D/Mono    (28085): Searching for 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.701 D/Mono    (28085): Probing 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.701 D/Mono    (28085): Found as 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.727 D/Mono    (28085): DllImport searching in: '__Internal' ('(null)').
    06-15 11:13:57.727 D/Mono    (28085): Searching for 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.727 D/Mono    (28085): Probing 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.727 D/Mono    (28085): Found as 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.762 E/AndroidRuntime(28085): FATAL EXCEPTION: main
    06-15 11:13:57.762 E/AndroidRuntime(28085): Process: com.vships.marineops, PID: 28085
    06-15 11:13:57.762 E/AndroidRuntime(28085): java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.os.Handler.handleCallback(Handler.java:751)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.os.Handler.dispatchMessage(Handler.java:95)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.os.Looper.loop(Looper.java:154)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at android.app.ActivityThread.main(ActivityThread.java:6682)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at java.lang.reflect.Method.invoke(Native Method)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    06-15 11:13:57.762 E/AndroidRuntime(28085):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    

    Here's the insights stacktrace.

    d Java.Lang.ClassCastExceptioncom.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    Raw
    --- End of managed Java.Lang.ClassCastException stack trace ---
    java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    

    If I push the modal without wrapping in a navigation page it pushes the page fine (that isn't a solution as you can't close the modal page in iOS....this all worked fine in 2.3.4).

    If I don't add the map to the tabbed page it pushes fine wrapped in a navigation page so the issue seems to be with the map renderer.

    I'll try perhaps rolling the map only back to 2.3.4 as I've ported the app to 2.3.5-pre but I hate doing things like that.

    Could someone investigate? I can create a bugzilla but it's a lot of hassle with Forms maps sample as I'd have to create an application & key etc, I wanted to see if you were aware of this issue.

  • RaymondKellyRaymondKelly USMember ✭✭✭

    Getting a crash using pre3. I have a XAML page that includes a ListView with context actions on the view cells. The first load of the page works. If I navigate away from the page and then return, the app crashes. If I remove the context actions, the crash does not happen.

    XAML: <ListView x:Name="listView" VerticalOptions="FillAndExpand" SeparatorVisibility="Default" BackgroundColor="Black"> <!-- Group Header Customization--> <ListView.GroupHeaderTemplate> <DataTemplate> <local:TransparentViewCell> <StackLayout BackgroundColor="Black"> <Label Text="{Binding Key}" FontSize="Medium" VerticalOptions="Center" HorizontalOptions="StartAndExpand" FontAttributes="Bold" TextColor="{Binding Source={x:Static local:Global.MainColor}}" /> </StackLayout> </local:TransparentViewCell> </DataTemplate> </ListView.GroupHeaderTemplate> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Clicked="OnEdit" CommandParameter="{Binding .}" Text="{i18n:Translate selectWorld_edit}" /> <MenuItem Clicked="OnDelete" CommandParameter="{Binding .}" Text="{i18n:Translate selectWorld_delete}" IsDestructive="True" /> </ViewCell.ContextActions> <StackLayout Padding="10,5,10,5"> <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand" Padding="3,0,15,10"> <Image x:Name="imageFaveIcon" WidthRequest="60" HeightRequest="60" Source="{Binding ImageSource}" Margin="0,0,5,0" /> <StackLayout HorizontalOptions="FillAndExpand"> <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand"> <Label HorizontalOptions="StartAndExpand" Text="{Binding ServerName}" FontAttributes="Bold" FontSize="14" TextColor="White" /> <Label HorizontalOptions="EndAndExpand" Text="{Binding Info}" FontSize="14" TextColor="{Binding MOTDColor}" Margin="0,0,0,0"/> </StackLayout> <StackLayout HorizontalOptions="FillAndExpand"> <Label HorizontalOptions="StartAndExpand" Text="{Binding Address}" FontSize="16" TextColor="White"/> <Label HorizontalOptions="StartAndExpand" TextColor="White" IsVisible="{Binding HasMOTD}" Text="" FormattedText="{Binding FormattedMOTD}" FontSize="14" LineBreakMode="WordWrap" WidthRequest="500"/> </StackLayout> </StackLayout> </StackLayout> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>

    Crash dump
    at Xamarin.Forms.Platform.iOS.ContextActionsCell.OnMenuItemPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\ContextActionCell.cs:471 at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x000fb] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindingExpression.Apply (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property) [0x0006b] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.Binding.Apply (System.Object newContext, Xamarin.Forms.BindableObject bindObj, Xamarin.Forms.BindableProperty targetProperty) [0x00042] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.ApplyBindings (System.Boolean skipBindingContext) [0x00043] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.ApplyBindings () [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x0005a] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.Cell.OnBindingContextChanged () [0x00024] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.BindingContextPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000e] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0010e] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0005f] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in <5b75a2c0acb24953a24306831025f521>:0 at Xamarin.Forms.Internals.TemplatedItemsList2+d__153[TView,TItem].MoveNext () [0x000b0] in <5b75a2c0acb24953a24306831025f521>:0 `

  • RaymondKellyRaymondKelly USMember ✭✭✭

    Update: Removing CommandParameter="{Binding .}" from the context action fixes the issue. What does that do? Is it needed? Thanks!

  • MommMomm USMember ✭✭✭

    Hey @DavidOrtinau, how are you?

    Do you have any deadline to release the final version? We are going to need this version for Accessibility matters.

    Best,

  • JoeMankeJoeManke USMember ✭✭✭✭✭

    Is this the right place to ask for my pull request to get some attention? The matching Android implementation has been in since 2.3.5-pre1, but I won't really feel comfortable upgrading without the iOS side being included as well.

  • NickKovalskyNickKovalsky USMember ✭✭✭
    edited June 2017

    deleted

  • DavidOrtinauDavidOrtinau USForum Administrator, Xamarin Team, Insider, University Xamurai

    @JoeManke you can always email me [email protected] I'll see what's up with that one.

  • DavidOrtinauDavidOrtinau USForum Administrator, Xamarin Team, Insider, University Xamurai

    @Momm I'm coordinating with the team on that and will have an update soon.

  • NMackayNMackay GBInsider, University mod

    @NMackay said:
    @DavidOrtinau @rmarinho

    Any chance you could look into why the following is occuring.

    I have a tabbed page (AppCompat) wrapped in a navigation in the Detail section of a master detail page, the tabbed page has a map in the 4th tab inside a stacklayout.

    If I push a modal page wrapped in a navigation page the following error occurs:

    An unhandled exception occured.
    
    06-15 11:13:57.555 W/Xamarin.Insights(28085): Warning: Unhandled exception: Java.Lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.555 W/Xamarin.Insights(28085):   --- End of managed Java.Lang.ClassCastException stack trace ---
    06-15 11:13:57.555 W/Xamarin.Insights(28085): java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.os.Handler.handleCallback(Handler.java:751)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.os.Handler.dispatchMessage(Handler.java:95)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.os.Looper.loop(Looper.java:154)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at android.app.ActivityThread.main(ActivityThread.java:6682)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at java.lang.reflect.Method.invoke(Native Method)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    06-15 11:13:57.555 W/Xamarin.Insights(28085):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    06-15 11:13:57.701 D/Mono    (28085): DllImport searching in: '__Internal' ('(null)').
    06-15 11:13:57.701 D/Mono    (28085): Searching for 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.701 D/Mono    (28085): Probing 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.701 D/Mono    (28085): Found as 'java_interop_jnienv_get_long_field'.
    06-15 11:13:57.727 D/Mono    (28085): DllImport searching in: '__Internal' ('(null)').
    06-15 11:13:57.727 D/Mono    (28085): Searching for 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.727 D/Mono    (28085): Probing 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.727 D/Mono    (28085): Found as 'java_interop_jnienv_call_long_method_a'.
    06-15 11:13:57.762 E/AndroidRuntime(28085): FATAL EXCEPTION: main
    06-15 11:13:57.762 E/AndroidRuntime(28085): Process: com.vships.marineops, PID: 28085
    06-15 11:13:57.762 E/AndroidRuntime(28085): java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.os.Handler.handleCallback(Handler.java:751)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.os.Handler.dispatchMessage(Handler.java:95)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.os.Looper.loop(Looper.java:154)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at android.app.ActivityThread.main(ActivityThread.java:6682)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at java.lang.reflect.Method.invoke(Native Method)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    06-15 11:13:57.762 E/AndroidRuntime(28085):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    

    Here's the insights stacktrace.

    d Java.Lang.ClassCastExceptioncom.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    Raw
    --- End of managed Java.Lang.ClassCastException stack trace ---
    java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.ak cannot be cast to android.view.ViewGroup
    at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
    at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
    at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    

    If I push the modal without wrapping in a navigation page it pushes the page fine (that isn't a solution as you can't close the modal page in iOS....this all worked fine in 2.3.4).

    If I don't add the map to the tabbed page it pushes fine wrapped in a navigation page so the issue seems to be with the map renderer.

    I'll try perhaps rolling the map only back to 2.3.4 as I've ported the app to 2.3.5-pre but I hate doing things like that.

    Could someone investigate? I can create a bugzilla but it's a lot of hassle with Forms maps sample as I'd have to create an application & key etc, I wanted to see if you were aware of this issue.

    No one?

  • dsteckdsteck USMember ✭✭

    Any word on when 2.3.5 will be released?

Sign In or Register to comment.