rive-react-native icon indicating copy to clipboard operation
rive-react-native copied to clipboard

7.3.0 instant launch crash React Native 0.74.5

Open hamdij0maa opened this issue 1 year ago β€’ 6 comments

Install rive-react-native 7.3.0 instant crash android on launch.

hamdij0maa avatar Aug 26 '24 13:08 hamdij0maa

Hi @hamdij0maa can you share

  • the .riv file you're using
  • the code
  • the crash log

HayesGordon avatar Aug 26 '24 16:08 HayesGordon

I see the same issue (crash on app start) but only on iOS in an expo project.

    "expo": "~51.0.31",
    "react-native": "0.74.5",
    "rive-react-native": "^7.3.0",

It crashes even if I remove all usages of rive-react-native in the code so I don't think it's related to a specific animation file or code. Screenshot 2024-09-02 at 15 37 05

Downgrading to 7.2.0 fixes the crash.

I tried the same version 7.3.0 of rive-react-native in a bare React Native project with the same react-native version (0.74.5) and it works well there.

mlazari avatar Sep 02 '24 12:09 mlazari

Same issue as @mlazari

bitcrumb avatar Sep 03 '24 12:09 bitcrumb

I guess my issue is the same as https://github.com/rive-app/rive-react-native/issues/261

mlazari avatar Sep 03 '24 12:09 mlazari

I'm having the same issue here after upgrading to React Native 0.74.5. However, my Rive version is 6.2.3. Crash Free users on the version with React Native 0.74.5 dropped to 64% (from 98%+).

I can see a SIGABRT crash on libc.so and the logs also show librive-android.so on the stack trace. We need this fixed ASAP. Could you please help us? Is there a Rive version that has been tested with React Native 0.74.5?

image

bernardo-amaral-movile avatar Sep 03 '24 16:09 bernardo-amaral-movile

Hey all. πŸ‘‹ I've just started working on updating the repo to support the latest couple of versions of RN. Step one is getting all of our packages upgraded to more recent versions while still using RN 0.72.x. This'll make it easier to do the next couple of upgrades. If anyone wants to give it a test on a 0.72.x project, that'd be super helpful: https://github.com/rive-app/rive-react-native/pull/267

lancesnider avatar Sep 25 '24 17:09 lancesnider

@lancesnider @HayesGordon sorry in advance for pinging you, but do you have any visibility on when this is going to be fixed? This issue has been opened for 3 months and makes Rive completely unusable. It starts to get annoying as customers, as we paid to get some Rive assets that we can not use in our apps...

For tracking purpose, here is the other issue opened: https://github.com/rive-app/rive-react-native/issues/268

PierreCapo avatar Nov 18 '24 12:11 PierreCapo

Hi @PierreCapo, does the latest version of Rive React Native not solve this for you?

HayesGordon avatar Nov 18 '24 13:11 HayesGordon

@HayesGordon Still having the same issue with rive-react-native 8.1.0 Capture d’écran 2024-11-18 aΜ€ 14 56 58

Using s.dependency "RiveRuntime", "6.3.3" according to podspec

Related to this issue on rive-ios: https://github.com/rive-app/rive-ios/issues/345

Maniae avatar Nov 18 '24 13:11 Maniae

I'm cheating by not waiting for the 8.2 release, and I'm instead using:

"rive-react-native": "github:rive-app/rive-react-native#pull/274/head",

in my package.json . ~~It's compiling against RN 0.76/Expo 52. πŸ‘~~

~~Now there's just the small matter of making Rive compatible with the new architecture. πŸ™~~

Damn - I don't know what happened but now it fails again on the yoga symbols. Perhaps I had an older version cached somewhere when I thought it was working earlier. Sigh.

leemhenson avatar Nov 22 '24 15:11 leemhenson

also stuck on this issue. I have a test working with rive-react-native 8.1.0 and RN 0.76.1, but in the app with RN 0.74.5 I haven't gotten any version of rive-react-native to work. Also holding us up. Have seen some comments suggesting Firebase may be part of the problem and we are using Firebase in our project while the test project does not.

casualWaist avatar Nov 22 '24 16:11 casualWaist

we are using Firebase in our project

we are also using https://github.com/invertase/react-native-firebase

leemhenson avatar Nov 25 '24 10:11 leemhenson

Same, most likely an issue related with the static linking for frameworks enforced by React-Native Firebase

PierreCapo avatar Nov 25 '24 12:11 PierreCapo

Any updates on that topic?

Crash at launch still happens when trying to use [email protected] released in November

  • Issue appeared from 7.3.0
  • No pb when using 7.2.0
image

context: React-Native 0.76 & Expo 52

cc @HayesGordon would you know if someone from Rive is aware and following the issue?

Thanks in advance πŸ™

rlods avatar Nov 27 '24 12:11 rlods

Still crashing on 0.76, no expo, also using firebase

uglyghosty avatar Dec 01 '24 09:12 uglyghosty

8.2.0 also crashes, exactly the same. @HayesGordon

