Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6572] iOS: Debugger crashing during module debug

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T17:01:20.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Sprint 2012-02, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsmodule_debugger, qe-testadded
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-12-12T10:46:44.000+0000
Updated2012-02-03T14:11:06.000+0000

Description

It appears that certain modules are causing crashes with the debugger at this time. In particular, the relevant crash log excerpt is:
14 CoreFoundation 0x02ebc30a -[__NSCFDictionary setObject:forKey:] + 250
15 testModule 0x00328b88 -[TiDebugger sourceParsed:sourceId:context:] + 424 (TiDebugger.mm:2027)
So there could be problems with certain types of source checking when we crash.

Comments

  1. Stephen Tramer 2011-12-15

    Testing this fix (pull req 973) requires the following: * Testing against the provided sample app (available internally) * Testing against the following code for regressions before and after the fix: alert("durp durp durp"); * Test against the following code for regressions before and after the fix:
       var win = Ti.UI.createWindow({backgroundColor:'white'});
       var b = Ti.UI.createButton({
       	title:"Alert",
       	width:200,
       	height:40,
       	top:50
       });
       b.addEventListener('click', function() {
       	alert("durp durp durp");
       });
       win.add(b);
       var b2 = Ti.UI.createButton({
       	title:"Change alert",
       	width:200,
       	height:40,
       	bottom:50
       });
       b2.addEventListener('click', function() {
       	alert = function(e) {
       		Ti.API.info("durp durp durp");
       	};
       });
       win.add(b2);
       win.open();
       

    If alert() can be overriden before the fix, but not after, this is a *FAIL*

    If alert() cannot be overriden before the fix, but can after, this is a *PASS*

    If alert() has the same override behavior between versions, this is a *PASS*

  2. Blain Hamon 2011-12-16

    Functional test: Alert can be overridden after the fix. Either way, this is a PASS.
  3. Wilson Luu 2012-01-17

    Reopening issue. Internal sample app crashes in debug mode on: SDK build: 1.9.0.v20120117114633 Titanium Studio, build: 1.0.8.201201131907 OS: Mac OS X Lion (10.7.1) Device: iOS Simulator (5.0) Note: Was not able to obtain crash log.
  4. Michael Pettiford 2012-01-23

    Closing this issue; Tested with Ti Studio build 1.0.8.201201210622 Ti Mob SDK 1.9.0.v20120121223134 OSX Lion 10.7.2 iPhone Sim 5.0, iPhone 4 OS 5.0 Ran both the internal app in debug and normally, and tested against sample code in this ticket. Expected behavior on no crash is shown

JSON Source