{ "id": "160203", "key": "TIMOB-23410", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-31T21:18:13.000+0000", "created": "2016-05-12T13:08:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "defect", "qe-5.4.0" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "51838", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159498", "key": "TIMOB-23196", "fields": { "summary": "iOS: App crashes when using Expressions tab during debugging", "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": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-28T21:00:08.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": "I have attached a sample project that demonstrates this problem. When you run the app in Run mode the app works fine. When you run the app in Debug mode the app will crash at startup.\r\n\r\nThe crash is a result of this line of code in underscore.js:\r\n render = new Function(settings.variable || 'obj', '_', source);\r\n\r\nHere is the stack trace for the breakpoint I set and stepping over or into the line will crash the app.\r\n{code}\r\nThread [kroll$1] (Suspended (breakpoint at line 1261 in /AlloyTestProject/Resources/iphone/alloy/underscore.js))\t\r\n\ttemplate(text, data, settings) [underscore.js:1261]\t\r\n\t__alloyId5(e) [index.js:24]\t\r\n\ttrigger(events) [backbone.js:163]\t\r\n\t_onModelEvent(event, model, collection, options) [backbone.js:844]\t\r\n\ttrigger(events) [backbone.js:170]\t\r\n\tadd(models, options) [backbone.js:631]\t\r\n\tController() [index.js:70]\t\r\n\tcreateController(name, args) [alloy.js:232]\t\r\n\t[Top-level script] [app.js:3]\t\r\n{code}\r\n\r\nI have attached the crash log as well and here is the useful parts.\r\n{code}\r\nException Type: EXC_CRASH (SIGABRT)\r\nException Codes: 0x0000000000000000, 0x0000000000000000\r\nException Note: EXC_CORPSE_NOTIFY\r\n\r\nApplication Specific Information:\r\nterminating with uncaught exception of type std::out_of_range: basic_string\r\nabort() called\r\nCoreSimulator 209.19 - Device: iPad Retina - Runtime: iOS 9.3 (13E230) - DeviceType: iPad Retina\r\n\r\nThread 6 Crashed:: KrollContext\r\n0 libsystem_kernel.dylib \t0x074f4572 __pthread_kill + 10\r\n1 libsystem_pthread.dylib \t0x074bc654 pthread_kill + 101\r\n2 libsystem_c.dylib \t0x0725c65d abort + 156\r\n3 libc++abi.dylib \t0x0692cae7 abort_message + 151\r\n4 libc++abi.dylib \t0x0694d667 default_terminate_handler() + 272\r\n5 libobjc.A.dylib \t0x058610c9 _objc_terminate() + 127\r\n6 libc++abi.dylib \t0x0694ad0d std::__terminate(void (*)()) + 14\r\n7 libc++abi.dylib \t0x0694a72b __cxa_throw + 122\r\n8 libc++.1.dylib \t0x05c7a29d std::__1::__basic_string_common::__throw_out_of_range() const + 85\r\n9 libc++.1.dylib \t0x05c7a763 std::__1::basic_string, std::__1::allocator >::basic_string(std::__1::basic_string, std::__1::allocator > const&, unsigned long, unsigned long, std::__1::allocator const&) + 91\r\n10 com.demandware.alloytestproject\t0x003b410c TiDebuggerInterface::sourceParsed(TI::ExecState*, TI::SourceProvider*, int, WTI::String const&) + 524\r\n11 com.demandware.alloytestproject\t0x004b9f23 TI::JSGlobalObject::createEvalCodeBlock(TI::ExecState*, TI::EvalExecutable*) + 323\r\n12 com.demandware.alloytestproject\t0x0041d905 TI::EvalExecutable::create(TI::ExecState*, TI::SourceCode const&, bool) + 293\r\n13 com.demandware.alloytestproject\t0x004178a0 TI::DebuggerCallFrame::evaluateWithCallFrame(TI::ExecState*, WTI::String const&, TI::TiValue&) + 256\r\n14 com.demandware.alloytestproject\t0x00417792 TI::DebuggerCallFrame::evaluate(WTI::String const&, TI::TiValue&) const + 34\r\n15 com.demandware.alloytestproject\t0x003b5598 TiDebuggerInterface::evalExpression(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator >&, int&) + 328\r\n16 com.demandware.alloytestproject\t0x003ae067 handleEval(TiDebuggerInterface*, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >) + 391\r\n17 com.demandware.alloytestproject\t0x003b0449 TiDebuggerFunctionInvocation::invoke() + 57\r\n18 com.demandware.alloytestproject\t0x003aeed4 TiDebuggerDelegate::suspend() + 132\r\n19 com.demandware.alloytestproject\t0x003b3790 TiDebuggerController::suspend() + 256\r\n20 com.demandware.alloytestproject\t0x003af9e8 TiDebuggerDelegate::suspended(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) + 840\r\n21 com.demandware.alloytestproject\t0x003b85ba TiDebuggerInterface::handlePause(TI::Debugger::ReasonForPause, TI::JSGlobalObject*) + 2490\r\n22 com.demandware.alloytestproject\t0x00414f89 TI::Debugger::pauseIfNeeded(TI::ExecState*) + 265\r\n23 com.demandware.alloytestproject\t0x00415231 TI::Debugger::atStatement(TI::ExecState*) + 65\r\n24 com.demandware.alloytestproject\t0x00432b0c TI::Interpreter::debug(TI::ExecState*, TI::DebugHookID) + 140\r\n25 com.demandware.alloytestproject\t0x0054fdf2 llint_slow_path_debug + 66\r\n26 com.demandware.alloytestproject\t0x00555485 llint_op_debug + 40\r\n{code}", "attachment": [ { "id": "59194", "filename": "AlloyTestProject_2016-05-12-085416_DW1415USBUM.crash", "author": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-12T13:01:41.000+0000", "size": 90416, "mimeType": "application/octet-stream" }, { "id": "59195", "filename": "AlloyTestProject 2.zip", "author": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-12T13:01:12.000+0000", "size": 8197947, "mimeType": "application/zip" }, { "id": "59299", "filename": "wilson.crash", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-18T22:08:00.000+0000", "size": 56815, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS debugger: crash with use of {attribute} in view xml file", "creator": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.2.GA\r\n SDK Path = /Users/cthomas/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA\r\n Target Platform = iphone", "closedSprints": [ { "id": 631, "state": "closed", "name": "2016 Sprint 11 SDK", "startDate": "2016-05-21T00:06:10.029Z", "endDate": "2016-06-04T00:06:00.000Z", "completeDate": "2016-06-06T07:30:39.854Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "385842", "author": { "name": "arohini", "key": "arohini", "displayName": "Ajith Rohini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Spoke to support (Motiur) and this is an ongoing issue with us with the new release. On the Weekly support call our dev team, they are going to look into it and will reach out to support for additional details", "updateAuthor": { "name": "arohini", "key": "arohini", "displayName": "Ajith Rohini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-16T23:06:20.000+0000", "updated": "2016-05-16T23:06:20.000+0000" }, { "id": "386115", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue with current GA stack:\r\n\r\nAppcelerator Studio, build: 4.5.0.201602170821\r\nAppc CLI NPM: 4.2.4\r\nAppc CLI Core: 5.2.2\r\nArrow: 1.7.29\r\nSDK: 5.2.2.GA\r\nNode: v4.4.0\r\nOS: El Capitan (10.11.4)\r\nXcode: 7.3.1\r\nDevice: iphone 6s (9.3.1)\r\n\r\nNotes:\r\n* You do not need to set a breakpoint to reproduce this issue. If you debug the attached app without any breakpoints, the app will crash on launch.\r\n* In the attached app, if you comment out {{