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

Segfault on Android - sk_sp<T>::reset #2609

Closed
matinzd opened this issue Sep 5, 2024 · 11 comments
Closed

Segfault on Android - sk_sp<T>::reset #2609

matinzd opened this issue Sep 5, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@matinzd
Copy link

matinzd commented Sep 5, 2024

Description

Link to Sentry stacktrace: https://lendo.sentry.io/share/issue/4a599f0628974be0b209803563b36916/

Segfault - sk_sp<T>::reset

Version

1.2.3

Steps to reproduce

I could not reproduce this but it seems like it's happening on low-end devices.

Snack, code example, screenshot, or link to a repository

Image

@matinzd matinzd added the bug Something isn't working label Sep 5, 2024
@matinzd
Copy link
Author

matinzd commented Sep 5, 2024

Adding it here just in case upgrading does not solve it.

@matinzd
Copy link
Author

matinzd commented Sep 5, 2024

@wcandillon Can this be related to #2505?

@matinzd
Copy link
Author

matinzd commented Sep 6, 2024

Documenting just in case someone is getting segfault on Android. Tried adding cancelAnimation on shared values and upgraded to the latest version of RN Skia. Seems the fix is working as of now.

Before:
Image

After:
Image

@matinzd matinzd changed the title Segfault on Android Segfault on Android - sk_sp<T>::reset Sep 6, 2024
@wcandillon
Copy link
Contributor

@matinzd my apologies for only following up on this now. Anything there we should do on our side?

@matinzd
Copy link
Author

matinzd commented Oct 10, 2024

It's still happening after updating skia again.

Here is the link to sentry report:

https://lendo.sentry.io/share/issue/c2d3c8bf1a30495a8b841002b2778825/

@wcandillon
Copy link
Contributor

@matinzd We've fixed many bugs in our Android integration, can you upgrade to 1.6.0 and let us know how it looks? We have other users that confirmed to us that it cleared all the crashes they had on Android. Let me know.

@matinzd
Copy link
Author

matinzd commented Dec 10, 2024

There is another issue coming up when I released the app with 1.6.0:

https://lendo.sentry.io/share/issue/e7bdfb6e78d1475da59e68d851ef470a/

OS Version: Android 14 (UP1A.231005.007.S926BXXU5AXK4)
Report Version: 104

Exception Type: Unknown (SIGSEGV)

Application Specific Information:
Segfault

Thread 0 Crashed:
0   split_config.arm64_v8a.apk      0x79604df254        gl::Context::makeCurrent
1   split_config.arm64_v8a.apk      0x79605cccc4        RNSkia::OpenGLWindowContext::getSurface
2   split_config.arm64_v8a.apk      0x79604e1d18        RNSkia::RNSkOpenGLCanvasProvider::renderToCanvas
3   split_config.arm64_v8a.apk      0x79605c38c4        RNSkia::RNSkDomRenderer::renderImmediate
4   split_config.arm64_v8a.apk      0x79604d7db8        RNSkia::RNSkAndroidView<T>::surfaceAvailable
5   split_config.arm64_v8a.apk      0x79604d8b9c        facebook::jni::detail::MethodWrapper<T>::dispatch
6   split_config.arm64_v8a.apk      0x79604d8ab4        facebook::jni::detail::FunctionWrapper<T>::call
7   base.odex                       0x7a1469c420        <unknown> + 524328485920

@antonandreyev
Copy link

antonandreyev commented Dec 10, 2024

We also observe SIGSEGV in makeCurrent on both 1.6 and 1.7. Quite consistent on Samsung S22 5G Android 12 with React Native 76
E.: device details

@wcandillon
Copy link
Contributor

@antonandreyev #2801 is a fix for Samsung S22 (any device that is vulkan + angle) however the stack trace feels inconsistent with the actually issue we are fixing there. It would be interesting to see if 1.7.2 fixes the issue.

@wcandillon
Copy link
Contributor

@matinzd Is this issue still happening?

@matinzd
Copy link
Author

matinzd commented Dec 18, 2024

Not anymore. Let's close it.

@matinzd matinzd closed this as completed Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants