Skip to content

Crashes with Method Android.Runtime.AndroidEnvironmentInternal.UnhandledException(System.Exception) is inaccessible (...) exception #10602

Description

@OvrBtn

Android framework version

net9.0-android

Affected platform version

MAUI 9.0.110

Description

For some time I've been noticing random crashes for some % of users with this stacktrace

System.MethodAccessException: Method `Android.Runtime.AndroidEnvironmentInternal.UnhandledException(System.Exception)' is inaccessible from method `AndroidX.Fragment.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle__mm_wrapper(intptr,intptr,intptr,intptr,intptr)'
   at AndroidX.Fragment.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle__mm_wrapper(IntPtr jnienv, IntPtr native__this, IntPtr native_inflater, IntPtr native_container, IntPtr native_savedInstanceState)

Since it's happening in release mode and I can't reproduce it it's hard to say anything more about it.

Don't know how useful that would be but the first time I got a log with this error was on 06/17/2025 but I can't tell if it's due to some changes in MAUI/net-android or in my configuration

Steps to Reproduce

Did you find any workaround?

No response

Relevant log output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: App RuntimeIssues in `libmonodroid.so`.needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions