dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.99k stars 1.72k forks source link

fatal Exception: System.ArgumentNullException #24402

Open sunilsolanki-alight opened 3 weeks ago

sunilsolanki-alight commented 3 weeks ago

Description

fatal Exception: System.ArgumentNullException
0  ???                            0x0 Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) (<unknown>)
1  ???                            0x0 Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) (<unknown>)
2  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.SetPageRenderer(Page page, ShellContent shellContent) (<unknown>)
3  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.LoadRenderers() (<unknown>)
4  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.ViewDidLoad() (<unknown>)
5  ???                            0x0 ObjCRuntime.Runtime.ThrowException(IntPtr ) (<unknown>)
6  ???                            0x0 UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr ) (<unknown>)
7  ???                            0x0 UIKit.UIApplication.Main(String[] , Type , Type ) (<unknown>)

Steps to Reproduce

Random

Link to public reproduction project repository

No response

Version with bug

8.0.80 SR8

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

8.0.80 SR8

Affected platforms

iOS

Affected platform versions

17.5.1

Did you find any workaround?

          Non-fatal Exception: System.ArgumentNullException
0  ???                            0x0 Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) (<unknown>)
1  ???                            0x0 Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) (<unknown>)
2  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.SetPageRenderer(Page page, ShellContent shellContent) (<unknown>)
3  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.LoadRenderers() (<unknown>)
4  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.ViewDidLoad() (<unknown>)
5  ???                            0x0 ObjCRuntime.Runtime.ThrowException(IntPtr ) (<unknown>)
6  ???                            0x0 UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr ) (<unknown>)
7  ???                            0x0 UIKit.UIApplication.Main(String[] , Type , Type ) (<unknown>)

Relevant log output

Non-fatal Exception: System.ArgumentNullException
0  ???                            0x0 Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) (<unknown>)
1  ???                            0x0 Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) (<unknown>)
2  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.SetPageRenderer(Page page, ShellContent shellContent) (<unknown>)
3  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.LoadRenderers() (<unknown>)
4  ???                            0x0 Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.ViewDidLoad() (<unknown>)
5  ???                            0x0 ObjCRuntime.Runtime.ThrowException(IntPtr ) (<unknown>)
6  ???                            0x0 UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr ) (<unknown>)
7  ???                            0x0 UIKit.UIApplication.Main(String[] , Type , Type ) (<unknown>)
github-actions[bot] commented 3 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

RoiChen001 commented 2 weeks ago

@sunilsolanki-alight Could you provide us with a sample project so we can investigate it? Looking forward to your reply!

sunilsolanki-alight commented 1 week ago

We are seeing this issue on firebase crashlytics. We don't have actual steps to recreate this issue. But we feel it is something MAUI internal error of MAUI Context null