question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent failure to render on iOS 11

See original GitHub issue

I’m still investigating this and will add more here as I discover it, but I’m seeing that several (but not all) SVGs in my app intermittently (but not always) fail to render. Is anyone else seeing this?

According to the inspector, the element is there and has its proper dimensions as normal, but at least one element is completely invisible.

In my case, the elements in question are all Circles or Rects with gradient fills that are overlayed by something else. In one case, I have several shapes within one <Svg> component, and only one of those shapes ( a Circle) is intermittent, the rest work (inlcuding another Circle) never fail.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:16

github_iconTop GitHub Comments

1reaction
MrLohcommented, Nov 29, 2018

This doesn’t seem to happen for me anymore. But much in my setup has changed.

• iOS 12.1 • react-native: 0.55.4 • react-navigation: 2.2.5 • react-native-svg: 6.2.1

1reaction
MrLohcommented, Dec 4, 2017

I found a workaround, my app reliably didn’t render any SVGs after pushing a screen anymore, which made it unusable.

I‘m now simply triggering a rerender of the SVG path, after it loaded by setting a new color value in a 0 timeout in componentDidMount.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intermittent Crash that we can not… | Apple Developer Forums
When running the App we have about 300 MB of free memory on the IPAD Pro 8 GB. The Crash logs are consistent....
Read more >
Troubleshooting iOS 11 Problems | OSXDaily
Unfortunately, problems may arise during an iOS software update, either when attempting to install, or with a failed installation, ...
Read more >
Common iPhone 11 Problems and How to Fix Them
Owners of Apple's iPhone 11 series have reported a variety of issues over time. Here are a few problems we've found and some...
Read more >
How to fix iPhone 11 no service error, calls and texts not working
First solution: Reboot your iPhone 11. · Press and hold both the Side and Volume Up buttons for a few seconds. · Release...
Read more >
OpenGL-ES, iPhone and intermittent error - Stack Overflow
I had this same problem. For me the fix was that in the opengl sample code of last year, Apple rebuilds the renderbuffer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found