Under Review
over 1 year ago

Ticket resolved with 4.0.7

Run App fails with timeout

Running an app often fails with the following error message:

"Failed to launch the app: Timeout"

The workaround is to try again a couple of times until it works.

Environment:

  • Visual Studio Code
  • Windows 11
  • Monkey C plugin 1.0.0

In some cases (for specific apps), Run App fails consistently, and the only workaround is to copy over the PRG file manually. This specific case was seen with Monkey C plugin v0.1.13, as well.

See thread:

https://forums.garmin.com/developer/connect-iq/f/discussion/276200/vscode-extension-failed-to-launch-the-app-timeout

  • The version of the Monkey C plugin you are using is 1.0.0. Developers have said that some versions of the plugin (like 0.1.13) have bugs that make it impossible for apps to start. There's a chance that the latest version of the plugin (1.0.0) still has problems or bugs that cause apps to time out when they try to run.  www.tp-link.com/.../

  • It is SLOW. I prefer to use a makefile

  • My workaround is to delete all apps from the sim (in the File menu) then reset the sim then stop the sim. (Maybe a subset of these actions would be enough?) Then run again and then it always works

  • my  issue is Resolved,I found the port localhost:1234 is Occupied by other programs,kill that program,the simulator launch app success

  • * Executing task: D:\Development\Java\jdk1.8.0_341\bin\java.exe -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar c:\Users\xiaoc\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.5-2022-08-03-6e17bf167\bin\monkeybrains.jar -o bin\Xtest1.prg -f d:\Workspace\Garmin\Xtest1\monkey.jungle -y d:\Workspace\Garmin\garmin_developer_key -d fenix6pro_sim -w

    WARNING: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'fenix6pro' (40x40). Image will be scaled to the target size.
    * Terminal will be reused by tasks, press any key to close it.