xamarin/Xamarin.Forms

System.NullReferenceException: in Platform.LayoutRootPage

Aperta

#3990 aperta il 4 ott 2018

 (7 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/3 :clock3:has-stacktracehelp wantedi/highinactivep/Androidt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

Crash in Xamarin Forms navigating from one page to another via hamburger menu. Not sure how actionable this is, unfortunately.

Here's the crash report stack trace from AppCenter:

Platform.LayoutRootPage (Xamarin.Forms.Page page, System.Int32 width, System.Int32 height)
System.NullReferenceException: Object reference not set to an instance of an object

Platform.LayoutRootPage (Xamarin.Forms.Page page, System.Int32 width, System.Int32 height)
IPlatformLayout.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b)
PlatformRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b)
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)
(wrapper dynamic-method) System.Object.35(intptr,intptr,bool,int,int,int,int)

Steps to Reproduce

Navigating from one page to another in my app. Not reproducible with all pages. Reproduced several times (but not always) navigating from a settings page containing a tableview to a page with pivots containing listviews.

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: 3.2.0.839982
  • Last known good version: Unclear
  • IDE: VS 2017 15.8.6
  • Platform Target Frameworks:
    • Android: 8.1
  • Android Support Library Version: 27.0.2.1
  • Nuget Packages:
  • Affected Devices: LG V30 w/ Android 8.0

Screenshots

Reproduction Link

Guida contributor