android: [MarshalMethods] .NET 9 Android crash: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7228361bf07b in tid 4437 (.NET TP Worker)

Description

Not a lot to go on at the moment, but maybe this is a known issue? I’m porting my app to .NET 9 and this happens when I render a Google map with a specific set of polylines and markers. The same thing works fine with .NET 8 and in debug mode on .NET 9.

Steps to Reproduce

TBD. Likely will need access to my app and to a very specific data set.

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.93 SR9.3

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No

Relevant log output

Time	Device Name	Type	PID	Tag	Message
	pixel_7_pro_-_api_34	Error	4338	libc	Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7228361bf07b in tid 4437 (.NET TP Worker), pid 4338 (ckroads.android)

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

@Ying-6: added you as a collaborator.

You’ll want the net9-maui branch. Open the .sln file in VS 2022. Build Sideroads.Maui for release. Deploy to emulator. Then follow these steps:

  1. Run the app
  2. Say OK to the prompts
  3. Tap on the | menu in the Trips tab of the Trips page and select Import Trip
  4. Select this file: https://1drv.ms/u/s!ArS4HFRp-_RCmtctQn1iimkU_lJJAQ?e=aosQvo
  5. Once imported, tap on the “Pre-Thanksgiving” trip to select it
  6. From the Calendar page, tap on Sunday Nov 24th to open the expander
  7. Tap on the green “Canyoneer Dothraki” activity
  8. Say OK to a location prompt if needed
  9. Tap on the Map tab
  10. Observe the sigsegv crash