{ "id": "171749", "key": "TIMOB-26141", "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": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-29T22:22:06.000+0000", "created": "2018-06-06T03:54:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy", "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-29T22:22:09.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": "When building an Alloy app with Ti SDK 7.1.1 accessing `Titanium.App.Android.R` causes the logs to trow errors:\r\n\r\n{code:java}\r\n[ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0\r\n[ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0\r\n{code}\r\n\r\nHow to reproduce:\r\n\r\n1. Create new Alloy app\r\n2. Add the following code below in alloy.js:\r\n3. Build\r\n4. See errors in logs.\r\n\r\n{code:java}\r\nTi.API.info(\"Hyper Hello\");\r\nTi.API.info(Titanium.App.Android.R);\r\n{code}\r\n\r\nLogs:\r\n{code:java}\r\n[INFO] Hyper Hello\r\n[ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0\r\n[ERROR] JavaObject: !!! OH NO! We tried to grab a Java Object back out of the reference table, but it must have been GC'd, because it's null! Key: 0\r\n[INFO] [object R]\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Accessing Titanium.App.Android.R logs GC errors", "creator": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.2\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 8.1.2\r\n npm Version = 3.10.10\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.0\r\n\r\nTitanium SDK\r\n SDK Version = 7.1.1.GA\r\n SDK Path = /Users/Library/Application Support/Titanium/mobilesdk/osx/7.1.1.GA\r\n Target Platform = android\r\nTarget Device: Genymotion Google Nexus 5 - Android 6.0.0", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438244", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, we can reproduce the issue, At the moment, \r\nwe don't know why it's happening but seems harmless at the moment. It doesn't break the app or cause a crash. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-06-08T09:58:58.000+0000", "updated": "2018-06-08T09:58:58.000+0000" }, { "id": "438460", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why would you mark this as resolved? Yes its not causing issues but its not \"Resolved\"", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-18T03:11:14.000+0000", "updated": "2018-06-18T03:11:14.000+0000" }, { "id": "438547", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is indeed a valid issue and should be looked into. It may be an issue with our V8 binding (cc [~cwilliams], [~gmathews]) and also happens for random Hyperloop examples (using the hyperloop-examples app) on SDK 7+ only.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-20T10:48:01.000+0000", "updated": "2018-06-20T10:48:01.000+0000" }, { "id": "438644", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10129", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-22T17:58:29.000+0000", "updated": "2018-06-22T17:58:29.000+0000" }, { "id": "439370", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix in SDK Version: {{7.4.0.v20180718223310}}\r\n\r\n*FR Passed (Test Steps):*\r\n# Created a titanium application with the following code \r\n{code:java}\r\nTi.API.info(\"Hyper Hello\");\r\nconsole.log(Ti.App.Android.R);\r\n{code}\r\n# Ran the program\r\n# Application no longer showed a GC error\r\n \r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\nNexus 6p Emulator (8.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-20T15:30:25.000+0000", "updated": "2018-07-20T15:30:25.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }