[AC-5095] Titanium iOS app crashes after taking several photos using camera
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-08-29T20:31:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | iOS |
Reporter | ankur garha |
Assignee | Shak Hossain |
Created | 2017-07-18T19:42:02.000+0000 |
Updated | 2017-08-29T20:31:05.000+0000 |
Description
*Problem Description*:
Titanium App Crashes after some using camera for some time.
*Steps to Reproduce:*
Use the attached index.js code in a Alloy app.
Tiapp.xml below
<ios>
<use-jscore-framework>false</use-jscore-framework>
<min-ios-ver>8</min-ios-ver>
<use-auto-layout>true</use-auto-layout>
<plist>
<dict>
<key>NSContactsUsageDescription</key>
<string>Can we use to your contacts?</string>
<key>NSCameraUsageDescription</key>
<string>Can we use your camera?</string>
<key>NSCalendarsUsageDescription</key>
<string>Can we use your calendar?</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Can we save to your library?</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can we use your microphone?</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.homeinspectorpro.mobile</string>
<key>CFBundleURLSchemes</key>
<array>
<string>touchtest-hip-mobile</string>
</array>
</dict>
</array>
</dict>
</plist>
</ios>
Touch "open camera"
Zoom camera and Take picture
Touch "Use Photo"
Repeat steps 8-10 times.
*Actual Result*
App crashes during the process of taking picture in above scenario.
*Expected Results:*
App should work usual and should not crash.
*Operating System*
Name = Mac OS X
Version = 10.12.2
Architecture = 64bit
CPUs = 4
Memory = 8589934592
*Node.js*
Node.js Version = 6.3.1
npm Version = 3.10.3
*Titanium CLI*
CLI Version = 5.0.14
*Titanium SDK*
SDK Version = 6.1.0.GA
*Test device*: iPhone 5
*iOS* 9.2
Attachments
File | Date | Size |
---|---|---|
HIP Mobile_2017-07-18-122620_admins-iPhone.crash | 2017-07-18T19:33:25.000+0000 | 57925 |
index.js | 2017-07-18T19:35:47.000+0000 | 532 |
Issue is not happening on iPad 2 running on iOS 9.3.5
We've had this issue for a few years now. It seems better in iOS 10 but does still occur enough to really frustrate our users who are taking 300 to 1000 pics a day with our app.
We can reproduce this repeatedly and have had complaints from over a thousand users about it. What device were you testing it on?
Its happening for us a lots of times. You need to try it multiple times as its an intermittent issue. Seems like its happening due to memory leaks. For some iOS devices it happens after taking 20-25 photos and its happens for sure. In our app we have to take 100s of photos and hence we there is lose in data capture once we get a app crash. I've also attached the error snapshot. Just want to understand which device are you testing to reproduce it...
Hello, We are testing on iOS device: iPod 5G (9.3.5). We are unable to reproduce the issue.
Please test it on a normal iPhone or iPad. We can reproduce it on the test app on iOS 10 as well but it takes 30-40 pics before it crashes (probably a slow memory leak).
It's a very rare issue. Once I reproduced it when I take photo constantly at a very high speed. But it only one time happens at the several time attempts. I think it hangs the device camera, not the Appcelerator issue. Generally, the user does not take the photo such a high speed. Testeing Environment: Ti SDK: 6.1.2.GA iPhone 5s v10.3.3 Thanks
We get about 10-20 reports of it a day. We have thousands of users who use our mobile app for 6 to 10 hours a day to perform Home Inspections. They take anywhere from 100 to 500 photos a day (spread out on 3 separate jobs). We have guys saying it happens early on after only a few photos and guys who complain that it happens after 30-40 photos. We've had the issue for years and have never found a way to prevent it unfortunately but our competitors who aren't using Appcelerator are not having the issue.
Hello, We are not able to reproduce it as you describe. For us the issue happens only one time happens at the several time attempts. It will be helpful if you provide a video demonstration of this issue. We will be looking into that. Thanks.