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

App crashes immediately when i render this component #58

Open
Bayramito opened this issue Mar 19, 2022 · 6 comments
Open

App crashes immediately when i render this component #58

Bayramito opened this issue Mar 19, 2022 · 6 comments

Comments

@Bayramito
Copy link

I was used this library before it was working fine but in my new project somehow its crashes the app.

I mean it is crashing totally not by giving any error or something...

Is this lib deprecated or what

@peterchibunna
Copy link

Did you rebuild your application? Maybe the Native dependencies have not been linked or you've not installed the dependencies like react-native-art.

@sanjaykochrekar
Copy link

sanjaykochrekar commented Apr 11, 2022

Yes App crash immediately as render component with fresh iOS project.

@peterchibunna
Copy link

I hope you didn't forget to install @react-native-community/art ?

@sanjaykochrekar
Copy link

sanjaykochrekar commented Apr 11, 2022

@peterchibunna after lot of reaserach I found this solution. watch youtube video
create file fixPatch.js in project(root) folder and add this code.

const {execSync} = require('child_process')

console.log('start patching')

execSync('git apply --ignore-whitespace patches/@react-native-community+art+1.2.0.patch')
console.log("finished patching")

download patch folder from here.
here

then run this node fixPatch.

It worked for me.

@sanjaykochrekar
Copy link

I hope you didn't forget to install @react-native-community/art ?

yes

@mswieboda
Copy link

mswieboda commented Aug 10, 2022

This is also happening for me, I'll try the method suggested with patching @react-native-community/art

this is the crash I see after launching the app on an iOS simulator:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: UNKNOWN_0xD at 0x0000000000000000
Exception Codes: 0x000000000000000d, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4312879104
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      101115000-101731000    [ 6256K] r-x/r-x SM=COW  ...app/appname
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [62273]

Triggered by Thread:  0

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                     0x7fff201a26e8 objc_release + 8
1   appname                              0x10162343d __destructor_8_s24 + 29
2   appname                              0x101623715 -[ARTNode renderContentTo:] + 373
3   appname                              0x101623522 -[ARTNode renderTo:] + 114 (ARTNode.m:64)
4   appname                              0x101624693 -[ARTRenderable renderTo:] + 275 (ARTRenderable.m:70)
5   appname                              0x101622bf6 -[ARTGroup renderLayerTo:] + 502 (ARTGroup.m:20)
6   appname                              0x101623537 -[ARTNode renderTo:] + 135 (ARTNode.m:65)
7   appname                              0x1016255ce -[ARTSurfaceView drawRect:] + 334 (ARTSurfaceView.m:52)
8   UIKitCore                           0x7fff256693b9 -[UIView(CALayerDelegate) drawLayer:inContext:] + 629

edit: only crashes when using inner={true} or useArt={true}, this was the solution to fix it for me: #41 (comment)

using latest from yarn add https://github.com/react-native-art/art.git b/c it hasn't been bumped to 1.2.1 yet

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

No branches or pull requests

4 participants