I have a Phonegap application that works great on iPads with iOS5 (like the original iPad), as well as various iPhone and iPod Touch options; as well as tablets and Android phones. The only population that gets this error is iPads with iOS6. For what it's worth, I personally tested on two different iPad Minis, but I donβt have a 10 "iPad2 with which to test, and the client reports the same problem on a full-sized iPad 2 [retina] ...
Also worth noting: I am using the Phonegap: Build service .
Application crash more or less instantly; before the screen saver appears. After a failure, the console displays the following error:
<Error>: *** Application termination due to the uncaught exception "CALayerInvalidGeometry", reason: "CALayer position contains NaN: [nan nan] '
*** First stack of throw calls:
(0x33efd2a3 0x3bda897f 0x33efd1c5 0x35ab197b 0x35ab18a3 0x35ab1833 0x35d06aed 0x35d06815 0x35d06753 0x974d9 0x971eb 0x96d77 0x9763f 0x9d67d 0x9d8f1 0x9bd91 0x71fa5 0x35d24595 0x35d64d79 0x35d60aed 0x35da21e9 0x71d07 0x35d65ad9 0x35d65663 0x35d5d84b 0x35d05c39 0x35d056cd 0x35d0511b 0x37a105a3 0x37a101d3 0x33ed2173 0x33ed2117 0x33ed0f99 0x33e43ebd 0x33e43d49 0x35d5c485 0x35d59301 0x71ac7 0x71aa0)
I reported this issue to Adobe , but they have not yet confirmed this issue. I have also searched quite a lot on googled, and I cannot find many cases where people get this error using Phonegap. Just this one , asked (bad?) 5 days ago and with 0 answers ...
Of course, there are many instances of [ 1 , 2 , 3 , 4 ] people who get a CALayerInvalidGeometry exception when encoding native Objective-C, but I do not find anything that can be used in the Phonegap application.
Given that the application works fine on iPad, iPhone, iPod Touch, and Android phones and tablets, I am inclined to believe that the problem is due to a bug in Phonegap: Build. Is there something I can do to test this hypothesis?
Does anyone have any tips for things I could try to fix or get around it?