xamarin/Xamarin.Forms

System.NullReferenceException: in Platform.LayoutRootPage

Ouverte

#3 990 ouverte le 4 oct. 2018

 (7 commentaires) (0 réaction) (0 personne assignée)C# (1 926 forks)batch import
e/3 :clock3:has-stacktracehelp wantedi/highinactivep/Androidt/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur