Skip to content

ANRs after disabling concurrent GC #10199

@feric-isc

Description

@feric-isc

Android framework version

net8.0-android

Affected platform version

8.0.17

Description

Very similar to issue #9365 (comment).

Many months back, we switched from Xamarin.Android to .NET8. At first we were having many NEW crashes in that version.

They were mostly SIGSEGV, SIGABRT and SIGQUIT. Note that even before, in Xamarin, we had these kind of errors, but there were a LOT more with .NET8.

Following the recommendations in an issue we opened dotnet/runtime#105389 (comment), it was recommended we disable the concurrent GC. We did so and this had good results as it brought us back to the SIGSEGV levels that we had prior. It's not good to have these issues and we hope to find a resolution in our another ticket but at least we were back to our original level of errors for SIGSEGV, etc.

Now, in .NET8, we still have the SIGSEGV errors that we had prior in Xamarin but some new ANR errors started popping up.

Here are a few stacktraces found in Crashlytics:

anr_stacktrace.txt
anr_stacktrace2.txt
anr_stacktrace3.txt

The first 2 seemed to occur sometimes in our Xamarin versions but not as much as with .NET8 versions. The third one only seems to occur since .NET8 version (I base this on the data provided from Crashlytics that specifies when an issue was first discovered.

Let me know what I can do to help troubleshoot the issue

Steps to Reproduce

We do not have exact steps to reproduce. This occurs apparently randomly. We run the same automated tests regularly and the error will come back but we cannot find a reproduction pattern.

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App RuntimeIssues in `libmonodroid.so`.need-attentionA xamarin-android contributor needs to review

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions