<Error>: CGAffineTransformInvert: singular matrix.
…reported in my app's log while I was testing my use of the WebKit widget (UIWebView class) to display HTML.
The "CG" means CoreGraphics, Apple's intense pixel-bending technology. One fellow on the internets says the issue is related to matrix math:
Probably you tried to use singular transformation matrix somewhere in your code. You should check your transformation matrices and avoid matrices like:Blah, blah, blah… All I did was try to load a web page. I'm not doing any graphics work.
0 0 0
0 0 0
0 0 1
and others - check out Google how to tell singular 3x3 matrix (hint: it has determinant = 0).
I tried all kind of folk remedies related to my use of the UIWebView widget, but nothing worked.
Long story, short…
For this testing, I had randomly picked "http://www.Yahoo.com/" out of thin air as an arbitrary page. This error occurred repeatedly on every run. Eventually I switched to Google.com, no problem. Reuters.com, no problem. SeattleTimes.com, no problem. Go back to Yahoo.com, problem. And problem happens repeatedly while scrolling.
Poor Yahoo can't seem to get anything right anymore.