xamarin/Xamarin.Forms

System.NullReferenceException: in Platform.LayoutRootPage

开放

#3,990 创建于 2018年10月4日

 (7 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/3 :clock3:has-stacktracehelp wantedi/highinactivep/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 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

贡献者指南