Telerik Forums RSShttp://www.telerik.com/urn:uuid:b8ff1ada-cc27-4dc6-9f7f-18fdcd87e5b5http://www.telerik.com/forums/permalink/2hr_uCfMxk2ffxj9zYfltQCamera crashing bugHi Nader,<br />
<br />
If I understand correctly, the app now works if you build it in AppBuilder but does not work when you build it through XCode/Eclipse? If you are trying to build the project outside of AppBuilder you need to make sure that you add the Camera plugin manually to it, to create the needed configuration files with the required permissions (specifically the one to use the camera), etc. This is done automatically by AppBuilder and if the error occurs only outside of AppBuilder, it is most probably due to a missing configuration setting.<br />
<br />
Regards,<br />
Tsvetina <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p><a href="http://plugins.telerik.com/">Visit the Telerik Verified Plugins Marketplace</a> and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:d2cd1097-8cd1-4f2f-b98c-c6f95832cebdhttp://www.telerik.com/forums/permalink/lxDN0tGML0-5jMb5WDLOvQCamera crashing bugHi&nbsp;Tsvetina,<br />
<br />
I have already tried changing the quality of the captured image with no luck. I have even tried setting it to 20, but the app would continue to crash upon capturing an image.<br />
The strange thing is that it worked when I rebuilt my project using AppBuilder, but the same issue is still persistent when the same project is built using XCode and Eclipse.<br />
<br />
Any thoughts on why such a thing would happen?<br />
<br />urn:uuid:0e7ec2da-0336-44c1-8deb-47b93282dfd6http://www.telerik.com/forums/permalink/2sJ-DjYDwUSN60e5MoLf1gCamera crashing bugHi Nader,<br />
<br />
Another thing that you can try is to lower the image quality of the picture taken by setting the&nbsp;<strong>​quality</strong>​ option to 50, as shown in the examples in the <strong><a href="http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html" target="_blank">getPicture</a></strong><a href="http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html" target="_blank"> method documentation</a>:<br />
<br />
<div class="tFormatCodeBlock supportThreadCodeBlock" style="border: 1px solid #7f9db9; overflow-y: auto;" id="highlighter_31969">
<div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;">navigator.camera.getPicture(onSuccess, onFail, { quality: 50, </code></span></div>
<div style="background-color: #f8f8f8;"><span><code>&nbsp;&nbsp;&nbsp;&nbsp;</code><span style="margin-left: 12px !important;"><code style="color: #000000;">destinationType: Camera.DestinationType.FILE_URI });</code></span></span></div>
</div>
<br />
The behavior of the app on different devices still sounds as if an out of memory exception occurs and the OS kills or restarts the app. So you should be looking for any settings or actions that may lead to the use of too much memory by the app. Processing large images (with high quality) is one such option.<br />
<br />
Regards,<br />
Tsvetina <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p><a href="http://plugins.telerik.com/">Visit the Telerik Verified Plugins Marketplace</a> and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:19afc2cb-aca5-4764-920e-0feda84dc545http://www.telerik.com/forums/permalink/y8KvGaWsZEeSDg_tqE3FRQCamera crashing bugHi&nbsp;Tsvetina,<br />
<br />
I am currently using the FILE_URI as the destination type, but still it does not seem to work. As a matter of fact, I need to use the FILE_URI as I need to upload the captured photo afterwards.<br />
<br />
I have tried my code on the following devices with the following results:<br />
1- iPhone 4S - iOS7, the app crashes after taking a photo<br />
2- Samsung Galaxy S3 - Android 4.2, the app crashes after taking a photo<br />
3- iPhone 5 - iOS7, the app works as expected and I am able to take pictures without any issues<br />
<br />
I also tried building my app in XCode and Eclipse, but still got the same results.urn:uuid:85c304af-8bf0-4088-bfe3-99e02ec98d37http://www.telerik.com/forums/permalink/rwTDhfCLiEC_45ngLsmNNwCamera crashing bugHello Nader,<br />
<br />
Have you tried the suggestion provided in <a href="http://www.telerik.com/forums/cordova-camera-sample-crashes-after-picture-taken#YS3upuBdQUqwvLP4G5Wf5g" target="_blank">this forum post</a>? The description that you give exactly fits the scenario this post discusses.<br />
<br />
Regards,<br />
Tsvetina <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p><a href="http://plugins.telerik.com/">Visit the Telerik Verified Plugins Marketplace</a> and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:7cc34b96-1c33-4d67-93b9-aa401854b9e4http://www.telerik.com/forums/permalink/lkvDfDMcZ02TuapAGFS55ACamera crashing bugLately I have been experiencing a bug with the photo capture API, where the app would crash when taking a photo using the camera, and it would sometimes refresh the app on android devices and force close the app on iOS devices. I tried to debug the app using the "iPhone Configuration Utility" but have not been able get any error logs regarding the crash.