Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Set a shadow to Shape leads to EXC_BAD_ACCESS exception throwing #76

Open
petrvmakarov opened this issue Nov 10, 2020 · 5 comments
Open

Comments

@petrvmakarov
Copy link

I have pretty simple Shape in my app — just a rectangle. I'm trying to set a shadow to it. App renders fine without shadow has been set but it crashes when I'm set it to Shape. Please review code snippet below and crash log attached.

const d = 'M 10, 10 h 150 v 50 h -150 z'; 
const shadowProps = {
 shadowOpacity: 1,
  shadowOffset: {
    x: 5, y: 5
  },
  shadowRadius: 5,
  shadowColor: '#000',
};

const App: () => React$Node = () => {
  return (
    <>
      <Surface width={500} height={500}>
        <Group>
          <Shape d={d} stroke="#000" strokeWidth={1} {...shadowProps} />
        </Group>
      </Surface>
    </>
  );
};

Please see crash log file attached.

arttest_2020-11-10-162846_PMaks-MacBook-Pro.log

@cayasso
Copy link

cayasso commented Nov 18, 2020

Having the exact same issue!

@Sbarcenas
Copy link

Me too have this issue, from xcode 12

@ManBuTianYa
Copy link

Have you solved this problem?

@naishadh-hyperspace
Copy link

Any solution for this? I am getting this exception after updating Xcode 12.4

@choipd
Copy link

choipd commented Feb 14, 2021

My solution was applying #70
Good luck!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants