xamarin/Xamarin.Forms

System.NullReferenceException: in Platform.LayoutRootPage

オープン

#3,990 opened on 2018/10/04

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/3 :clock3:has-stacktracehelp wantedi/highinactivep/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド