CARVIEW |
Select Language
HTTP/2 301
date: Sun, 27 Jul 2025 14:18:55 GMT
content-length: 0
location: https://github.com/dotnet/android/issues/5409
server-timing: nginx;desc="NGINX";dur=0.865176,glb;desc="GLB";dur=101.554231
x-voltron-version: a2eb102
vary: Accept-Encoding, Accept, X-Requested-With
server: github.com
x-frame-options: DENY
strict-transport-security: max-age=31536000; includeSubDomains; preload
set-cookie: _gh_sess=pUWlz9j12I7I1euv7ELSZ89%2BwRxlOgQ1tpOSljHrUmU1FBATjdyNXWs4eiuzPBbv0PVNDk6heWgMGQs119SfaSzcqOgfabbdm9o3tLjeWsjiFkrU5Ld6%2BeromPPdX8KWpb7BE0CMHiMyB3IgZ1MsKBgmKkRqp4%2BfUkgWbO54jgHYowaZAe6cThtKX0e7BVIsrphLdo2WtcayR7Npr%2BUnmsRsOuYLyDfuy3bpkxNonEbthar0kb1p3GcCapkpT%2BCW2mC9GmcbpmSaO2aosCSYag%3D%3D--orRaIfa95mXQ7%2Bbw--Lyw6aVJWFz6Gd7e1w2VNPw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1665751751.1753625935; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 14:18:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 14:18:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D98A:1C79A4:EFC46D:13B19EC:6886354F
HTTP/2 200
date: Sun, 27 Jul 2025 14:18:56 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=231.969705,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=622.096431,issue_conversation_sidebar-fragment;desc="issue_conversation_sidebar fragment";dur=44.076479,nginx;desc="NGINX";dur=1.298737,glb;desc="GLB";dur=101.469731
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: a2eb102
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
x-github-request-id: D98A:1C79A4:EFC483:13B1A20:6886354F
[.NET 6] Debug build of Java.Interop.dll crashes Xamarin.Forms applications · Issue #5409 · dotnet/android · GitHub
No typeNo projectsNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 555
Closed
Closed
Copy link
Labels
Area: App RuntimeIssues in `libmonodroid.so`.Issues in `libmonodroid.so`.Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.bugComponent does not function as intended.Component does not function as intended.
Milestone
Description
Steps to Reproduce
-
Build a Debug build of xamarin-android locally with
msbuild Xamarin.Android.sln -t:PackDotNet
ormake pack-dotnet
-
Build this Xamarin.Forms sample:
~\android-toolchain\dotnet\dotnet build .\HelloForms\HelloForms.csproj -t:Run -p:TargetFramework=net6.0-android
You may need to add an entry to NuGet.config
, full path to:
<configuration>
<packageSources>
<add key="local" value="C:\src\xamarin-android\bin\BuildDebug\nupkgs" />
...
- The app crashes on startup.
Crashes with:
12-14 08:50:08.286 11868 11868 D app_process32: ---- DEBUG ASSERTION FAILED ----
12-14 08:50:08.286 11868 11868 D app_process32: ---- Assert Short Message ----
12-14 08:50:08.286 11868 11868 D app_process32: ManagedPeerType <=> JniTypeName Mismatch! javaVM.GetJniTypeInfoForType(typeof(Android.Views.LayoutInflaterInvoker)).JniTypeName="" != "android/view/LayoutInflater"
12-14 08:50:08.286 11868 11868 D app_process32: ---- Assert Long Message ----
12-14 08:50:08.286 11868 11868 D app_process32:
12-14 08:50:08.286 11868 11868 D app_process32: at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage)
12-14 08:50:08.286 11868 11868 D app_process32: at System.Diagnostics.Debug.Fail(String message, String detailMessage)
12-14 08:50:08.286 11868 11868 D app_process32: at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
12-14 08:50:08.286 11868 11868 D app_process32: at System.Diagnostics.Debug.Assert(Boolean condition, String message)
12-14 08:50:08.286 11868 11868 D app_process32: at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType, Boolean checkManagedPeerType, Boolean isInterface)
12-14 08:50:08.286 11868 11868 D app_process32: at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.286 11868 11868 D app_process32: at Android.Runtime.XAPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.286 11868 11868 D app_process32: at Android.Views.LayoutInflaterInvoker..cctor()
12-14 08:50:08.286 11868 11868 D app_process32: at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstruct
12-14 08:50:08.290 11868 11868 W : CLR: Managed code called FailFast, saying "ManagedPeerType <=> JniTypeName Mismatch! javaVM.GetJniTypeInfoForType(typeof(Android.Views.LayoutInflaterInvoker)).JniTypeName="" != "android/view/LayoutInflater"
12-14 08:50:08.290 11868 11868 W : at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage)
12-14 08:50:08.290 11868 11868 W : at System.Diagnostics.Debug.Fail(String message, String detailMessage)
12-14 08:50:08.290 11868 11868 W : at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
12-14 08:50:08.290 11868 11868 W : at System.Diagnostics.Debug.Assert(Boolean condition, String message)
12-14 08:50:08.290 11868 11868 W : at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType, Boolean checkManagedPeerType, Boolean isInterface)
12-14 08:50:08.290 11868 11868 W : at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.290 11868 11868 W : at Android.Runtime.XAPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.290 11868 11868 W : at Android.Views.LayoutInflaterInvoker..cctor()
12-14 08:50:08.290 11868 11868 W : at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo , Object , Object[] , Exception& )
12-14 08:50:08.290 11868 11868 W : at System.Reflection.RuntimeConstructorInfo.InternalInvoke(Object obj, Object[] parameters, Boolean wrapExceptions)
12-14 08:50:08.290 11868 11868 W : at System.Reflection.RuntimeConstructorInfo.DoInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12-14 08:50:08.290 11868 11868 W : at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12-14 08:50:08.290 11868 11868 W : at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
12-14 08:50:08.290 11868 11868 W : at Java.Interop.TypeManager.CreateProxy(Type type, IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.290 11868 11868 W : at Java.Interop.TypeManager.CreateInstance(IntPtr handle, JniHandleOwnership transfer, Type targetType)
12-14 08:50:08.290 11868 11868 W : at Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer, Type type)
12-14 08:50:08.290 11868 11868 W : at Java.Lang.Object._GetObject[LayoutInflater](IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.290 11868 11868 W : at Java.Lang.Object.GetObject[LayoutInflater](IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.290 11868 11868 W : at Android.App.Activity.get_LayoutInflater()
12-14 08:50:08.290 11868 11868 W : at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnCreate(Bundle savedInstanceState, ActivationFlags flags)
12-14 08:50:08.290 11868 11868 W : at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnCreate(Bundle savedInstanceState)
12-14 08:50:08.290 11868 11868 W : at HelloForms.Droid.MainActivity.OnCreate(Bundle savedInstanceState)
12-14 08:50:08.290 11868 11868 W : at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState)
12-14 08:50:08.290 11868 11868 W : at Android.Runtime.DynamicMethodNameCounter.5(IntPtr , IntPtr , IntPtr )"
12-14 08:50:08.292 11868 11868 E mono :
12-14 08:50:08.292 11868 11868 E mono : Unhandled Exception:
12-14 08:50:08.292 11868 11868 E mono : System.Diagnostics.DebugProvider+DebugAssertException: ManagedPeerType <=> JniTypeName Mismatch! javaVM.GetJniTypeInfoForType(typeof(Android.Views.LayoutInflaterInvoker)).JniTypeName="" != "android/view/LayoutInflater"
12-14 08:50:08.292 11868 11868 E mono : at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage)
12-14 08:50:08.292 11868 11868 E mono : at System.Diagnostics.Debug.Fail(String message, String detailMessage)
12-14 08:50:08.292 11868 11868 E mono : at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
12-14 08:50:08.292 11868 11868 E mono : at System.Diagnostics.Debug.Assert(Boolean condition, String message)
12-14 08:50:08.292 11868 11868 E mono : at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType, Boolean checkManagedPeerType, Boolean isInterface)
12-14 08:50:08.292 11868 11868 E mono : at Java.Interop.JniPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.292 11868 11868 E mono : at Android.Runtime.XAPeerMembers..ctor(String jniPeerTypeName, Type managedPeerType)
12-14 08:50:08.292 11868 11868 E mono : at Android.Views.LayoutInflaterInvoker..cctor()
12-14 08:50:08.292 11868 11868 E mono : at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo , Object , Object[] , Exception& )
12-14 08:50:08.292 11868 11868 E mono : at System.Reflection.RuntimeConstructorInfo.InternalInvoke(Object obj, Object[] parameters, Boolean wrapExceptions)
12-14 08:50:08.292 11868 11868 E mono : at System.Reflection.RuntimeConstructorInfo.DoInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12-14 08:50:08.292 11868 11868 E mono : at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12-14 08:50:08.292 11868 11868 E mono : at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
12-14 08:50:08.292 11868 11868 E mono : at Java.Interop.TypeManager.CreateProxy(Type type, IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.292 11868 11868 E mono : at Java.Interop.TypeManager.CreateInstance(IntPtr handle, JniHandleOwnership transfer, Type targetType)
12-14 08:50:08.292 11868 11868 E mono : at Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer, Type type)
12-14 08:50:08.292 11868 11868 E mono : at Java.Lang.Object._GetObject[LayoutInflater](IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.292 11868 11868 E mono : at Java.Lang.Object.GetObject[LayoutInflater](IntPtr handle, JniHandleOwnership transfer)
12-14 08:50:08.292 11868 11868 E mono : at Android.App.Activity.get_LayoutInflater()
12-14 08:50:08.292 11868 11868 E mono : at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnCreate(Bundle savedInstanceState, ActivationFlags flags)
12-14 08:50:08.292 11868 11868 E mono : at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnCreate(Bundle savedInstanceState)
12-14 08:50:08.292 11868 11868 E mono : at HelloForms.Droid.MainActivity.OnCreate(Bundle savedInstanceState)
12-14 08:50:08.292 11868 11868 E mono : at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState)
12-14 08:50:08.292 11868 11868 E mono : at Android.Runtime.DynamicMethodNameCounter.5(IntPtr , IntPtr , IntPtr )
This works if you have a Release
build of Java.Interop.dll
because this assertion is stripped away:
We think there must be some issue with type maps in this project?
We probably won't be able to look into this until January, so I thought I'd post this so we don't forget.
Metadata
Metadata
Assignees
Labels
Area: App RuntimeIssues in `libmonodroid.so`.Issues in `libmonodroid.so`.Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.bugComponent does not function as intended.Component does not function as intended.
Type
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.