-
Notifications
You must be signed in to change notification settings - Fork 536
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
[MarshalMethods] .NET 9 Android crash: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7228361bf07b in tid 4437 (.NET TP Worker) #9717
Comments
Hi @mfeingol, could you provide us with a sample project so we can investigate it further? Looking forward to your reply! |
@Ying-6: thanks for following up. I have repro steps ready for someone who can build my app in release mode and deploy to an Android emulator or device. Who should I add to my project? |
@Ying-6: added you as a collaborator. You'll want the
|
This issue has been verified using Visual Studio 17.13 Preview 1 (9.0.12 & 9.0.10). Can repro this issue on Android platform. And 8.0.100 works fine. |
Thanks, @Ying-6. Any thoughts around root cause or workaround? |
Can you attach a logcat file with your crash? |
@PureWeen: here's a logcat file. Not a lot in there... the most relevant line is:
|
@mfeingol: it looks like the Could you instead try capturing it from the command line?
The resulting |
@jonpryor: apologies. Here is that file.logcat.txt |
@mfeingol: looks like I wasn't entirely correct: there still isn't the stack trace that I expected to see. Is this app debuggable? Is this a Debug or Release config build, and do you set IIRC, to get full stack traces in logcat, the app must be "debuggable", as per the final One thing that doesn't look quite right in the most recent logcat:
which suggests you're using an x86 emulator, but trying to launch an x86_64 app? Though I'd expect that scenario to fail far earlier, so I'm not entirely certain here -- maybe this message should be ignored? -- and subsequent messages show that it is looking at x86_64 data:
Note I also find the following message concerning, but I don't know if it's meaningful or not:
@mfeingol: Please verify that your app is debuggable (Debug config build, not setting |
@jonpryor: I didn't have
Both the app and the emulator image are x64 as far as I can tell. Let me know if you want to cut out the middleman here and I can give you access to my project. Repro instructions are above. |
It looks like I'm hitting the same issue as dotnet/maui#16514 and sure enough this fixes the crash:
Offer stands to give you guys access so you can understand/fix this and get |
@mfeingol: your most recent comment confuses me, because LLVM Marshal Methods are disabled by default in .NET 9, and have been since .NET 9 RC2:
Were you explicitly enabling them in your project? That said we thought we had figured out the cause of hangs related to LLVM Marshal Methods (#9343), so this crash is new to me. The presence of Are you able to simplify your repro to share it publicly? |
Yes, I had explicitly enabled Unfortunately it would be a lot of work to provide a public repro. As I said, I'm happy to give you access to my project. The repro steps above will reproduce the crash 100%. |
@mfeingol: unfortunately we won't be able to look into your project anytime soon. |
That's fine. This was a .NET 9 adoption blocker for me, but now that I understand the cause I can work around it. Question: if I were able to produce a quick and dirty repro, would that help accelerate things? |
Maybe; it depends on how easily we can get more of the native stack trace, and where that points us to. If we don't get more stack trace, I'll need to wait for people to return from vacation so we can get more of a stack trace. If we do have more of a stack trace, it'll depend on where it points us to. (As is, winter vacations have begun…) |
Just as an FYI here, we're not able to just look at private repos/proprietary code. All reproductions should be publicly hosted and not an attached zip file.
So probably yes, but in this case that is not the only reason for delay, its December and a good number of people will be out of office at this time. @jonpryor is this still MAUI specific? Else you can move it to Android? |
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)
The text was updated successfully, but these errors were encountered: