{ "id": "62486", "key": "TIMOB-1854", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:21.000+0000", "created": "2011-04-15T03:04:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "crash", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:21.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

1.pull from head to get 1.4.2
\n2.create a simple iphone or ipad project
\n3.install and launch on device

\n

results: crash on launch no crash logs seem to be produced.

{html}", "attachment": [], "flagged": false, "summary": "iOS: 1.4.2 - app on device crashes on launch", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126835", "author": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

One this I have noticed is the applications that are created for\nan iOS device do not contain the app.js file as a resource. The\nversion that runs in the simulator loads app.js by using a relative\npath that goes outside of the actual application and it runs.\nHowever a compiled application for the device has the images and\nother resources but not app.js. I set a breakpoint in\nKrollBridge.mm / didStartNewContext around line 482 and noted that\nstartURL is expecting that app.js is in the apps folder but the\nfile is missing. The XCode project does not have app.js listed as a\nresource of the target either.

\n

I do have a crash log if you need one.

{html}", "updateAuthor": { "name": "johnmcknight(atyahoo)", "key": "johnmcknight(atyahoo)", "displayName": "johnmcknight (at yahoo)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:00.000+0000", "updated": "2011-04-15T03:04:00.000+0000" }, { "id": "126836", "author": { "name": "randyhall", "key": "randyhall", "displayName": "Randy Hall", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Some additional information and crash logs if needed here:\n\nhttp://developer.appcelerator.com/question/64041/142-splash--crash

{html}", "updateAuthor": { "name": "randyhall", "key": "randyhall", "displayName": "Randy Hall", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:00.000+0000", "updated": "2011-04-15T03:04:00.000+0000" }, { "id": "126837", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This was fixed a while back but this needed a cleaning which the\ncontinuous build didn't do until the latest one (r5949bc72).

\n

If you're pulling from HEAD, you MUST delete iphone/lib/7.txt,\niphone/lib/8.txt AND iphone/lib/TiJSCore.a in order to revert to\nthe working library.

\n

Long version:

\n

1.4.0 had TiJSCore v7, which gave those scary but harmless\nwarnings in iOS 4.1, so I recompiled TiJSCore to use the more\nmodern mmap functions. This recompile is known as TiJSCore v8.\nHowever, because the newer mmap functions, despite having the same\nargs, doesn't allow for readwrite and execute on the same memory\npage in iOS 4.0.2 and later, v8 would crash on newer OSes. More\nspecifically, the OS would force the app to quit as a security\nmeasure. I never saw this because, when running from\nxCode/debugging, the debugger overrides this security, so it'd run\nfine for me.

\n

Since then, I reverted back to v7, so we have scary but harmless\nwarnings again, but the code works. HOWEVER, the way scons works is\nto see that the library had been downloaded in the past. Since it\nsees 7.txt, it won't replace v8 with v7.

\n

Since 1.4.1.1 was based on 1.4.0 with changes into the python\nused by Titanium Developer, and not the runtime, 1.4.1.1 was\nblissfully unaware and unaffected by this issue.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:01.000+0000", "updated": "2011-04-15T03:04:01.000+0000" }, { "id": "126838", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

i pushed a fix also to SConstruct so this won't happen again.\nwill clean up old txt files.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:01.000+0000", "updated": "2011-04-15T03:04:01.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }