-
Notifications
You must be signed in to change notification settings - Fork 31
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
RecyclerView -A/libc: Fatal signal Crash #273
Comments
Bump |
We have a similar issue in our app which uses the AndroidX Leanback library. We use RiveAnimationView in a child view displayed in androidx.leanback.widget.HorizontalGridView (which inherits from RecyclerView). Scrolling around fast causes a crash in the native Rive code. I've built the rive-android library 4.2.1 with debug symbols and without optimizations (-O0 -g) to produce meaningful stacktraces. I can provide tombstones if necessary. It is interesting that the crash occurs at different locations. I am attaching a couple of stacktraces from Amazon Fire TV Cube (2nd Gen) and Chromecast with Google TV. |
|
|
|
I have tested this issue on the latest 4.0.0 version of the library, but I am still getting the Fatal signal 11 crash on recycler views. |
Going to close this issue for now - feel free to reopen if the issue is pops up again! |
Description
I would like to use rive animations in a recycler view. Using the
RecyclerActivity
example provided from the rive GitHub page, found on this path:rive-android-master/app/src/main/java/app/rive/runtime/example/RecyclerActivity.kt
The only change I made was to change the size of the
RiveAnimationView
in theactivity_recycler_item.xml
fromandroid:layout_width="wrap_content" android:layout_height="match_parent"
to
android:layout_width="64dp" android:layout_height="56dp"
This means that view holders would be smaller than in the original example. Scrolling too fast when running leads to a fatal signal crash.
I have tested on 2 emulators and my own physical device.
My device (Samsung s9+ running android 10) and one of the Emulators (Pixel A3 running API 33) received this crash:
E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb4000075a584d590 A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 16256 (Thread-2), pid 16216 (rive-android-master) E/Surface: getSlotFromBufferLocked: unknown buffer: 0x0
The other emulator (Pixel API 22) received this crash:
Fatal signal 6 (SIGABRT), code -6 in tid 17229 (Thread-582)
I used the following version of the rive SDK:
implementation 'app.rive:rive-android:4.0.0'
Source
.riv
/.rev
fileThe source was the
circle_move.riv
file in the examplesThe text was updated successfully, but these errors were encountered: