Crash when using Pattern
See original GitHub issueI’m getting hard crash when trying to use Patterns. Testing with react-native-svg 8.0.8 and iOS simulator outputs to XCode console just libc++abi.dylib: terminating with uncaught exception of type NSException
.
Simple test case which always crashes:
const STRIPE_WIDTH = 1 / 7;
const VIEWBOX_WIDTH = 140;
const VIEWBOX_HEIGHT = 140;
return (
<View style={{ height: 64, width: 64 }}>
<Svg
width="100%"
height="100%"
viewBox={`0 0 ${VIEWBOX_WIDTH} ${VIEWBOX_HEIGHT}`}
>
<Defs>
<Pattern
id="Stripes"
width={STRIPE_WIDTH * 2}
height="1"
patternContentUnits="objectBoundingBox"
>
<Rect
x="0"
y="0"
height="1"
width={STRIPE_WIDTH}
fill="#ffffff"
/>
<Rect
x={STRIPE_WIDTH}
y="0"
height="1"
width={STRIPE_WIDTH}
fill="#000000"
/>
</Pattern>
</Defs>
<Circle
fill="url(#Stripes)"
cx={VIEWBOX_WIDTH / 2}
cy={VIEWBOX_HEIGHT / 2}
r={VIEWBOX_HEIGHT / 2}
/>
</Svg>
</View>
);
Issue Analytics
- State:
- Created 5 years ago
- Comments:12
Top Results From Across the Web
Illustrator Crashes in Pattern tool - Adobe Support Community
I Have a Sureface Pro 6 and I am on Illustrator 2021. I have had problems before with the pattern tool, but thought...
Read more >The Pattern crashes - what to do? Tips & solutions
The Pattern keeps crashing and you don't know why? Then find out here what you can do if The Pattern keeps crashing. Again...
Read more >Editing Pattern Swatch + Saving = Crash (unsaved ...
After creating a new pattern swatch with about a dozen objects, I double click the swatch to change the pattern settings.
Read more >What should I do if Pattern app is not working?
Do not panic. While repeated crashes are an issue, a crash once in a while is normal. Simply power off your smartphone by...
Read more >Crash when using Pattern · Issue #840 - GitHub
I'm getting hard crash when trying to use Patterns. Testing with react-native-svg 8.0.8 and iOS simulator outputs to XCode console just ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw, stop-color should be stopColor instead. And, with the latest commit in the master branch, you can use this to get equivalent output to the original:
ok fixed by removing “100%” and using actual numbers