{ "id": "176202", "key": "AC-6703", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2021-10-14T15:22:05.000+0000", "created": "2021-05-27T08:34:36.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-14T15:22:05.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": [], "description": "Just setting an empty WebView in a window and then closing it, after some seconds the following crash is reported.\r\n\r\n\r\n\r\n{code}\r\nCrashed Thread: 0 Dispatch queue: com.apple.main-thread\r\n\r\nException Type: EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes: KERN_INVALID_ADDRESS at 0x0000370825dd7d98\r\nException Note: EXC_CORPSE_NOTIFY\r\n\r\nTermination Signal: Segmentation fault: 11\r\nTermination Reason: Namespace SIGNAL, Code 0xb\r\nTerminating Process: exc handler [58266]\r\n\r\nVM Regions Near 0x370825dd7d98:\r\n CG raster data 160418000-16057d000 [ 1428K] r--/r-- SM=PRV \r\n--> \r\n JS JIT generated code 5d98ccc00000-5d98ccc01000 [ 4K] ---/rwx SM=NUL \r\n\r\nApplication Specific Information:\r\nobjc_msgSend() selector name: hash\r\nCoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (C0A49FD2-F871-4554-86E9-31EA20D9EFF4) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro Max\r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0 libobjc.A.dylib \t0x000000011367078b objc_msgSend + 11\r\n1 com.apple.CoreFoundation \t0x0000000113b0e842 CFBasicHashRemoveValue + 194\r\n2 com.apple.CoreFoundation \t0x00000001139fee80 CFDictionaryRemoveValue + 160\r\n3 xxxxxxxxxxxxxxxxxxxxxxx \t0x000000010c85b9b8 -[TiUIWebViewProxy _destroy] + 104 (TiUIWebViewProxy.m:110)\r\n4 com.appcelerator.TitaniumKit \t0x00000001135c9d61 -[TiProxy dealloc] + 25\r\n5 com.appcelerator.TitaniumKit \t0x00000001135aba7f -[TiViewProxy dealloc] + 119\r\n6 xxxxxxxxxxxxxxxxxxxxxxx \t0x000000010c85b415 -[TiUIWebViewProxy dealloc] + 181 (TiUIWebViewProxy.m:50)\r\n7 libobjc.A.dylib \t0x000000011368c834 objc_object::sidetable_release(bool, bool) + 174\r\n8 com.appcelerator.TitaniumKit \t0x000000011358a6bd -[KrollObject dealloc] + 50\r\n9 libobjc.A.dylib \t0x000000011368c834 objc_object::sidetable_release(bool, bool) + 174\r\n10 com.appcelerator.TitaniumKit \t0x00000001135897ce KrollFinalizer + 289\r\n11 com.apple.JavaScriptCore \t0x000000010d17b567 JSC::JSCallbackObject::destroy(JSC::JSCell*) + 119\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS - Empty WebView causes app to crash", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458730", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bgarcia], can you tell us what you mean by \"empty\" please?\r\n\r\nWhat do we need to do below to reproduce it? Because simply never setting the \"url\" or \"html\" property and closing the window doesn't crash it for me.\r\n{code:javascript}\r\nlet navigationWindow = null;\r\nconst parentWindow = Ti.UI.createWindow({ title: \"Parent Window\" });\r\nconst openButton = Ti.UI.createButton({ title: \"Open WebView Window\" });\r\nopenButton.addEventListener(\"click\", () => {\r\n\tconst childWindow = Ti.UI.createWindow({ title: \"Child WebView\" });\r\n\tconst webView = Ti.UI.createWebView({\r\n//\t\thtml: \"\",\r\n\t});\r\n\tchildWindow.add(webView);\r\n\tnavigationWindow.openWindow(childWindow, { animated: true });\r\n});\r\nparentWindow.add(openButton);\r\nnavigationWindow = Ti.UI.createNavigationWindow({\r\n\twindow: parentWindow,\r\n});\r\nnavigationWindow.open();\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-02T00:26:51.000+0000", "updated": "2021-06-02T00:26:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }