{ "id": "144343", "key": "TIMOB-18532", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-27T16:44:23.000+0000", "created": "2015-02-06T16:30:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-27T16:44:23.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": "h6.Issue Description\r\nWhile attempting to serve ads inside a WebView using Google Publisher Tags with an mRaid payload the app crashes. \r\n\r\nh6.Steps to replicate\r\nDrop the sample code below in app.js and get it to run at device. Reproduced on iPhone 5s iOS 8.1\r\n\r\nh6.Sample Code\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar webview = Titanium.UI.createWebView();\r\nwebview.html = '
';\r\nvar window = Titanium.UI.createWindow();\r\nwindow.add(webview);\r\nwindow.open({\r\n\tmodal : true\r\n}); \r\n{code}\r\n\r\nh6.Xcode console output 3.5.0.GA SDK\r\n{code}\r\nFeb 6 10:20:45 iPhone-5s locationd[55] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : assertion failed: 12B411: libxpc.dylib + 71820 [AD580443-238D-3997-8D09-004C210D0C18]: 0x7d\r\nFeb 6 10:20:45 iPhone-5s Unknown[174] : \r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] Reading stylesheet from: /private/var/mobile/Containers/Bundle/Application/BCC4EAE9-12C9-4C43-9635-ED9EFAF4DE50/Super.Simple.app/stylesheet.plist\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [INFO] Super.Simple/1.0 (3.5.0.0014f83)\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] Loading: /private/var/mobile/Containers/Bundle/Application/BCC4EAE9-12C9-4C43-9635-ED9EFAF4DE50/Super.Simple.app/app.js, Resource: app_js\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] Loading: /private/var/mobile/Containers/Bundle/Application/BCC4EAE9-12C9-4C43-9635-ED9EFAF4DE50/Super.Simple.app/_app_props_.json, Resource: _app_props__json\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] Application booted in 133.444965 ms\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] New scheme: { URL: file:///private/var/mobile/Containers/Bundle/Application/BCC4EAE9-12C9-4C43-9635-ED9EFAF4DE50/Super.Simple.app/ }\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] New scheme: { URL: file:///private/var/mobile/Containers/Bundle/Application/BCC4EAE9-12C9-4C43-9635-ED9EFAF4DE50/Super.Simple.app/ }\r\nFeb 6 10:20:45 iPhone-5s Super.Simple[174] : [DEBUG] New scheme: { URL: http://tpc.googlesyndication.com/safeframe/1-0-1/html/container.html }\r\nFeb 6 10:20:46 iPhone-5s locationd[55] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nFeb 6 10:20:49 iPhone-5s cloudd[156] : (Note ) MC: User has completed cloud configuration. Not showing UI again.\r\nFeb 6 10:20:51 iPhone-5s Super.Simple[174] : [ERROR] The application has crashed with an uncaught exception 'NSRangeException'.\r\n\tReason:\r\n\t*** -[__NSCFString substringFromIndex:]: Index 104 out of bounds; string length 103\r\n\tStack trace:\r\n\t\r\n\t0 CoreFoundation 0x000000018409de48 + 132\r\n\t1 libobjc.A.dylib 0x00000001947900e4 objc_exception_throw + 60\r\n\t2 CoreFoundation 0x000000018409dd88 + 0\r\n\t3 Foundation 0x0000000184ea81c0 + 136\r\n\t4 Super.Simple 0x000000010008060c Super.Simple + 312844\r\n\t5 Super.Simple 0x0000000100116d04 Super.Simple + 929028\r\n\t6 CFNetwork 0x0000000183ae8d54 + 72\r\n\t7 CFNetwork 0x0000000183a02fe0 + 32\r\n\t8 CFNetwork 0x0000000183a02fa4 + 76\r\n\t9 CoreFoundation 0x0000000183f80bfc CFArrayApplyFunction + 68\r\n\t10 CFNetwork 0x0000000183a02e50 + 136\r\n\t11 CFNetwork 0x0000000183a02d04 + 312\r\n\t12 CFNetwork 0x0000000183a02b30 + 68\r\n\t13 CoreFoundation 0x00000001840560e8 + 24\r\n\t14 CoreFoundation 0x000000018405538c + 264\r\n\t15 CoreFoundation 0x000000018405343c + 712\r\n\t16 CoreFoundation 0x0000000183f811f4 CFRunLoopRunSpecific + 396\r\n\t17 WebCore 0x0000000191b5be08 + 288\r\n\t18 JavaScriptCore 0x0000000185504b80 + 24\r\n\t19 libsystem_pthread.dylib 0x0000000194fb3e80 + 164\r\n\t20 libsystem_pthread.dylib 0x0000000194fb3ddc + 0\r\n\t21 libsystem_pthread.dylib 0x0000000194fb0fb0 thread_start + 4\r\nFeb 6 10:20:51 iPhone-5s Super.Simple[174] : *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFString substringFromIndex:]: Index 104 out of bounds; string length 103'\r\n\t*** First throw call stack:\r\n\t(0x18409de48 0x1947900e4 0x18409dd88 0x184ea81c0 0x10008060c 0x100116d04 0x183ae8d54 0x183a02fe0 0x183a02fa4 0x183f80bfc 0x183a02e50 0x183a02d04 0x183a02b30 0x1840560e8 0x18405538c 0x18405343c 0x183f811f4 0x191b5be08 0x185504b80 0x194fb3e80 0x194fb3ddc 0x194fb0fb0)\r\nFeb 6 10:20:51 iPhone-5s ReportCrash[176] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)\r\nFeb 6 10:20:51 iPhone-5s ReportCrash[176] : ReportCrash acting against PID 174\r\nFeb 6 10:20:52 iPhone-5s ReportCrash[176] : Formulating crash report for process Super.Simple[174]\r\nFeb 6 10:20:52 iPhone-5s mediaserverd[19] : '' com.appc.test(pid = 174) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None\r\nFeb 6 10:20:52 iPhone-5s com.apple.xpc.launchd[1] (UIKitApplication:com.appc.test[0xc0c5][174]) : Service exited due to signal: Abort trap: 6\r\nFeb 6 10:20:53 iPhone-5s SpringBoard[48] : [MPUSystemMediaControls] Updating supported commands for now playing application.\r\nFeb 6 10:20:53 iPhone-5s SpringBoard[48] : [MPUSystemMediaControls] Updating supported commands for now playing application.\r\nFeb 6 10:20:53 iPhone-5s SpringBoard[48] : Unable to get short BSD proc info for 174: No such process\r\nFeb 6 10:20:53 iPhone-5s SpringBoard[48] : Unable to get short BSD proc info for 174: No such process\r\nFeb 6 10:20:53 iPhone-5s ReportCrash[176] : Saved report to /var/mobile/Library/Logs/CrashReporter/Super.Simple_2015-02-06-102051_iPhone-5s.ips\r\nFeb 6 10:20:53 iPhone-5s SpringBoard[48] : Application 'UIKitApplication:com.appc.test[0xc0c5]' crashed.\r\nFeb 6 10:20:53 iPhone-5s assertiond[58] : pid_suspend failed for : Unknown error: -1, Unknown error: -1\r\nFeb 6 10:20:53 iPhone-5s assertiond[58] : Could not set priority of to 2, priority: No such process\r\nFeb 6 10:20:53 iPhone-5s assertiond[58] : Could not set priority of to 4096, priority: No such process\r\nFeb 6 10:20:53 iPhone-5s UserEventAgent[17] : id=com.appc.test pid=174, state=0\r\n{code}", "attachment": [ { "id": "54029", "filename": "iPhone 5s 2015-02-06.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-06T16:36:34.000+0000", "size": 64894, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Application crash from advertising content in WebView", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.1\r\nTiSDK 3.5.0.GA ", "closedSprints": [ { "id": 370, "state": "closed", "name": "2015 Sprint 07 SDK", "startDate": "2015-03-28T00:00:13.362Z", "endDate": "2015-04-11T00:00:00.000Z", "completeDate": "2015-04-13T16:25:29.003Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "342404", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ingo, \r\n\r\nI've just tried the 4.0.0 release and the app does not crash. Some errors are thrown though. \r\n\r\nh6.Xcode Console output 4.0.0.v20150205163226\r\n{code}\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : assertion failed: 12B411: libxpc.dylib + 71820 [AD580443-238D-3997-8D09-004C210D0C18]: 0x7d\r\nFeb 6 10:24:47 iPhone-5s Unknown[181] : \r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [DEBUG] Reading stylesheet from: /private/var/mobile/Containers/Bundle/Application/7CAF5577-E69D-4BB5-A770-1198E8DC51DF/Super.Simple.app/stylesheet.plist\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [INFO] Super.Simple/1.0 (4.0.0.bdbec4a)\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [DEBUG] Loading: /private/var/mobile/Containers/Bundle/Application/7CAF5577-E69D-4BB5-A770-1198E8DC51DF/Super.Simple.app/app.js, Resource: app_js\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [DEBUG] Loading: /private/var/mobile/Containers/Bundle/Application/7CAF5577-E69D-4BB5-A770-1198E8DC51DF/Super.Simple.app/_app_props_.json, Resource: _app_props__json\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [DEBUG] Application booted in 139.373004 ms\r\nFeb 6 10:24:47 iPhone-5s Super.Simple[181] : [DEBUG] New scheme: { URL: file:///private/var/mobile/Containers/Bundle/Application/7CAF5577-E69D-4BB5-A770-1198E8DC51DF/Super.Simple.app/ }\r\nFeb 6 10:24:47 iPhone-5s locationd[55] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nFeb 6 10:24:48 iPhone-5s backboardd[51] : CoreAnimation: timed out fence 2ab07\r\nFeb 6 10:24:48 iPhone-5s backboardd[51] : CoreAnimation: updates deferred for too long\r\nFeb 6 10:24:48 iPhone-5s Super.Simple[181] : [DEBUG] New scheme: { URL: file:///private/var/mobile/Containers/Bundle/Application/7CAF5577-E69D-4BB5-A770-1198E8DC51DF/Super.Simple.app/ }\r\nFeb 6 10:24:48 iPhone-5s Super.Simple[181] : [DEBUG] New scheme: { URL: http://tpc.googlesyndication.com/safeframe/1-0-1/html/container.html }\r\nFeb 6 10:24:50 iPhone-5s Super.Simple[181] : [DEBUG] Loading: /activeview, Resource: activeview\r\nFeb 6 10:24:50 iPhone-5s Super.Simple[181] : [ERROR] Error loading /activeview\r\n{code}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-06T16:36:34.000+0000", "updated": "2015-02-06T16:36:34.000+0000" }, { "id": "346686", "author": { "name": "Bably Das", "key": "bably das", "displayName": "BABLY DAS", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nI am building an iPhone app \r\nDetails - \r\nTitanium CLI Version : 3.4.2, Titanium CLI Version : 3.5.0, Target Platform : iPhone, OS - MacOSX 10.10\r\n\r\nWhile trying to open a webview in a Window I am also getting a similar error :\r\n\r\nThe application has crashed with an uncaught exception 'NSRangeException'.\r\n[ERROR] : Reason:\r\n[ERROR] : *** -[__NSCFString substringFromIndex:]: Index 184 out of bounds; string length 183\r\n Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x0550092a __exceptionPreprocess + 154\r\n[ERROR] : 1 libobjc.A.dylib 0x050d2a97 objc_exception_throw + 44\r\n[ERROR] : 2 CoreFoundation 0x0550086d +[NSException raise:format:] + 141\r\n[ERROR] : 3 Foundation 0x0224eec1 -[NSString substringFromIndex:] + 133\r\n[ERROR] : 4 Vantage Circle 0x000be1ea +[TiUtils loadAppResource:] + 346\r\n[ERROR] : 5 Vantage Circle 0x001df142 -[LocalProtocolHandler startLoading] + 418\r\n[ERROR] : 6 CFNetwork 0x03c202eb _ZN16CFURLProtocol_NS29_protocolInterface_resumeLoadEv + 55\r\n[ERROR] : 7 CFNetwork 0x03cf99af ___ZN19URLConnectionLoader27_private_ScheduleOriginLoadEPK12NSURLRequestPK20_CFCachedURLResponse_block_invoke_2 + 62\r\n[ERROR] : 8 CFNetwork 0x03bf9700 ___ZNK19URLConnectionLoader25withExistingProtocolAsyncEU13block_pointerFvP11URLProtocolE_block_invoke + 30\r\n[ERROR] : 9 CFNetwork 0x03bf96bc _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 70\r\n[ERROR] : 10 CoreFoundation 0x053f53d9 CFArrayApplyFunction + 57\r\n[ERROR] : 11 CFNetwork 0x03bf957d _ZN19RunloopBlockContext7performEv + 149\r\n[ERROR] : 12 CFNetwork 0x03d4edc6 _ZThn16_N19RunloopBlockContext24multiplexerClientPerformEv + 20\r\n[ERROR] : 13 CFNetwork 0x03bf93c0 _ZN17MultiplexerSource7performEv + 292\r\n[ERROR] : 14 CFNetwork 0x03bf91dc _ZN17MultiplexerSource8_performEPv + 76\r\n[ERROR] : 15 CoreFoundation 0x054241df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n[ERROR] : 16 CoreFoundation 0x05419ced __CFRunLoopDoSources0 + 253\r\n[ERROR] : 17 CoreFoundation 0x05419248 __CFRunLoopRun + 952\r\n[ERROR] : 18 CoreFoundation 0x05418bcb CFRunLoopRunSpecific + 443\r\n[ERROR] : 19 CoreFoundation 0x054189fb CFRunLoopRunInMode + 123\r\n[ERROR] : 20 WebCore 0x0acb9ff8 _ZN7WebCoreL15runLoaderThreadEPv + 456\r\n[ERROR] : 21 JavaScriptCore 0x0c7c172c _ZN3WTFL16threadEntryPointEPv + 76\r\n[ERROR] : 22 JavaScriptCore 0x0c7c1a45 _ZN3WTFL19wtfThreadEntryPointEPv + 21\r\n[ERROR] : 23 libsystem_pthread.dylib 0x0627eecf _pthread_body + 138\r\n[ERROR] : 24 libsystem_pthread.dylib 0x0627ee45 _pthread_body + 0\r\n[ERROR] : 25 libsystem_pthread.dylib 0x0627cf0e thread_start + 34\r\n[ERROR] : \r\n[ERROR] : 2015-03-20 17:18:49.918 Vantage Circle[93615:639062] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFString substringFromIndex:]: Index 184 out of bounds; string length 183'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (\r\n[ERROR] : \t0 CoreFoundation 0x05500946 __exceptionPreprocess + 182\r\n[ERROR] : \t1 libobjc.A.dylib 0x050d2a97 objc_exception_throw + 44\r\n[ERROR] : \t2 CoreFoundation 0x0550086d +[NSException raise:format:] + 141\r\n[ERROR] : \t3 Foundation 0x0224eec1 -[NSString substringFromIndex:] + 133\r\n[ERROR] : \t4 Vantage Circle 0x000be1ea +[TiUtils loadAppResource:] + 346\r\n[ERROR] : \t5 Vantage Circle 0x001df142 -[LocalProtocolHandler startLoading] + 418\r\n[ERROR] : \t6 CFNetwork 0x03c202eb _ZN16CFURLProtocol_NS29_protocolInterface_resumeLoadEv + 55\r\n[ERROR] : \t7 CFNetwork 0x03cf99af ___ZN19URLConnectionLoader27_private_ScheduleOriginLoadEPK12NSURLRequestPK20_CFCachedURLResponse_block_invoke_2 + 62\r\n[ERROR] : \t8 CFNetwork 0x03bf9700 ___ZNK19URLConnectionLoader25withExistingProtocolAsyncEU13block_pointerFvP11URLProtocolE_block_invoke + 30\r\n[ERROR] : \t9 CFNetwork 0x03bf96bc _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 70\r\n[ERROR] : \t10 CoreFoundation 0x053f53d9 CFArrayApplyFunction + 57\r\n[ERROR] : \t11 CFNetwork 0x03bf957d _ZN19RunloopBlockContext7performEv + 149\r\n[ERROR] : \t12 CFNetwork 0x03d4edc6 _ZThn16_N19RunloopBlockContext24multiplexerClientPerformEv + 20\r\n[ERROR] : \t13 CFNetwork 0x03bf93c0 _ZN17MultiplexerSource7performEv + 292\r\n[ERROR] : \t14 CFNetwork 0x03bf91dc _ZN17MultiplexerSource8_performEPv + 76\r\n[ERROR] : \t15 CoreFoundation 0x054241df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n[ERROR] : \t16 CoreFoundation 0x05419ced __CFRunLoopDoSources0 + 253\r\n[ERROR] : \t17 CoreFoundation 0x05419248 __CFRunLoopRun + 952\r\n[ERROR] : \t18 CoreFoundation 0x05418bcb CFRunLoopRunSpecific + 443\r\n[ERROR] : \t19 CoreFoundation 0x054189fb CFRunLoopRunInMode + 123\r\n[ERROR] : \t20 WebCore 0x0acb9ff8 _ZN7WebCoreL15runLoaderThreadEPv + 456\r\n[ERROR] : \t21 JavaScriptCore 0x0c7c172c _ZN3WTFL16threadEntryPointEPv + 76\r\n[ERROR] : \t22 JavaScriptCore 0x0c7c1a45 _ZN3WTFL19wtfThreadEntryPointEPv + 21\r\n[ERROR] : \t23 libsystem_pthread.dylib 0x0627eecf _pthread_body + 138\r\n[ERROR] : \t24 libsystem_pthread.dylib 0x0627ee45 _pthread_body + 0\r\n[ERROR] : \t25 libsystem_pthread.dylib 0x0627cf0e thread_start + 34\r\n[ERROR] : )\r\n[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\nKindly look at the issue.\r\nThanks\r\n", "updateAuthor": { "name": "Bably Das", "key": "bably das", "displayName": "BABLY DAS", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T12:00:53.000+0000", "updated": "2015-03-20T12:00:53.000+0000" }, { "id": "347561", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing, fixed in latest release, 4.0.0", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-27T16:35:05.000+0000", "updated": "2015-03-27T16:44:16.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }