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

Android - implement handler strategy #3694

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft

Android - implement handler strategy #3694

wants to merge 24 commits into from

Conversation

bricefriha
Copy link
Collaborator

@bricefriha bricefriha commented Oct 18, 2024

From #1027, we had to add the handler strategy to the .NET SDK, from the sentry-java (7.15.0-alpha1).

This is also meant to fix #3461. I tested this, and it seems to be fixed now.

More context at:

Set handler strategy from the options

        options.HandlerStrategy = NdkHandlerStrategy.SENTRY_HANDLER_STRATEGY_CHAIN_AT_START;

Note

These changes seem to require a pre-alpha release

@bricefriha bricefriha changed the title Android - add handler strategy Android - implement handler strategy Oct 18, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry/NdkHandlerStrategy.cs Outdated Show resolved Hide resolved
src/Sentry/SentryOptions.cs Outdated Show resolved Hide resolved
test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs Outdated Show resolved Hide resolved
Assert.Equal(expected, options.HandlerStrategy);
}
[Fact]
public void HandlerStrategy_set()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're just testing setters here, can we add some integration test somehow?

Can we repro this null reference to SIGSEGV issue? We have tests in the repo where we have the SDK capture something and we grab the event from the transport and asset on what was created.

We'd add tests and #if ANDROID. cc @jamescrosswell @vaind are DeviceTests alive? I know we had issues
If so, any points you could give @bricefriha on how to do this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @jamescrosswell @vaind are DeviceTests alive? I know we had issues

They're working fine on the main branch. We've got issues with them when we try to make them target net8.0-android or net8.0-ios... we don't have to do that until we bump to net9.0 though.

src/Sentry/Platforms/Android/SentrySdk.cs Outdated Show resolved Hide resolved
src/Sentry/Platforms/Android/SentrySdk.cs Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj Outdated Show resolved Hide resolved
src/Sentry/NdkHandlerStrategy.cs Outdated Show resolved Hide resolved
src/Sentry/Platforms/Android/SentrySdk.cs Outdated Show resolved Hide resolved
src/Sentry/Platforms/Android/SentrySdk.cs Outdated Show resolved Hide resolved
src/Sentry/Platforms/Android/SentrySdk.cs Outdated Show resolved Hide resolved
@bricefriha bricefriha marked this pull request as draft October 21, 2024 09:53
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

Successfully merging this pull request may close these issues.

logcat.log is not attached to unhandled event (SIGSEGV Segfault)
3 participants