{ "id": "63925", "key": "TIMOB-3293", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-09-05T15:49:24.000+0000", "created": "2011-04-15T03:41:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "reported-1.6.0" ], "versions": [], "issuelinks": [ { "id": "20626", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T18:26:47.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": "{html}

Version: Titanium 1.6.0

\n

The titanium mobile codebase assumes that a root activity always\nexists. This assumption is not true in all scenarios (such as when\na service is started from native code) and causes titanium to\ncrash.

\n

For example:

\n

TitaniumModule.require() crashes on TiContext ctx =\ninvocation.getTiContext().getRootActivity().getTiContext().
\nBackground javascript services are thus unable use native android\nmodules (a significant issue since this is the only supported way\nto extend Titanium functionality)

{html}", "attachment": [], "flagged": false, "summary": "Ti Android architecture does not support background service invocation", "creator": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130495", "author": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to hopefully the correct person.

{html}", "updateAuthor": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:37.000+0000", "updated": "2011-04-15T03:41:37.000+0000" }, { "id": "130496", "author": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Reproduction steps (see \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/3292-...\nattachment for full source):

\n

Start \"Ticket3292 invoker\" app
\nKill \"Ticket3292\" app
\nSelect the \"Notification from another app\"
\n-> service crashes executing requires(). (the app does not crash\nwhen executing the same requires() from app.js)

\n

Note: the ticket title is misleading as it's just the assumption\nthat getRootActivity() will actually return something that is false\nbut the issue tracking system won't let me update the title to a\nmore apt one.

\n

My initial ticket had another error (app.js crashing after a\nbackground service was started) but as I have been unable to\nreproduce in test apps I submitted I've edited the ticket to drop\nthat component as I can't be sure it's a problem with Titanium and\nnot my module.

{html}", "updateAuthor": { "name": "danielcameron", "key": "danielcameron", "displayName": "Daniel Cameron", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:37.000+0000", "updated": "2011-04-15T03:41:37.000+0000" }, { "id": "217717", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "No test case provided, unable to reproduce, ticket marked as invalid.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-09-05T15:49:24.000+0000", "updated": "2012-09-05T15:49:24.000+0000" }, { "id": "415901", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Cannot Reproduce with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T18:26:47.000+0000", "updated": "2017-03-27T18:26:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }