xamarin/Xamarin.Forms

[Bug] NRE in iOS NavigationRenderer.CreateViewControllerForPage()

Open

#6,479 opened on Jun 10, 2019

 (8 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/1 :clock1:good first issuehacktoberfest 🍻help wantedi/highinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

I'm getting crash reports logged in AppCenter that have this info:

Application Specific Information: *** Terminating app due to uncaught exception 'SIGABRT', reason: 'Object reference not set to an instance of an object'

Xamarin Exception Stack: System.NullReferenceException: Object reference not set to an instance of an object at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) <0x1035d51b8 + 0x000a0> in <7402bf39df944a9ebf61606e5f9c45a4#ce6fa466e25885e0cbec812108e17229>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page page, System.Boolean animated) <0x10360d234 + 0x0004b> in <7402bf39df944a9ebf61606e5f9c45a4#ce6fa466e25885e0cbec812108e17229>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer.b__46_0 (Xamarin.Forms.Page p) <0x10356e1a0 + 0x00163> in <7402bf39df944a9ebf61606e5f9c45a4#ce6fa466e25885e0cbec812108e17229>:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_1 (System.Object state) <0x1029ccd3c + 0x00037> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0 at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) <0x10297e820 + 0x0003f> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) <0x102978ef4 + 0x0017f> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0 at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x10297e7c8 + 0x0002f> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () <0x1027912b0 + 0x00217> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0 at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) <0x10338b8f0 + 0x0003f> in <0a1822a59db24dc39fecdd861b632885#ce6fa466e25885e0cbec812108e17229>:0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x10297e634 + 0x00063> in <50aa8c853ba54c99b7836ba4b45a5828#ce6fa466e25885e0cbec812108e17229>:0

I was wondering if you could provide any guidance on what to look at next. If you need any other details, let me know.

Steps to Reproduce

Unfortunately the crash reports do not contain enough information to know what the user was doing.

Basic Information

  • Version with issue: 3.6.0.344457
  • Platform Target Frameworks:
    • iOS: 12.8
  • Affected Devices: various models (e.g. SE, 6, 8, and X)

Contributor guide