Description:
TIMOB-18214 was reported and contains two distinct issues. This ticket is being created to track one of those items. This ticket was created using original information from TIMOB-18249. Since the two tickets seem unrelated, this ticket was split out from that ticket, leaving that ticket to track the crashing issue.
When using the code sample below, and running on iOS 8.1.1 devices, the console will show the following unexpected output:
Dec 16 13:07:54 Data-nerd timob18214[386] <Error>: assertion failed: 12B435: libxpc.dylib + 51955 [6D3E948A-39BD-3548-AA90-38575933BDEF]: 0x7d
Dec 16 13:07:54 Data-nerd Unknown[386] <Error>:
Dec 16 13:07:56 Data-nerd timob18214[386] <Warning>: 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.
Steps to reproduce:
1) Create or edit a project to use the code sample
2) Build and run on iOS 8+ device
3) Launch on device and observe console
Result:
Unexpected output as shown above
Expected Result:
No unexpected output
Notes
This does not occur with iOS 7.0.3, 7.1.1, or 7.1.2
*THIS IS NOT A REGRESSION* Occurs in SDK 3.4.1.GA
Code sample
(function() {
Titanium.Media.showCamera({
success : function(event) {
var capturedImage = event.media;
Ti.API.info('Image Captured, Dims: ' + event.media.width + ',' + event.media.height + " Aspect Ratio: " + event.media.width / event.media.height);
Ti.API.info('Image Captured, Dims: ' + capturedImage.width + ',' + capturedImage.height + " Aspect Ratio: " + capturedImage.width / capturedImage.height);
},
cancel : function() {
},
error : function(error) {
},
saveToPhotoGallery : false,
allowEditing : false,
mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
showControls : true,
autohide : false
});
})();
Closing ticket as "Won't Fix".