{ "id": "85561", "key": "TIMOB-7434", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-03-12T14:38:12.000+0000", "created": "2012-01-26T15:13:16.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-and012312", "qe-and021312" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15670", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87067", "key": "TIMOB-7831", "fields": { "summary": "Android: Master/Detail Application Template: console logs JNI: DeleteGlobalRef(0xdebcce57) failed to find entry warnings", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15669", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87443", "key": "TIMOB-7897", "fields": { "summary": "Android: Memory leak by windows not properly cleaning up after close.", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15410", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86833", "key": "TIMOB-7775", "fields": { "summary": "Android: Master/Detail Template: intermittent crash on use", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15411", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86904", "key": "TIMOB-7795", "fields": { "summary": "Android: RSS Reader Sample: lock-up on use with nativeview is null warning", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16469", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "89725", "key": "TIMOB-8635", "fields": { "summary": "Android: KitchenSink-Nook: ANR when Table Views > Append Row test is first clicked", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:03:00.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Description:\r\nWhile testing Kitchensink for about 30-45 minutes, the Droid 1 with a V8 compile crashed. Almost simultaneously the Nexus S with Rhino compile started logging Garbage collection notifications, then crashed. Crash trace files are attached for each device. I attempted to reproduce the crashes by performing a subset of the preceding tests but was unable to. \r\n\r\nConsole out for each device:\r\n\r\n{code} \r\nDroid V8\r\n\r\nE/ActivityManager( 1096): ANR in com.appcelerator.titanium (com.appcelerator.titanium/.KitchensinkActivity)\r\nE/ActivityManager( 1096): Reason: keyDispatchingTimedOut\r\nE/ActivityManager( 1096): Load: 0.21 / 0.43 / 0.28\r\nE/ActivityManager( 1096): CPU usage from 7351ms to 2220ms ago:\r\nE/ActivityManager( 1096): system_server: 13% = 10% user + 3% kernel / faults: 1515 minor\r\nE/ActivityManager( 1096): droid.gallery3d: 3% = 2% user + 0% kernel / faults: 796 minor 1 major\r\nE/ActivityManager( 1096): e.process.gapps: 1% = 1% user + 0% kernel / faults: 104 minor\r\nE/ActivityManager( 1096): battd: 0% = 0% user + 0% kernel / faults: 5 minor\r\nE/ActivityManager( 1096): putmethod.latin: 0% = 0% user + 0% kernel / faults: 51 minor\r\nE/ActivityManager( 1096): erator.titanium: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): events/0: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): omap2_mcspi: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): cpcap_irq/0: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): akmd2: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): oid.voicesearch: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): torola.calendar: 0% = 0% user + 0% kernel / faults: 14 minor\r\nE/ActivityManager( 1096): d.process.media: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): com.amazon.mp3: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 1096): ogle.android.gm: 0% = 0% user + 0% kernel / faults: 2 minor\r\nE/ActivityManager( 1096): TOTAL: 21% = 16% user + 5% kernel + 0% irq\r\n{code}\r\n\r\n{code}\r\nNexus S Rhino\r\n\r\nE/ActivityManager( 110): ANR in com.appcelerator.titanium (com.appcelerator.titanium/org.appcelerator.titanium.TiActivity)\r\nE/ActivityManager( 110): Reason: keyDispatchingTimedOut\r\nE/ActivityManager( 110): Load: 4.85 / 3.01 / 2.27\r\nE/ActivityManager( 110): CPU usage from 11668ms to 4ms ago with 99% awake:\r\nE/ActivityManager( 110): 93% 2203/com.appcelerator.titanium: 87% user + 5.9% kernel / faults: 2356 minor\r\nE/ActivityManager( 110): 5% 110/system_server: 1.3% user + 3.6% kernel / faults: 10 minor\r\nE/ActivityManager( 110): 0% 14/kondemand/0: 0% user + 0% kernel\r\nE/ActivityManager( 110): 0% 52/gp2a_wq: 0% user + 0% kernel\r\nE/ActivityManager( 110): 0% 176/dhd_dpc: 0% user + 0% kernel\r\nE/ActivityManager( 110): 0% 179/com.android.systemui: 0% user + 0% kernel / faults: 4 minor\r\nE/ActivityManager( 110): 0% 249/wpa_supplicant: 0% user + 0% kernel\r\nE/ActivityManager( 110): 98% TOTAL: 88% user + 9.9% kernel\r\nE/ActivityManager( 110): CPU usage from 271ms to 785ms later:\r\nE/ActivityManager( 110): 92% 2203/com.appcelerator.titanium: 90% user + 1.9% kernel / faults: 162 minor\r\nE/ActivityManager( 110): 64% 2211/KrollRuntimeThr: 64% user + 0% kernel\r\nE/ActivityManager( 110): 17% 2205/GC: 17% user + 0% kernel\r\nE/ActivityManager( 110): 9.8% 2464/er$SensorThread: 7.8% user + 1.9% kernel\r\nE/ActivityManager( 110): 5.8% 110/system_server: 0% user + 5.8% kernel\r\nE/ActivityManager( 110): 1.9% 121/system_server: 0% user + 1.9% kernel\r\nE/ActivityManager( 110): 1.9% 147/InputDispatcher: 0% user + 1.9% kernel\r\nE/ActivityManager( 110): 98% TOTAL: 90% user + 7.8% kernel\r\n{code}\r\n\r\nSteps to reproduce:\r\n1) Install Kitchensink compiled with 1.0.8.201201210622\r\n2) Run through each test sequentially\r\n3) Observe the console output\r\n\r\nResult:\r\nThe devices either report GC activity and then crash, or simply crash\r\n\r\nExpected:\r\nNo crash, normal GC activity", "attachment": [ { "id": "25916", "filename": "kindle fire v8 1.8.2.X log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-25T13:08:23.000+0000", "size": 42944, "mimeType": "text/plain" }, { "id": "25917", "filename": "kindle fire v8 1.8.2.X traces.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-25T13:08:23.000+0000", "size": 75321, "mimeType": "text/plain" }, { "id": "25352", "filename": "tracesDroidv8.txt", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T15:13:16.000+0000", "size": 102853, "mimeType": "text/plain" }, { "id": "25353", "filename": "tracesNexSRhino.txt", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T15:13:16.000+0000", "size": 48010, "mimeType": "text/plain" }, { "id": "25356", "filename": "V8console.rtf", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T17:35:59.000+0000", "size": 66967, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: V8 & Rhino - keyDispatchingTimedOut logged then crash", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS: Mac OS X (10.7.2)\r\nSDK: 1.8.1.v20120125154634\r\nTitanium Studio, build: 1.0.8.201201210622\r\nNexus S (2.3.6)\r\nDroid 1 (2.2.3)", "comment": { "comments": [ { "id": "180765", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional note, on the Nexus S Rhino compile, after the crash, I selected Kill. Even as the device sat on the home screen, the following continued to log over and over, almost 24,000 times before I pulled the cable. This may just be the result of the crash putting the device in a bad state, but in case there is value here:\r\n{code}\r\n\r\nW/TiJSError( 2672): (main) [2,266411] Activity is null or already finishing, skipping dialog.\r\nE/RhinoObject( 2672): (KrollRuntimeThread) [4,266415] TypeError: Cannot find default value for object. (/tmp/events.js#94)\r\nE/RhinoObject( 2672): org.mozilla.javascript.EcmaError: TypeError: Cannot find default value for object. (/tmp/events.js#94)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3784)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3762)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3790)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3802)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:942)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:861)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:794)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3871)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2359)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2326)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.runtime.rhino.js.events._c_anonymous_3(/tmp/events.js:94)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.runtime.rhino.js.events.call(/tmp/events.js)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/RhinoObject( 2672): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.runtime.rhino.js.events.call(/tmp/events.js)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.runtime.rhino.RhinoObject.fireEvent(RhinoObject.java:73)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:441)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:602)\r\nE/RhinoObject( 2672): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/RhinoObject( 2672): \tat android.os.Looper.loop(Looper.java:130)\r\nE/RhinoObject( 2672): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:102)\r\n{code}", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T15:26:27.000+0000", "updated": "2012-01-26T15:26:27.000+0000" }, { "id": "180794", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm looking at the **RHINO** part. Someone is very welcome to look at the V8 part simultaneously. As there is only one ticket, I'll take it for now.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-26T16:45:23.000+0000", "updated": "2012-01-26T16:45:23.000+0000" }, { "id": "180798", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Further info from eric, in Rhino here's what was happening at one of the lockups:\r\n\r\n D/Module ( 2203): Loading module: ../examples/accelerometer -> Resources/examples/accelerometer.js for Rhino", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-26T17:00:17.000+0000", "updated": "2012-01-26T17:00:17.000+0000" }, { "id": "180803", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FOR V8:\r\nRelevant information since these are potentially different issues:\r\nI encountered a runtime error in a picker test where it allows you to remove various items from the list and will error when it runs out. I killed the app and used Settings>Applications>Force quit and then erased application data. I also encountered a geolocation error since the device was left pointing to our staging network environment. I fixed the wifi setting and continued. Shortly after I got the crash. Just reviewed this with Hieu. Attaching file \"V8console\" for more detail. Hieu suggested I retry the error prior to getting the crash. Will update.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T17:26:03.000+0000", "updated": "2012-01-26T17:26:03.000+0000" }, { "id": "180811", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FOR V8: \r\nAttempted to reproduce the error with geolocation that preceded the ANR. I was unsuccessful but ran through a few of the KS tests prior to the ANR. I could not reproduce the ANR either.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T18:05:44.000+0000", "updated": "2012-01-26T18:05:44.000+0000" }, { "id": "180821", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "(RHINO) I can't reproduce the problem, but the rhino trace from Eric shows that the KrollRuntimeThread gets suspended somehow when event.js line 42 calls {{handler.call}}, which leads to Rhino's ScriptRuntime calling {{getPropFunctionAndThis}} (see [Rhino code|https://github.com/appcelerator/rhino_titanium/blob/master/src/org/mozilla/javascript/ScriptRuntime.java#L2306]), which _I think_ means trying to find {{call}} in {{handler}}. If you look at {{getPropFunctionAndThisHelper}} in Rhino (just below {{getPropFunctionAndThis}}), you'll see there are plenty of places where exceptions can be thrown, such as if {{call}} isn't found or it's not callable. This could happen if {{handler}} is {{undefined}} or {{null}}, I imagine.\r\n\r\nAnyway, I fear this may be happening because of an attempt to call a null/undefined handler. But it's not clear to me why -- if there is an exception being thrown from Rhino-- we don't get a chance to deal with it (don't we have some kind of global exception handler in Rhino?)\r\n\r\nSo I'm submitting a pull request that protects us from what I'm describing, but as I can't reproduce it, I'm not sure what we'll do for functional testing it. Maybe Eric can re-do a couple of passes on KS on his failing device.\r\n", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-26T19:36:47.000+0000", "updated": "2012-01-26T19:37:16.000+0000" }, { "id": "180823", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "(V8) Just from looking at the trace (I haven't done anything else since I'm working on Rhino), it seems that this is a case where the application has been backed-out-of and there are still geolocation events happening, then the application is being re-entered. While it's re-entering and re-initing the runtime, another geolocation event fires. Some sort of deadlock then occurs.\r\n\r\nIt seems like one opportunity for deadlock would be if V8Object.cpp's {{Java_org_appcelerator_kroll_runtime_v8_V8Object_nativeFireEvent}} hit line 104 where it tries {{V8Util::openJSErrorDialog(tryCatch);}} which presumably tries to do something on the main thread, which is waiting for the {{waitForInit}} latch.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-26T19:54:20.000+0000", "updated": "2012-01-26T19:54:34.000+0000" }, { "id": "180825", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready for RHINO portion\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/1286", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-26T20:17:02.000+0000", "updated": "2012-01-26T20:17:02.000+0000" }, { "id": "180920", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "(RHINO) Now that I'm using a device (the only Android handheld I have, a crappy 2.2 HTC Desire that's almost two years old) instead of emulator, it's actually very easy to re-create the lockup in Rhino:\r\n\r\n1) Enter KitchenSink.\r\n2) Go to Phone.\r\n3) Go to Geolocation. After a bit in there, go back.\r\n4) Go to Accelerometer. After a bit in there, go back.\r\n5) Back out of KS altogether.\r\n6) Go back in to KS. Here it locks.\r\n\r\nWith my patch (PR 1286), it doesn't lockup.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-27T11:59:19.000+0000", "updated": "2012-01-27T11:59:19.000+0000" }, { "id": "182549", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "will close on next deep pass", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T08:58:12.000+0000", "updated": "2012-02-09T08:58:12.000+0000" }, { "id": "184290", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening.\r\nSDK: 1.8.2.v20120223174636\r\nAndroid: V8\r\nStudio: 1.0.9.201202141208\r\nOS: Snow Leopard\r\nDevices Tested: Kindle Fire 2.3.3\r\n\r\nKitchen Sink Nook performance gradually slows down, followed by an eventual crash.\r\n\r\nLog and stack trace attached.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-25T13:08:06.000+0000", "updated": "2012-02-25T13:08:06.000+0000" }, { "id": "185853", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to consistently reproduce this issue on V8 on 2.3.3 device. ANR is basically a time out for Android main thread. In other words, if the main thread is not responding for more than 5 seconds, ANR will occur. In this case, ANR is caused by leaking memory. When heap size approaches the limit, performance drastically decreases. I was able to reproduce this by leaking memory on purpose by repeatedly open/closing Base UI -> Views -> ImageViews -> Image View(layout 2) until my heap was 23/24mb. Here's one of the logs:\r\nhttp://pastie.org/private/cuy3dvuwxytvf9sqyrqnkq\r\n\r\nAt about 20/24mb, the app takes roughly 3-4 seconds to respond to my clicks, so I'm not surprised that it will take 5+ seconds at 23/24mb.\r\n\r\nBased on these findings, and analysis of the most recent log/trace, this issue is mostly likely a side effect of memory leaks. I'll be linking this bug with other memory related bugs, so we can re-visit this after those memory issues are fixed.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T16:57:08.000+0000", "updated": "2012-03-09T17:02:34.000+0000" }, { "id": "186079", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The general ANR error can be caused by a number of factors, including:\r\n1) Running out of heap space\r\n2) Indefinitely blocking the main thread\r\n\r\nThe most recent re-open of this issue is primarily concerned with the ANRs found from TIMOB-7897\r\n\r\nSince ANRs can be caused by many factors, it would be best if we opened separate ANR issues for each test case that we encounter them in, since there might be different underlying causes", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-12T14:38:12.000+0000", "updated": "2012-03-12T14:38:12.000+0000" }, { "id": "415075", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket has been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:03:00.000+0000", "updated": "2017-03-22T22:03:00.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }