Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Marshal Methods] MAUI project infinite loop on startup #7893

Closed
jonathanpeppers opened this issue Mar 17, 2023 · 4 comments
Closed

[Marshal Methods] MAUI project infinite loop on startup #7893

jonathanpeppers opened this issue Mar 17, 2023 · 4 comments
Assignees
Labels
Area: App Runtime Issues in `libmonodroid.so`. bug Component does not function as intended.
Milestone

Comments

@jonathanpeppers
Copy link
Member

jonathanpeppers commented Mar 17, 2023

Android application type

.NET Android (net7.0-android, etc.)

Affected platform version

.NET 8 Preview 2

Description

A customer's app won't get past the splash screen when built in Release mode:

image

But it appears to work if you set AndroidEnableMarshalMethods=false.

Steps to Reproduce

  1. I can share the sample with you privately in Teams
  2. Run the app in Release mode. It can be a fresh/clean build, so not an incremental build issue.

Did you find any workaround?

AndroidEnableMarshalMethods=false

Relevant log output

The log just kind of gets here... And stops?

03-15 23:25:52.948 14320 14320 D Mono    : AOT: FOUND method Microsoft.Maui.WeakList`1/<>c:<CleanupIfNeeded>b__12_0 (System.WeakReference`1<T>) [0x7b4e6fcfd530 - 0x7b4e6fcfd5f7 0x7b4e6fd39ba3]

log.txt

@jonathanpeppers jonathanpeppers added the Area: App Runtime Issues in `libmonodroid.so`. label Mar 17, 2023
@jonathanpeppers jonathanpeppers added this to the .NET 8 milestone Mar 17, 2023
@ghost ghost added the needs-triage Issues that need to be assigned. label Mar 17, 2023
@333fred
Copy link
Member

333fred commented Mar 17, 2023

Thanks for the investigation Jon!

@daltzctr
Copy link

I've also ran into this issue as well. The above workaround solves it.

@jonpryor jonpryor modified the milestones: .NET 8, .NET 9 Planning Jul 24, 2023
@jpobst
Copy link
Contributor

jpobst commented Aug 24, 2023

We are turning off AndroidEnableMarshalMethods for .NET 8. Bumping to .NET 9 when we will try to fix and finish the feature.

@jpobst jpobst changed the title .NET 8 customer MAUI project -- some kind of infinite loop on startup? [Marshal Methods] MAUI project infinite loop on startup Oct 10, 2023
@jpobst jpobst added bug Component does not function as intended. and removed needs-triage Issues that need to be assigned. labels Oct 10, 2023
@jpobst
Copy link
Contributor

jpobst commented May 17, 2024

Tracking via #8253.

@jpobst jpobst closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: App Runtime Issues in `libmonodroid.so`. bug Component does not function as intended.
Projects
None yet
Development

No branches or pull requests

6 participants