rive-android icon indicating copy to clipboard operation
rive-android copied to clipboard

Fix bug crash on Android 15 (with 16KB page size support)

Open vegeta2102 opened this issue 1 year ago • 2 comments

Description

Following on this issue https://github.com/rive-app/rive-android/issues/329 and the guidance from AndroidDeveloper https://developer.android.com/guide/practices/page-sizes#compile-r26-lower native-code has to rebuilt in order to be compatible with Android 15.

target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")

Updated CMakeLists.txt to enable 16 KB ELF alignment.

vegeta2102 avatar Jun 20 '24 10:06 vegeta2102

@umberto-sonnino Can you have a look at it?

vegeta2102 avatar Aug 08 '24 10:08 vegeta2102

Сan somebody please look into this issue? Rive is crashing on any non-potato droid.

georgmay avatar Aug 19 '24 12:08 georgmay

Hi all. I'm the Android DevRel for Rive and am actively looking into this issue. The solution posed in this PR may not be sufficient, as it only affects our C++ files but not the associated libc++_shared.so. So we're now investigating bumping the NDK version which would ensure everything is 16kb aligned. Stay tuned for more as we test this solution more.

ErikUggeldahl avatar Nov 07 '24 00:11 ErikUggeldahl

Hi all. This thread slipped my mind but this was fixed as of 9.13.0. We ultimately went with NDK r27, as described here. Closing as this is now resolved.

ErikUggeldahl avatar Feb 05 '25 10:02 ErikUggeldahl