{ "id": "82179", "key": "AC-2817", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-28T06:46:47.000+0000", "created": "2011-11-01T02:48:35.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nApplication restarts after taking a photo with showCamera()\r\n\r\nh3. My thoughts\r\n\r\nI can confirm that this has to do with too little memory available.\r\n\r\nFor instance if I have many services/applications running along it will restart almost certain, while clearing up memory by stopping apps and services will make the camera return smoothly.\r\n\r\nh2. Test case\r\n\r\nInsert code here\r\n\r\n\r\n# Open up lots of applications/services ie. bring your phone to memory limit.\r\n# Calling Ti.Media.showCamera() opens the camera view correctly.\r\n# After taking a picture it is displayed just fine.\r\n# Now hitting the save-button from within the preview window the camera-app closes.\r\n\r\nWith a bit luck you will see your application's loading screen flashing up, then the app is restarted and the image taken is lost.\r\n\r\nNote: I have enclosed the full log as an attachment.\r\n\r\nThis is an extracted log from the device's message stream. There is no information about why or if the application has been closed, but it seems that the camera is not able to hand over the results.\r\n\r\nId of the app is unikoch.de.test.\r\n\r\n{code:lang=none}\r\n11-01 11:02:23.433: INFO/TiApplication(30030): (main) [0,0] checkpoint, app created.\r\n11-01 11:02:23.535: INFO/TiApplication(30030): (main) [105,105] Titanium 1.8.0 (2011/10/10 11:49 074cad3)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): (main) [253,384] Unable to message creator. finishing.\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): java.lang.RuntimeException: Can't marshal non-Parcelable objects across processes.\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.Message.writeToParcel(Message.java:433)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.IMessenger$Stub$Proxy.send(IMessenger.java:84)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.Messenger.send(Messenger.java:50)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiBaseActivity.handleSendMessage(TiBaseActivity.java:357)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiBaseActivity$2.run(TiBaseActivity.java:348)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.Handler.dispatchMessage(Handler.java:95)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiMessageQueue.sendMessage(TiMessageQueue.java:120)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiMessageQueue.post(TiMessageQueue.java:236)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiBaseActivity.sendMessage(TiBaseActivity.java:345)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:328)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.ActivityThread.access$1500(ActivityThread.java:117)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.Handler.dispatchMessage(Handler.java:99)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.os.Looper.loop(Looper.java:123)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at android.app.ActivityThread.main(ActivityThread.java:3687)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at java.lang.reflect.Method.invokeNative(Native Method)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at java.lang.reflect.Method.invoke(Method.java:507)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\n11-01 11:02:23.828: ERROR/TiBaseActivity(30030): at dalvik.system.NativeStart.main(Native Method)\r\n11-01 11:02:23.832: WARN/ActivityManager(128): Trying to launch unikoch.de.test/.UnikochActivity\r\n11-01 11:02:23.863: INFO/TiRootActivity(30030): (main) [0,0] checkpoint, on root activity create, savedInstanceState: Bundle[mParcelledData.dataSize=204]\r\n11-01 11:02:24.066: ERROR/TiApplication(30030): (main) [202,202] APP PROXY: [Ti.App]\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nQ&A: [camera crashes titainium application during low memory conditions|http://developer.appcelerator.com/question/122763/camera-crashes-titainium-application-during-low-memory-conditions]\r\n", "attachment": [ { "id": "23970", "filename": "full_log.txt", "author": { "name": "floschnell", "key": "floschnell", "displayName": "Florian Schnell", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-01T04:24:04.000+0000", "size": 76196, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Media - application restarts after taking a photo with showCamera()", "creator": { "name": "floschnell", "key": "floschnell", "displayName": "Florian Schnell", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "floschnell", "key": "floschnell", "displayName": "Florian Schnell", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile SDK 1.7.x and 1.8\r\n* Android 2.3.3\r\n* Titanium Studio, build: 1.0.5.201109091616\r\n* Samsung Galaxy S\r\n* Windows 7 64bit", "comment": { "comments": [ { "id": "177389", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket.\r\n\r\nPlease note the changes I have made to allow it to be accepted.\r\n\r\nThe only item that is missing is a simple test case, which must run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section.\r\n\r\nI will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-28T06:45:07.000+0000", "updated": "2011-12-28T06:45:07.000+0000" }, { "id": "177390", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "I forgot to mention, the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] is useful when raising tickets.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-28T06:45:59.000+0000", "updated": "2011-12-28T06:45:59.000+0000" }, { "id": "183584", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:18.000+0000", "updated": "2012-02-17T02:23:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }