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

EXC_BAD_ACCESS #194

Open
MobileAppVault opened this issue Nov 17, 2018 · 2 comments
Open

EXC_BAD_ACCESS #194

MobileAppVault opened this issue Nov 17, 2018 · 2 comments

Comments

@MobileAppVault
Copy link

Hi,

I've tried to use this library but I got this error when I start my app:

ARSCNView *arView = [[ARSCNView alloc] init]; // ERROR: Thread 1: EXC_BAD_ACCESS (code=1, address=0x48)

Could you please help me?

Many Thanks
Marcus

@code-matt
Copy link
Collaborator

This is happening in xCode 10.1 and RN 57.5

Was working fine before upgrade. I thought maybe permissions flow had changed somehow and used react-native-permissions to request camera before I showed ARKit but still EXC_BAD_ACCESS

@code-matt
Copy link
Collaborator

I got lucky with a guess. Removing:

          <ARKit.Shape
            position={{ x: -1, y: 0, z: 0 }}
            eulerAngles={{
              x: Math.PI,
            }}
            scale={0.01}
            shape={{
              // specify shape by svg! See https://github.com/HippoAR/react-native-arkit/pull/89 for details
              pathSvg: `
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
                <path d="M50,30c9-22 42-24 48,0c5,40-40,40-48,65c-8-25-54-25-48-65c 6-24 39-22 48,0 z" fill="#F00" stroke="#000"/>
              </svg>`,
              pathFlatness: 0.1,
              // it's also possible to specify a chamfer profile:
              chamferRadius: 5,
              chamferProfilePathSvg: `
                <path d="M.6 94.4c.7-7 0-13 6-18.5 1.6-1.4 5.3 1 6-.8l9.6 2.3C25 70.8 20.2 63 21 56c0-1.3 2.3-1 3.5-.7 7.6 1.4 7 15.6 14.7 13.2 1-.2 1.7-1 2-2 2-5-11.3-28.8-3-30.3 2.3-.4 5.7 1.8 6.7 0l8.4 6.5c.3-.4-8-17.3-2.4-21.6 7-5.4 14 5.3 17.7 7.8 1 .8 3 2 3.8 1 6.3-10-6-8.5-3.2-19 2-8.2 18.2-2.3 20.3-3 2.4-.6 1.7-5.6 4.2-6.4"/>
              `,
              extrusion: 10,
            }}
          />

Is what causes this crash, removing it and RNARKit starts up normally

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

2 participants