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

[MAUI] Crash when running on a simulator with Google Play Store enabled #104

Closed
DevEddy opened this issue Mar 18, 2021 · 4 comments
Closed

Comments

@DevEddy
Copy link

DevEddy commented Mar 18, 2021

Hi there,

I tried the MAUI sample on Android API29 and API30 with and without store. The crash happens only when MAUI is running on Android emulator with Google Play Store enabled. Without Google Play Store everything works as expected.

03-18 09:36:57.633  4982  4982 I MonoDroid:   --- End of managed Java.Lang.ArrayIndexOutOfBoundsException stack trace ---
03-18 09:36:57.633  4982  4982 I MonoDroid: java.lang.ArrayIndexOutOfBoundsException: length=23; index=-4
03-18 09:36:57.633  4982  4982 I MonoDroid:     at android.text.StaticLayout.getLineTop(StaticLayout.java:1213)

I've attached two logs which I got via catlog.

MAUI_crash_api30_withstore_pixel3a.log
MAUI_crash_api29_withstore_pixel.log

Any idea?

PS: The native Xamarin.Android project doesn't crash at all.

  • Eddy
@jonathanpeppers
Copy link
Member

Someone else was hitting this and changed the version of Microsoft.Maui to 6.0.100-preview.2.148 and it worked around the issue.

Does that work for you?

@DevEddy
Copy link
Author

DevEddy commented Mar 19, 2021

Hi @jonathanpeppers ,

I am sorry, I didn't see that someone had this issue before.
Setting Microsoft.Maui from 6.0.100-* to 6.0.100-preview.2.148 worked for me, too!

@DevEddy DevEddy closed this as completed Mar 19, 2021
@jonathanpeppers
Copy link
Member

We can keep this open, it was someone at Microsoft, so it wasn't a public Github issue.

@jonathanpeppers
Copy link
Member

I don't think this is an issue in the latest preview, can you try Preview 5 and let us know, thanks!

https://devblogs.microsoft.com/dotnet/announcing-net-maui-preview-5/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants