{ "id": "174058", "key": "AC-6345", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-12-20T16:01:25.000+0000", "created": "2019-08-24T00:51:48.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2019-12-20T16:01:25.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": "h3. Steps to Reproduce\nTwo weeks ago I updated to Studio 5.1.3.201907112159, CLI 7.1.0 and SDK 8.1.0 GA.\n\nNow when running an alloy project in the iOS simulator, studio hangs after about 7-8 minutes after : [TRACE] : [ioslib] Running: osascript ....sim_focus.scpt 'Simulator'\n\nThe emulator is displayed immediately but it takes 7+ minutes before the next trace log '[TRACE] : [ioslib] iPhone 8 Simulator successfully focused' is displayed.\n\nOnce the app is shown in emulator, changes to alloy project code do reload the app in emaulator as expected. \n\nI tried to resolve this issue by changing to CLI 7.0.12 (appc use 7.0.12) and also tried using 8.0.2GA SDK - but neither resolved this issue.\n\n\n\nh3. Actual Result\nSimulator hangs for 8 minutes before displaying the app\n\nh3. Expected Result\nSimulator should display the app quickly after simulator is activated", "attachment": [ { "id": "66884", "filename": ".log", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-24T00:51:49.000+0000", "size": 200256, "mimeType": "text/plain" }, { "id": "66889", "filename": "build_iphone_CLI_7.0.12_SDK_8.0.2GA.log", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-27T15:58:51.000+0000", "size": 90597, "mimeType": "text/plain" }, { "id": "66890", "filename": "build_iphone_CLI_7.1.0_SDK_8.1.0GA.log", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-27T15:58:53.000+0000", "size": 1720832, "mimeType": "text/plain" }, { "id": "66885", "filename": "diagnostic8252406049545079499.log", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-24T00:51:58.000+0000", "size": 437722, "mimeType": "text/plain" } ], "flagged": false, "summary": "Running osascript sim_focus.scpt hangs for 7-8 minutes when running iOS Alloy app in emulator", "creator": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 5.1.3", "comment": { "comments": [ { "id": "450797", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm surprised nobody is reporting this same issue. I have a standard and clean environment. I previously thought I was able able to resolve this by using CLI 7.0.12 but that wasn't the case. I have tried every which way to clean/build, use different simulators etc. without any progress. Any suggestions / ideas? Node version? OS version/feature? Is there any type of AppleScript logging/trace I can turn on that may help?", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-24T01:09:36.000+0000", "updated": "2019-08-24T01:09:36.000+0000" }, { "id": "450798", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-24T01:09:55.000+0000", "updated": "2019-08-24T01:09:55.000+0000" }, { "id": "450820", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~NewportSolutions], if you build your project from the CLI using {{DEBUG=*,-babel appc run -p ios}} (with Studio closed) do you see the same difference in time between the log output? If you could upload that log output it might contain some info that could help us debug your issue", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-26T13:26:58.000+0000", "updated": "2019-08-26T13:26:58.000+0000" }, { "id": "450844", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to build using the CLI as instructed and the default simulator opened and displayed the app immediately. I also tried choosing a specific simulator (one that delays when building with Studio) and the app displays immediately - as it should. I will upload the log output from studio. ", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-27T03:34:59.000+0000", "updated": "2019-08-27T03:34:59.000+0000" }, { "id": "450845", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just ran the app from Studio and again almost exactly 10 minutes staring at the simulator until you see the app gets installed and opens immediately. I cleared the Studio log file before the running the app and the log file is empty (I think you meant that log file). I also ran NOT using LiveView and am experience the same result - simulator opens, 10 mins goes by, then app installs and opens in simulator. ", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-27T04:07:30.000+0000", "updated": "2019-08-27T04:07:30.000+0000" }, { "id": "450850", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "How does it behave when you compile via CLI instead of studio?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-08-27T08:34:02.000+0000", "updated": "2019-08-27T08:34:02.000+0000" }, { "id": "450852", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~NewportSolutions], I meant the log output from a build. You can find a file in the build directory called {{build_iphone.log}} or you can just copy and paste it into a text file from the terminal/studio output.\r\n\r\nBased off all the information you've provided this does look identical to TIMOB-27102, it only occurs in Studio, happens in the identical place etc, is the app you're building definitely using 8.0.2.GA or higher?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-27T12:28:58.000+0000", "updated": "2019-08-27T12:28:58.000+0000" }, { "id": "450860", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes - I am sure about 8.0.2GA or higher and have just ran two clean tests with log files attached.\r\nI cleaned and built the app to run on a simulator using CLI 7.0.12 and SDK 8.0.2GA - same results, log file attached.\r\nI cleaned and built the app to run on a simulator using CLI 7.1.0 and SDK 8.1.0GA - same results, log file attached.\r\n", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-27T16:02:42.000+0000", "updated": "2019-08-27T16:02:42.000+0000" }, { "id": "451032", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could this issue be caused by the Node version installed? I am using Node v8.9.4 but looks like I could upgrade to 8.16.x according to the [Titanium Compatibility Matrix|https://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Compatibility_Matrix-section-src-29004837_TitaniumCompatibilityMatrix-Node.js].", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-02T17:22:22.000+0000", "updated": "2019-09-02T17:22:22.000+0000" }, { "id": "451037", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm not sure that could improve anything. Did you by any chance upgrade Java as well? And what version of Java/JDK are you running?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-03T10:03:39.000+0000", "updated": "2019-09-03T10:03:39.000+0000" }, { "id": "451040", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No Java updates. Here's what I have installed:\r\njava version \"1.8.0_131\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_131-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)\r\n\r\nWhat script is running when this is displayed, \"Running: osascript ....sim_focus.scpt 'Simulator' \"?\r\nThe sim_focus.scpt is working, it's the script/process that runs sim_focus.scpt that is not responding.\r\nThis is killing me and hard to believe I'm the only one having this issue. Maybe some type of environment / config issue...", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-03T13:46:57.000+0000", "updated": "2019-09-03T13:49:04.000+0000" }, { "id": "451127", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Upgrading to Node 8.16 did not help and neither did SDK 8.1.1.GA. \r\n\r\nI did find a mention that [Node 8.16.0 is \"required\" for Studio 5.1.3+|https://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Compatibility_Matrix-section-src-29004837_safe-id-VGl0YW5pdW1Db21wYXRpYmlsaXR5TWF0cml4LVN0dWRpb05vZGUsQ0xJLGFuZFRpdGFuaXVtU0RLc3VwcG9ydGVkdmVyc2lvbnM] in the docs.\r\n\r\nCan either of you ( @topener @eharris ) tell me what process is running when this is displayed, \"Running: osascript ....sim_focus.scpt 'Simulator' \"?\r\n\r\nThe sim_focus.scpt is working fine - it's the script/process that runs sim_focus.scpt that is not responding.", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T15:51:45.000+0000", "updated": "2019-09-05T15:51:45.000+0000" }, { "id": "451516", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~NewportSolutions], What happens if you run from the terminal inside the studio. Can you run with the DEBUG=*,-babel appc run -p ios -l trace? Click on the terminal icon in the studio to open the terminal inside the studio and run this command. You can run your choice of the simulator with the -C tag. And putting the simulator UUID in there. Let us know. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-09-19T22:21:12.000+0000", "updated": "2019-09-19T22:21:12.000+0000" }, { "id": "451522", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I ran the app (and other apps) using this method with the same result - 10 full minutes after Simulator launches before the app install is triggered. Running the app using the console inside studio did not reveal anything as far as I can tell. \r\n\r\nSee below:\r\n\r\n\r\n\r\n{code:java}\r\n[TRACE] [ioslib] Simulator is not running\r\n[TRACE] [ioslib] Tailing iPhone 7 Plus Simulator system log: /Users/corriere/Library/Logs/CoreSimulator/1BA01321-E0FD-4F1C-9E6C-9E8FF4FEC32B/system.log\r\n  ioslib:simctl Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list --json +3m\r\n  ioslib:simctl Sim state: Shutdown +210ms\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID 1BA01321-E0FD-\r\n4F1C-9E6C-9E8FF4FEC32B\r\n  ioslib:simctl Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list --json +3ms\r\n  ioslib:simctl Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list --json +531ms\r\n  always-tail reading: +0ms 24 3830 127649\r\n[TRACE] [ioslib] Simulator is booted\r\n[TRACE] [ioslib] iPhone 7 Plus Simulator started\r\n[TRACE] [ioslib] Running: osascript \"/Users/corriere/Library/Application Support/Titanium/mobilesdk/osx/8.1.0.GA/node_modules/ioslib/lib/sim_focus.scpt\" \"\r\nSimulator\"\r\n  always-tail reading: +501ms 24 611 131479\r\n  always-tail reading: +500ms 24 3608 132090\r\n  always-tail reading: +505ms 24 10167 135698\r\n  always-tail reading: +501ms 24 2728 145865\r\n  always-tail reading: +500ms 24 2962 148593\r\n........[*** WAIT 10 FULL MINUTES !!! ***]........\r\n  always-tail reading: +2.4m 24 4747 223162\r\n  always-tail reading: +1s 24 241 227909\r\n  always-tail reading: +40s 24 216 228150\r\n  always-tail reading: +1.9m 24 2253 228366\r\n  always-tail reading: +1s 24 1728 230619\r\n  always-tail reading: +11s 24 206 232347\r\n[TRACE] [ioslib] iPhone 7 Plus Simulator successfully focused\r\n[TRACE] [ioslib] Installing the app\r\n{code}\r\n\r\n", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-20T03:43:17.000+0000", "updated": "2019-09-20T03:44:31.000+0000" }, { "id": "451523", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "BTW I can use and interact with Simulator immediately after it is started (booted). But sim_focus.scpt does not \"seem\" to complete for 10 minutes. ", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-20T03:48:42.000+0000", "updated": "2019-09-20T03:49:00.000+0000" }, { "id": "452461", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, What's the update of the issue on the latest SDK 8.2.1.GA? ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-11-04T20:09:43.000+0000", "updated": "2019-11-04T20:09:43.000+0000" }, { "id": "453258", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I stopped using Studio altogether and now use VS Code without any problems. \r\nStudio still has the issue regardless of the SDK version. \r\nThis has not been resolved but since nobody else seemed to report this issue perhaps you should close it.", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-20T15:36:42.000+0000", "updated": "2019-12-20T15:36:42.000+0000" }, { "id": "453259", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~NewportSolutions] Thanks for your update. I tested with the latest Studio v5.1.4.201909061933 and it's working faster. Here is my testing environment.\r\n\r\nAppcelerator Command-Line Interface, version 7.1.2\r\n\r\nName = Mac OS X\r\n Version = 10.14.6\r\nNode.js\r\n Node.js Version = 10.16.3\r\n npm Version = 6.9.0\r\nTitanium CLI\r\n CLI Version = 5.2.2\r\nTitanium SDK\r\n SDK Version = 8.3.0.GA\r\n\r\nSo I am going to close it. If you experience the same issue with the latest environment then you can raise another ticket.\r\n\r\nThanks!", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-12-20T15:57:06.000+0000", "updated": "2019-12-20T15:57:06.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }