[TIMOB-7716] Android: Taking a picture crashes the app on a Samsung Galaxy S2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-10T23:44:17.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
Fix Version/s | Sprint 2012-05, Release 2.0.0 |
Components | Android |
Labels | module_media, qe-testadded |
Reporter | Junaid Younus |
Assignee | Josh Roesslein |
Created | 2012-02-17T16:50:05.000+0000 |
Updated | 2012-07-05T15:50:31.000+0000 |
Description
*The code*
Kitchen Sink from GitHub.
*Expected behavior*
When you navigate to 'Phone->Camera->Camera Basic' and then take a picture, it shouldn't crash.
*Actual behavior*
When you follow the steps above, it crashes the app.
*Other info*
-Same result with the following TiSDKs: 1.8.2.v20120217114657 and 2.0.0v20120217094635
-It doesn't matter if there is an SD card inserted or not, it crashes either way.
Also seems to happen on a Samsung Exhibit 4G.
NOTE: You have to push 'save' after taking the picture to cause KS to crash.
Testing code:
Testing steps: 1. Run the above code on galaxy S2 with / without "saveToPhotoGallery:true". 2. Click the button 3. Take a picture and click 'save' Expected result: With "saveToPhotoGallery:true", the picture should be in Gallery/Camera folder. Without "saveToPhotoGallery:true", the picture should be in Gallery/(Your application name) folder.
Reopened this ticket since it now crashes on other Android devices. Here is the crash log:
It crashes when you take a picture in kitchen sink. Tried it using the latest 2.0.0 CI build. This problem now occurs on a Samsung Exhibit 4G and a Droid Bionic. They both are running Android 2.3.x. If there's any other information you need from me, please let me know ASAP. Thanks.
Closed for now since we don't have a device in the office to reproduce.
Will open again once I found a device in the office.
We cannot reproduce this issue based on all the devices we have.
From the client: The Samsung Exhibit 4G worked multiple times. The Motorola Droid Bionic crashed on the first attempt. Log for Exhibit 4G: http://pastebin.com/nxsF2vGj Log for Droid Bionic: http://pastebin.com/rQVAGSBS
This might be due to getActivity() on MediaModule returning null. Cannot reproduce this issue on any of my testing devices to verify this is the cause of the bug.
This ticket was opened for Samsung Galaxy S2 and this issue has been fixed. Please open another ticket for Droid Bionic device.
Verified fixed with 2.0.0.v20120319003254 and Titanium Studio, build: 2.0.0.201203182248 on Samsung Galaxy S2. Verified with KS from master branch.