Thread 9 Crashed::  Dispatch queue: com.facebook.react.ShadowQueue
0   ???                           	          0x104100 ???
1   TaskHero.debug.dylib          	       0x112961134 -[RCTShadowView layoutWithMinimumSize:maximumSize:layoutDirection:layoutContext:] + 176 (RCTShadowView.m:268)
2   TaskHero.debug.dylib          	       0x1129515f4 -[RCTRootShadowView layoutWithAffectedShadowViews:] + 264 (RCTRootShadowView.m:35)
3   TaskHero.debug.dylib          	       0x112974b24 -[RCTUIManager uiBlockWithLayoutUpdateForRootView:] + 344 (RCTUIManager.m:549)
4   TaskHero.debug.dylib          	       0x11297a83c -[RCTUIManager _layoutAndMount] + 336 (RCTUIManager.m:1126)
5   TaskHero.debug.dylib          	       0x11297a6e0 -[RCTUIManager batchDidComplete] + 32 (RCTUIManager.m:1109)
6   TaskHero.debug.dylib          	       0x1128c4ac8 __32-[RCTCxxBridge batchDidComplete]_block_invoke + 56 (RCTCxxBridge.mm:1540)
7   libdispatch.dylib             	       0x1801774ec _dispatch_call_block_and_release + 24
8   libdispatch.dylib             	       0x180178de0 _dispatch_client_callout + 16
9   libdispatch.dylib             	       0x180180f60 _dispatch_lane_serial_drain + 956
10  libdispatch.dylib             	       0x180181a98 _dispatch_lane_invoke + 388
11  libdispatch.dylib             	       0x18018cf44 _dispatch_root_queue_drain_deferred_wlh + 276
12  libdispatch.dylib             	       0x18018c5a0 _dispatch_workloop_worker_thread + 440
13  libsystem_pthread.dylib       	       0x104487b74 _pthread_wqthread + 284
14  libsystem_pthread.dylib       	       0x104486934 start_wqthread + 8

evelant avatar Dec 03 '24 19:12 evelant

Fixed in the last commit e9fa1010a287cc87f4ffeb5a2a4166661f1fa5cb πŸŽ‰ Working on my side

PierreCapo avatar Dec 06 '24 19:12 PierreCapo

Yep, this one should be working for all of you now with 8.3.0. Please let me know if you run into any issues with this. Sorry it took so long!

lancesnider avatar Dec 06 '24 23:12 lancesnider

8.3.0 is working on my side too πŸŽ‰ Thank you for the fix!

mlazari avatar Dec 07 '24 08:12 mlazari

Crash on android devices. rive version : 8.4.0 react native version : 0.76.7

Crashed: Thread: SIGABRT  0x0000000000000000
#00 pc 0x90518 libc.so (BuildId: 4545a63f7d7b92b0c45c26fe530b66de)
#01 pc 0x904e4 libc.so (BuildId: 4545a63f7d7b92b0c45c26fe530b66de)
#02 pc 0x933d5c libart.so (BuildId: 629e0ffca501d809c29dbbeef2f512d3)
#03 pc 0x160fc libbase.so (BuildId: 1470f61c05962eb04fafe76bd58bf664)
#04 pc 0x156d0 libbase.so (BuildId: 1470f61c05962eb04fafe76bd58bf664)
#05 pc 0x3025d8 libart.so (BuildId: 629e0ffca501d809c29dbbeef2f512d3)
#06 pc 0x6d0894 libart.so (BuildId: 629e0ffca501d809c29dbbeef2f512d3)
#07 pc 0x21d0a4 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#08 pc 0x21d18c librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#09 pc 0x21be50 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#10 pc 0x21bf90 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#11 pc 0x2bc300 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#12 pc 0x2e6a9c librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#13 pc 0x2fd440 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#14 pc 0x22abb0 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#15 pc 0x22afb0 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)
#16 pc 0x215ed0 librive-android.so (BuildId: b60165676399bd7d7fdd382cdb4d730713490342)

SurendraSp avatar Feb 24 '25 15:02 SurendraSp

Still crashing on android devices. Rive version: 8.4.0 react-native version: 0.73.7

Crashed: Thread: SIGABRT  0x0000000000000000
#00 pc 0x5c900 libc.so (BuildId: 514c9b249d6864ca432619be56ec7de7)
#01 pc 0x5c8cc libc.so (BuildId: 514c9b249d6864ca432619be56ec7de7)
#02 pc 0x933abc libart.so (BuildId: 4ccb65ae9ac5ad5da3af5a342d5b0b92)
#03 pc 0x160fc libbase.so (BuildId: 1470f61c05962eb04fafe76bd58bf664)
#04 pc 0x156d0 libbase.so (BuildId: 1470f61c05962eb04fafe76bd58bf664)
#05 pc 0x24eb18 libart.so (BuildId: 4ccb65ae9ac5ad5da3af5a342d5b0b92)
#06 pc 0x73bbf8 libart.so (BuildId: 4ccb65ae9ac5ad5da3af5a342d5b0b92)
#07 pc 0x1dbd60 librive-android.so (BuildId: beed63a1f49be91c5a5d36ad44d8137e5683c7c7)
#08 pc 0x1d9078 librive-android.so (BuildId: beed63a1f49be91c5a5d36ad44d8137e5683c7c7)
#09 pc 0x1d1e74 librive-android.so (BuildId: beed63a1f49be91c5a5d36ad44d8137e5683c7c7)
#10 pc 0x723ae83c
#11 pc 0x6cb3dad83f

Senol122 avatar Jun 23 '25 11:06 Senol122