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

iOS not loading image -> <error>: CGAffineTransformInvert: singular matrix. #87

Open
Axort opened this issue Aug 19, 2017 · 6 comments
Open

Comments

@Axort
Copy link

Axort commented Aug 19, 2017

Hi!

Sometimes In iOS the images doesn't load. In Android works perfectly.

I'm using:
react-native: 0.45.1
react-native-photo-view@1.4.0

This is my code:

<PhotoView 
                source={{uri: this.props.photo.url}} 
                minimumZoomScale={1}
                maximumZoomScale={3}
                androidScaleType='fitCenter'
                onLoad={() => this.setState({ imageLoading: false })}
                onLoadStart={() => console.log('download started')}
                onLoadEnd={() => console.log('download ended')}
                style={styles.imageFullScreen} />

I noticed that when the images don't load, the console show this error:

: CGAffineTransformInvert: singular matrix.

Also when the image loads successfully, the 'download started' console log appears. When the image fail to load, it only shows the 'download ended' console log.

Am i doing something wrong? or is there a property am I missing?

Thanks in advance.

@samanthacampisi
Copy link

I can confirm this

@zackify
Copy link

zackify commented Aug 25, 2017

Not seeing the error, but every few times you view an image it will return a black area after onLoadEnd

@srameshr
Copy link

Yes! Same here. I can confirm this. I dont see any logs in the simulator logger when the image fails to load. Just a blank screen. My images are being served over https.
Did anyone find a solution for this?

@igMartin
Copy link

igMartin commented Aug 31, 2017

Same issue here guys. I discover that if I change the image, it would load perfectly the first time. If I navigate, changing route and go back (or either refresh the app), it will show a black area. When tapping in the black area where the image is supossed to be it yields:
Error calling RCTEventEmitter.receiveEvent folly::toJson: JSON object value was a NaN or INF
If I change the image for a new one, it will work again (until I change route or reload, then the black box again.) Couldn't find a solution yet.

@srameshr
Copy link

@igMartin Same here. Both on 1.3.x and 1.4.x

@fschai89
Copy link
Contributor

fschai89 commented Dec 4, 2017

I also face same problem, the image sometimes load sometimes not load in IOS.

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

6 participants