thaliproject / postcardapp

A sample app to demonstrate how to build Thali applications
MIT License
22 stars 5 forks source link

Cordova WKWebView@1.0.1 and Camera@2 iOS 9 photo glitch #104

Open deadlyfingers opened 8 years ago

deadlyfingers commented 8 years ago

Sometimes after taking a photo and tapping 'Use Photo' results in being stuck in a white screen. Error log:

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
Communications error: <OS_xpc_error: <error: 0x19bae4af0> { count = 1, contents =
    "XPCErrorDescription" => <string: 0x19bae4e50> { length = 22, contents = "Connection interrupted" }
}>

Using iOS9 on iPhone 6+. Worth noting this bug did not occur with Camera@1 plugin and UIWebView

deadlyfingers commented 8 years ago

This is a very strange bug as it happens now and again while testing and am having trouble recreating reliably. I'm looking for certain conditions that might trigger it for example:

I've submitted the camera@2 iOS issue here: https://issues.apache.org/jira/browse/CB-10179

deadlyfingers commented 8 years ago

We might use HTML5 instead to capture images #105

deadlyfingers commented 8 years ago

Fixed in Cordova camera@2.1.0 plugin update - https://cordova.apache.org/news/2016/01/19/plugins-release.html

jpike88 commented 8 years ago

This was not fixed, that bug fix is regarding an actual app crash, not the WKWebView white screen issue.

jpike88 commented 8 years ago

Relevant:

https://github.com/Telerik-Verified-Plugins/WKWebView/issues/41

jaredgreener commented 8 years ago

This is an error for us as well -- crashes everytime the camera opens with this error:

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. 2016-05-13 16:46:39.215 SalesRoutes[910:104605] Communications error: <OS_xpc_error: <error: 0x3747f654> { count = 1, contents = "XPCErrorDescription" => <string: 0x3747f854> { length = 22, contents = "Connection interrupted" } }>

Seems to only happen on my iPad mini and not iPad air

marcorivm commented 7 years ago

I think I'm having the same issue, did you managed to fix it?

yaronyg commented 7 years ago

Alas we haven't touched this code in many months. We are trying to get the underlying system to actually work first. :)