Skip to content

On a new test setup, Exemple Test does not show in test suite #5851

@sirber

Description

@sirber

Issue Description

I'm trying to add tests to an older project. I followed the documentation. I'm using the latest cli version (8.9.x). The setup added an Exemple Test as app/tests/example.spec.ts.

When I un ns test android, a blank app opens in the emulator. Seems to be a runtime error.

Actual Behavior

# ns test android
Searching for devices...
18 08 2025 08:21:03.069:WARN [karma-server]: Passing raw CLI options to `new Server(config, done)` is deprecated. Use `parseConfig(configFilePath, cliOptions, {promiseConfig: true, throwErrors: true})` to prepare a processed `Config` instance and pass that as the `config` argument instead.
18 08 2025 08:21:03.230:INFO [karma-server]: Karma v6.4.4 server started at http://0.0.0.0:9882/
18 08 2025 08:21:03.230:INFO [launcher]: Launching browsers android with concurrency unlimited
18 08 2025 08:21:03.233:INFO [launcher]: Starting browser NativeScript Unit Test Runner
Preparing project...
NativeScript-SQLite Sync not detected, disabling support!
NativeScript-SQLite Encrypted not detected, disabling support!
NativeScript-SQLite NoSQL/Keystore not detected, disabling support!
webpack is watching the files...
resolving "./stop-process.js" to "./stop-process.android.js"
assets by path i18n/*.json 87.5 KiB
  asset i18n/ar.json 20.6 KiB [compared for emit] [from: app/i18n/ar.json] [copied]
  asset i18n/fr.json 18 KiB [compared for emit] [from: app/i18n/fr.json] [copied]
  asset i18n/es.json 16.7 KiB [compared for emit] [from: app/i18n/es.json] [copied]
  asset i18n/id.json 16.7 KiB [compared for emit] [from: app/i18n/id.json] [copied]
  asset i18n/en.json 15.5 KiB [compared for emit] [from: app/i18n/en.json] [copied]
assets by path *.js 26.4 MiB
  asset vendor.js 25.2 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)
  asset bundle.js 1.18 MiB [compared for emit] (name: bundle)
  asset nativescript-sqlite-encrypted-nativescript-sqlite-sync-_package_json.js 19.6 KiB [compared for emit]
  asset runtime.js 14.5 KiB [compared for emit] (name: runtime)
asset fonts/MaterialIcons-Regular.ttf 348 KiB [compared for emit] [from: app/fonts/MaterialIcons-Regular.ttf] [copied]
asset formalto.sqlite 8 KiB [compared for emit] [from: app/formalto.sqlite] [copied]
asset tns_modules/inspector_modules.js 1.21 KiB [compared for emit] (name: tns_modules/inspector_modules)
Entrypoint bundle 26.4 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB bundle.js 1.18 MiB
Entrypoint tns_modules/inspector_modules 25.2 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB tns_modules/inspector_modules.js 1.21 KiB
orphan modules 710 KiB [orphan] 83 modules
runtime modules 7.15 KiB 23 modules
modules by path ./node_modules/ 8.94 MiB
  javascript modules 8.67 MiB 881 modules
  json modules 274 KiB 6 modules
modules by path ./app/ 293 KiB
  javascript modules 288 KiB 94 modules
  asset modules 5.31 KiB
    ./app/sqlite/migrations/versions.sql?raw 667 bytes [built] [code generated]
    + 28 modules
external "~/package.json" 42 bytes [optional] [built] [code generated]
external "nativescript-sqlite-encrypted" 42 bytes [optional] [built] [code generated]
external "nativescript-sqlite-sync" 42 bytes [optional] [built] [code generated]
crypto (ignored) 15 bytes [built] [code generated]
webpack 5.91.0 compiled successfully in 5785 ms
Webpack compilation complete. Watching for file changes.
Updating runtime package.json with configuration values...
Project successfully prepared (android)
File change detected. Starting incremental webpack compilation...
assets by status 26.9 MiB [cached] 12 assets
Entrypoint bundle 26.4 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB bundle.js 1.18 MiB
Entrypoint tns_modules/inspector_modules 25.2 MiB = runtime.js 14.5 KiB vendor.js 25.2 MiB tns_modules/inspector_modules.js 1.21 KiB
cached modules 9.91 MiB (javascript) 7.15 KiB (runtime) [cached] 1118 modules
javascript modules 1.34 KiB
  ./app/ sync \.spec\.ts$ 286 bytes [built]
  ./app/sqlite/migrations/ ?raw sync ^\.\/.*\.sql$ 1.06 KiB [optional] [built]
webpack 5.91.0 compiled successfully in 185 ms
Webpack compilation complete. Watching for file changes.
Restarting application on device emulator-5554...
  NSUTR: fetching http://127.0.0.1:9882/context.json
  NSUTR: fetching http://192.168.0.121:9882/context.json
  NSUTR: fetching http://10.0.2.2:9882/context.json
  NSUTR: error fetching http://192.168.0.121:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 192.168.0.121 not permitted
  NSUTR: error fetching http://127.0.0.1:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
  NSUTR: error fetching http://10.0.2.2:9882/context.json Error: java.net.ConnectException: Failed to connect to /10.0.2.2:9882
Successfully synced application com.devalto.formalto on device emulator-5554.
Image

Copilot and ChatGPT told to use this to fix the above fetching problem in karma.conf.js . Seems to work some times. It does the same blank app if the context fetch works

    // web server hostname
    hostname: '0.0.0.0',
    listenAddress: '0.0.0.0',

Expected Behavior

See a log about test being run, succeed or fail.

Reproduction

  1. follow documentation to get tests setup installed
  2. run ng test android

Relevant log output (if applicable)

it's pretty long, so here's the end


Restarting application on device emulator-5554...
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "am" "force-stop" "com.devalto.formalto"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "cat /dev/null > /data/local/tmp/com.devalto.formalto-debugger-started"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "pm" "dump" "com.devalto.formalto" "|" "grep" "-A" "1" "MAIN"
Result when throw error is false:
{
  stdout: '      android.intent.action.MAIN:\n' +
    '        568cf2a com.devalto.formalto/com.tns.NativeScriptActivity filter 13b311b\n' +
    '          Action: "android.intent.action.MAIN"\n' +
    '          Category: "android.intent.category.LAUNCHER"\n',
  stderr: '',
  exitCode: 0
}
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "am" "start" "-n" "com.devalto.formalto/com.tns.NativeScriptActivity"
Result when throw error is false:
{
  stdout: 'Starting: Intent { cmp=com.devalto.formalto/com.tns.NativeScriptActivity }\n',
  stderr: '',
  exitCode: 0
}
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "ps"
Result when throw error is false:
{
  stdout: 'USER           PID  PPID        VSZ    RSS WCHAN            ADDR S NAME                       \n' +
    'root             1     0   10908188   3516 0                   0 S init\n' +
    'root             2     0          0      0 0                   0 S [kthreadd]\n' +
    'root             3     2          0      0 0                   0 I [rcu_gp]\n' +
    'root             4     2          0      0 0                   0 I [slub_flushwq]\n' +
    'root             5     2          0      0 0                   0 I [netns]\n' +
    'root             9     2          0      0 0                   0 I [mm_percpu_wq]\n' +
    'root            11     2          0      0 0                   0 I [rcu_tasks_kthread]\n' +
    'root            12     2          0      0 0                   0 I [rcu_tasks_trace_kthread]\n' +
    'root            13     2          0      0 0                   0 S [ksoftirqd/0]\n' +
    'root            14     2          0      0 0                   0 I [rcu_preempt]\n' +
    'root            15     2          0      0 0                   0 S [rcub/0]\n' +
    'root            16     2          0      0 0                   0 S [rcu_exp_gp_kthread_worker]\n' +
    'root            17     2          0      0 0                   0 S [rcu_exp_par_gp_kthread_worker]\n' +
    'root            18     2          0      0 0                   0 S [migration/0]\n' +
    'root            20     2          0      0 0                   0 S [cpuhp/0]\n' +
    'root            21     2          0      0 0                   0 S [cpuhp/1]\n' +
    'root            22     2          0      0 0                   0 S [migration/1]\n' +
    'root            23     2          0      0 0                   0 S [ksoftirqd/1]\n' +
    'root            26     2          0      0 0                   0 I [inet_frag_wq]\n' +
    'root            27     2          0      0 0                   0 S [kauditd]\n' +
    'root            28     2          0      0 0                   0 S [khungtaskd]\n' +
    'root            29     2          0      0 0                   0 S [oom_reaper]\n' +
    'root            30     2          0      0 0                   0 I [writeback]\n' +
    'root            31     2          0      0 0                   0 S [kcompactd0]\n' +
    'root            32     2          0      0 0                   0 S [khugepaged]\n' +
    'root            33     2          0      0 0                   0 I [cryptd]\n' +
    'root            34     2          0      0 0                   0 I [kblockd]\n' +
    'root            35     2          0      0 0                   0 I [blkcg_punt_bio]\n' +
    'root            36     2          0      0 0                   0 I [edac-poller]\n' +
    'root            37     2          0      0 0                   0 I [devfreq_wq]\n' +
    'root            38     2          0      0 0                   0 S [watchdogd]\n' +
    'root            41     2          0      0 0                   0 S [kswapd0]\n' +
    'root            43     2          0      0 0                   0 S [erofs_worker/0]\n' +
    'root            44     2          0      0 0                   0 S [erofs_worker/1]\n' +
    'root            45     2          0      0 0                   0 I [kthrotld]\n' +
    'root            46     2          0      0 0                   0 S [dmabuf-deferred-free-worker]\n' +
    'root            47     2          0      0 0                   0 I [uas]\n' +
    'root            48     2          0      0 0                   0 I [dm_bufio_cache]\n' +
    'root            49     2          0      0 0                   0 I [mld]\n' +
    'root            50     2          0      0 0                   0 I [ipv6_addrconf]\n' +
    'root            53     2          0      0 0                   0 S [khvcd]\n' +
    'root            54     2          0      0 0                   0 S [hwrng]\n' +
    'root            59     2          0      0 0                   0 S [jbd2/vdd1-8]\n' +
    'root            60     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            61     2          0      0 0                   0 I [kdmflush/254:0]\n' +
    'root            62     2          0      0 0                   0 I [kdmflush/254:1]\n' +
    'root            63     2          0      0 0                   0 I [kdmflush/254:2]\n' +
    'root            64     2          0      0 0                   0 I [kdmflush/254:3]\n' +
    'root            65     2          0      0 0                   0 I [kdmflush/254:4]\n' +
    'root            66     2          0      0 0                   0 I [kdmflush/254:5]\n' +
    'root            67     2          0      0 0                   0 I [kverityd]\n' +
    'root            68     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            69     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            70     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            71     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            74     1   10836548   1660 0                   0 S init\n' +
    'root            75     1   10853164   1920 0                   0 S ueventd\n' +
    'root            80     2          0      0 0                   0 I [kdmflush/254:6]\n' +
    'root            82     2          0      0 0                   0 I [kdmflush/254:8]\n' +
    'root            84     2          0      0 0                   0 I [kdmflush/254:10]\n' +
    'root            85     2          0      0 0                   0 I [kdmflush/254:11]\n' +
    'root            88     2          0      0 0                   0 I [kdmflush/254:14]\n' +
    'root            90     2          0      0 0                   0 I [kdmflush/254:16]\n' +
    'root            92     2          0      0 0                   0 I [kdmflush/254:18]\n' +
    'root            94     2          0      0 0                   0 I [kdmflush/254:20]\n' +
    'root            95     2          0      0 0                   0 I [kdmflush/254:21]\n' +
    'root            97     2          0      0 0                   0 I [kdmflush/254:23]\n' +
    'root            98     2          0      0 0                   0 I [kdmflush/254:24]\n' +
    'root           100     2          0      0 0                   0 I [kdmflush/254:26]\n' +
    'root           101     2          0      0 0                   0 I [kdmflush/254:27]\n' +
    'root           102     2          0      0 0                   0 I [kdmflush/254:28]\n' +
    'root           103     2          0      0 0                   0 I [kdmflush/254:29]\n' +
    'root           105     2          0      0 0                   0 I [kdmflush/254:31]\n' +
    'root           106     2          0      0 0                   0 I [kdmflush/254:32]\n' +
    'root           107     2          0      0 0                   0 I [kdmflush/254:33]\n' +
    'root           108     2          0      0 0                   0 I [kdmflush/254:34]\n' +
    'root           109     2          0      0 0                   0 I [kdmflush/254:35]\n' +
    'root           110     2          0      0 0                   0 I [kdmflush/254:36]\n' +
    'root           111     2          0      0 0                   0 I [kdmflush/254:37]\n' +
    'root           112     2          0      0 0                   0 I [kdmflush/254:38]\n' +
    'root           113     2          0      0 0                   0 I [kdmflush/254:39]\n' +
    'root           118     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           119     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           120     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           121     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'prng_seeder    126     1   10919580   3096 0                   0 S prng_seeder\n' +
    'root           128     2          0      0 0                   0 S [sugov:0]\n' +
    'root           129     2          0      0 0                   0 S [sugov:1]\n' +
    'root           131     2          0      0 0                   0 S [irq/18-goldfish_pipe_dprctd]\n' +
    'logd           132     1   10829360   7032 0                   0 S logd\n' +
    'root           133     2          0      0 0                   0 I [cfg80211]\n' +
    'lmkd           134     1   10781980   3008 0                   0 S lmkd\n' +
    'system         135     1   10891216   2824 0                   0 S servicemanager\n' +
    'system         136     1   10860192   2372 0                   0 S hwservicemanager\n' +
    'root           138     2          0      0 0                   0 S [psimon]\n' +
    'root           142     1   10858432   1548 0                   0 S qemu-props\n' +
    'root           146     1   10847756   3576 0                   0 S vold\n' +
    'root           150     2          0      0 0                   0 I [kdmflush/254:40]\n' +
    'system         155     1   10829628   3560 0                   0 S android.system.suspend-service\n' +
    'keystore       156     1   11009016   7920 0                   0 S keystore2\n' +
    'system         157     1   10930044   2376 0                   0 S android.hardware.atrace@1.0-service\n' +
    'nobody         158     1   10953268   4824 0                   0 S android.hardware.security.keymint-service\n' +
    'root           160     2          0      0 0                   0 I [usbip_event]\n' +
    'root           173     2          0      0 0                   0 I [blk_crypto_wq]\n' +
    'root           181     2          0      0 0                   0 S [jbd2/dm-40-8]\n' +
    'root           182     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'tombstoned     187     1   10812416   1924 0                   0 S tombstoned\n' +
    'root           230     2          0      0 0                   0 I [kverityd]\n' +
    'root           231     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           232     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           233     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           234     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           235     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           236     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           237     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           238     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           239     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           240     2          0      0 0                   0 I [kverityd]\n' +
    'root           241     2          0      0 0                   0 I [kverityd]\n' +
    'root           242     2          0      0 0                   0 I [kverityd'... 14640 more characters,
  stderr: '',
  exitCode: 0
}
Wasn't able to get pid of the app. Sleeping for "100ms".
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "shell" "ps"
Result when throw error is false:
{
  stdout: 'USER           PID  PPID        VSZ    RSS WCHAN            ADDR S NAME                       \n' +
    'root             1     0   10908188   3516 0                   0 S init\n' +
    'root             2     0          0      0 0                   0 S [kthreadd]\n' +
    'root             3     2          0      0 0                   0 I [rcu_gp]\n' +
    'root             4     2          0      0 0                   0 I [slub_flushwq]\n' +
    'root             5     2          0      0 0                   0 I [netns]\n' +
    'root             9     2          0      0 0                   0 I [mm_percpu_wq]\n' +
    'root            11     2          0      0 0                   0 I [rcu_tasks_kthread]\n' +
    'root            12     2          0      0 0                   0 I [rcu_tasks_trace_kthread]\n' +
    'root            13     2          0      0 0                   0 S [ksoftirqd/0]\n' +
    'root            14     2          0      0 0                   0 I [rcu_preempt]\n' +
    'root            15     2          0      0 0                   0 S [rcub/0]\n' +
    'root            16     2          0      0 0                   0 S [rcu_exp_gp_kthread_worker]\n' +
    'root            17     2          0      0 0                   0 S [rcu_exp_par_gp_kthread_worker]\n' +
    'root            18     2          0      0 0                   0 S [migration/0]\n' +
    'root            20     2          0      0 0                   0 S [cpuhp/0]\n' +
    'root            21     2          0      0 0                   0 S [cpuhp/1]\n' +
    'root            22     2          0      0 0                   0 S [migration/1]\n' +
    'root            23     2          0      0 0                   0 S [ksoftirqd/1]\n' +
    'root            26     2          0      0 0                   0 I [inet_frag_wq]\n' +
    'root            27     2          0      0 0                   0 S [kauditd]\n' +
    'root            28     2          0      0 0                   0 S [khungtaskd]\n' +
    'root            29     2          0      0 0                   0 S [oom_reaper]\n' +
    'root            30     2          0      0 0                   0 I [writeback]\n' +
    'root            31     2          0      0 0                   0 S [kcompactd0]\n' +
    'root            32     2          0      0 0                   0 S [khugepaged]\n' +
    'root            33     2          0      0 0                   0 I [cryptd]\n' +
    'root            34     2          0      0 0                   0 I [kblockd]\n' +
    'root            35     2          0      0 0                   0 I [blkcg_punt_bio]\n' +
    'root            36     2          0      0 0                   0 I [edac-poller]\n' +
    'root            37     2          0      0 0                   0 I [devfreq_wq]\n' +
    'root            38     2          0      0 0                   0 S [watchdogd]\n' +
    'root            41     2          0      0 0                   0 S [kswapd0]\n' +
    'root            43     2          0      0 0                   0 S [erofs_worker/0]\n' +
    'root            44     2          0      0 0                   0 S [erofs_worker/1]\n' +
    'root            45     2          0      0 0                   0 I [kthrotld]\n' +
    'root            46     2          0      0 0                   0 S [dmabuf-deferred-free-worker]\n' +
    'root            47     2          0      0 0                   0 I [uas]\n' +
    'root            48     2          0      0 0                   0 I [dm_bufio_cache]\n' +
    'root            49     2          0      0 0                   0 I [mld]\n' +
    'root            50     2          0      0 0                   0 I [ipv6_addrconf]\n' +
    'root            53     2          0      0 0                   0 S [khvcd]\n' +
    'root            54     2          0      0 0                   0 S [hwrng]\n' +
    'root            59     2          0      0 0                   0 S [jbd2/vdd1-8]\n' +
    'root            60     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            61     2          0      0 0                   0 I [kdmflush/254:0]\n' +
    'root            62     2          0      0 0                   0 I [kdmflush/254:1]\n' +
    'root            63     2          0      0 0                   0 I [kdmflush/254:2]\n' +
    'root            64     2          0      0 0                   0 I [kdmflush/254:3]\n' +
    'root            65     2          0      0 0                   0 I [kdmflush/254:4]\n' +
    'root            66     2          0      0 0                   0 I [kdmflush/254:5]\n' +
    'root            67     2          0      0 0                   0 I [kverityd]\n' +
    'root            68     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            69     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            70     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            71     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root            74     1   10836548   1660 0                   0 S init\n' +
    'root            75     1   10853164   1920 0                   0 S ueventd\n' +
    'root            80     2          0      0 0                   0 I [kdmflush/254:6]\n' +
    'root            82     2          0      0 0                   0 I [kdmflush/254:8]\n' +
    'root            84     2          0      0 0                   0 I [kdmflush/254:10]\n' +
    'root            85     2          0      0 0                   0 I [kdmflush/254:11]\n' +
    'root            88     2          0      0 0                   0 I [kdmflush/254:14]\n' +
    'root            90     2          0      0 0                   0 I [kdmflush/254:16]\n' +
    'root            92     2          0      0 0                   0 I [kdmflush/254:18]\n' +
    'root            94     2          0      0 0                   0 I [kdmflush/254:20]\n' +
    'root            95     2          0      0 0                   0 I [kdmflush/254:21]\n' +
    'root            97     2          0      0 0                   0 I [kdmflush/254:23]\n' +
    'root            98     2          0      0 0                   0 I [kdmflush/254:24]\n' +
    'root           100     2          0      0 0                   0 I [kdmflush/254:26]\n' +
    'root           101     2          0      0 0                   0 I [kdmflush/254:27]\n' +
    'root           102     2          0      0 0                   0 I [kdmflush/254:28]\n' +
    'root           103     2          0      0 0                   0 I [kdmflush/254:29]\n' +
    'root           105     2          0      0 0                   0 I [kdmflush/254:31]\n' +
    'root           106     2          0      0 0                   0 I [kdmflush/254:32]\n' +
    'root           107     2          0      0 0                   0 I [kdmflush/254:33]\n' +
    'root           108     2          0      0 0                   0 I [kdmflush/254:34]\n' +
    'root           109     2          0      0 0                   0 I [kdmflush/254:35]\n' +
    'root           110     2          0      0 0                   0 I [kdmflush/254:36]\n' +
    'root           111     2          0      0 0                   0 I [kdmflush/254:37]\n' +
    'root           112     2          0      0 0                   0 I [kdmflush/254:38]\n' +
    'root           113     2          0      0 0                   0 I [kdmflush/254:39]\n' +
    'root           118     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           119     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           120     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           121     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'prng_seeder    126     1   10919580   3096 0                   0 S prng_seeder\n' +
    'root           128     2          0      0 0                   0 S [sugov:0]\n' +
    'root           129     2          0      0 0                   0 S [sugov:1]\n' +
    'root           131     2          0      0 0                   0 S [irq/18-goldfish_pipe_dprctd]\n' +
    'logd           132     1   10829360   7032 0                   0 S logd\n' +
    'root           133     2          0      0 0                   0 I [cfg80211]\n' +
    'lmkd           134     1   10781980   3008 0                   0 S lmkd\n' +
    'system         135     1   10891216   2824 0                   0 S servicemanager\n' +
    'system         136     1   10860192   2372 0                   0 S hwservicemanager\n' +
    'root           138     2          0      0 0                   0 S [psimon]\n' +
    'root           142     1   10858432   1548 0                   0 S qemu-props\n' +
    'root           146     1   10847756   3576 0                   0 S vold\n' +
    'root           150     2          0      0 0                   0 I [kdmflush/254:40]\n' +
    'system         155     1   10829628   3560 0                   0 S android.system.suspend-service\n' +
    'keystore       156     1   11009016   7920 0                   0 S keystore2\n' +
    'system         157     1   10930044   2376 0                   0 S android.hardware.atrace@1.0-service\n' +
    'nobody         158     1   10953268   4824 0                   0 S android.hardware.security.keymint-service\n' +
    'root           160     2          0      0 0                   0 I [usbip_event]\n' +
    'root           173     2          0      0 0                   0 I [blk_crypto_wq]\n' +
    'root           181     2          0      0 0                   0 S [jbd2/dm-40-8]\n' +
    'root           182     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'tombstoned     187     1   10812416   1924 0                   0 S tombstoned\n' +
    'root           230     2          0      0 0                   0 I [kverityd]\n' +
    'root           231     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           232     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           233     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           234     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           235     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           236     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           237     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           238     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           239     2          0      0 0                   0 I [ext4-rsv-conver]\n' +
    'root           240     2          0      0 0                   0 I [kverityd]\n' +
    'root           241     2          0      0 0                   0 I [kverityd]\n' +
    'root           242     2          0      0 0                   0 I [kverityd'... 14653 more characters,
  stderr: '',
  exitCode: 0
}
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "logcat" "-T" "1" "--pid=16634" "-s" "chromium" "-s" ""Web Console"" "-s" "JS" "-s" "System.err" "-s" "TNS.Native" "-s" "TNS.Java"
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "logcat" "-b" "system" "-T" "1" "-s" "ActivityManager" "--regex=Start.*com.devalto.formalto"
spawn: /home/sberube/Android/Sdk/platform-tools/adb "-s" "emulator-5554" "forward" "--list"
Result when throw error is false:
{
  stdout: 'emulator-5554 tcp:38623 localabstract:com.devalto.formalto-livesync\n\n',
  stderr: '',
  exitCode: 0
}
  NSUTR: fetching http://127.0.0.1:9882/context.json
  NSUTR: fetching http://192.168.0.121:9882/context.json
  NSUTR: fetching http://10.0.2.2:9882/context.json
  NSUTR: error fetching http://192.168.0.121:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 192.168.0.121 not permitted
  NSUTR: error fetching http://127.0.0.1:9882/context.json Error: java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
  NSUTR: error fetching http://10.0.2.2:9882/context.json Error: java.net.ConnectException: Failed to connect to /10.0.2.2:9882
Handle socket connection for app identifier: com.devalto.formalto with protocol version: 0.2.0.
Will emit event runOnDeviceExecuted with data {
  projectDir: '/home/sberube/Projects/DevAlto/formalto',
  deviceIdentifier: 'emulator-5554',
  applicationIdentifier: 'com.devalto.formalto',
  syncedFiles: [],
  isFullSync: true
}
Successfully synced application com.devalto.formalto on device emulator-5554.
Will emit event runOnDeviceStarted with data {
  projectDir: '/home/sberube/Projects/DevAlto/formalto',
  deviceIdentifier: 'emulator-5554',
  applicationIdentifier: 'com.devalto.formalto'
}

Environment

OS: Linux 6.15 Fedora Linux 42 (Workstation Edition)
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
Shell: /bin/bash
node: 24.5.0
npm: 11.5.1
nativescript: 8.9.3

# android
java: 17.0.16
ndk: Not Found
apis: 23, 26, 28, 29, 31, 32, 33, 34, 35, 36
build_tools: 33.0.0, 34.0.0, 35.0.0, 35.0.1, 36.0.0
system_images: 
  - android-29 | Google Play Intel x86_64 Atom
  - android-31 | Google Play Intel x86_64 Atom
  - android-34 | Google Play Intel x86_64 Atom
  - android-36 | Google Play Intel x86_64 Atom

# ios
xcode: Not Found
cocoapods: Not Found
python: 3.13.5
python3: 3.13.5
ruby: Not Found
platforms: Not Found

Dependencies

"dependencies": {
  "@angular/animations": "~15.1.0",
  "@angular/common": "~15.1.0",
  "@angular/compiler": "~15.1.0",
  "@angular/core": "~15.1.0",
  "@angular/forms": "~15.1.0",
  "@angular/platform-browser": "~15.1.0",
  "@angular/platform-browser-dynamic": "~15.1.0",
  "@angular/router": "~15.1.0",
  "@imagene.me/nativescript-toast": "^2.0.3",
  "@master.technology/nativescript-http-formdata": "^3.1.4",
  "@nativescript-community/arraybuffers": "^1.1.1",
  "@nativescript-community/drawingpad": "^4.1.0",
  "@nativescript-community/gps": "^3.1.10",
  "@nativescript-community/sentry": "^4.6.12",
  "@nativescript/angular": "^15.0.0",
  "@nativescript/appversion": "^2.0.0",
  "@nativescript/camera": "~5.0.15",
  "@nativescript/core": "~8.7.0",
  "@nativescript/geolocation": "file:plugins/nativescript-geolocation-9.0.100.tgz",
  "@nativescript/imagepicker": "^2.0.2",
  "@nativescript/iqkeyboardmanager": "~2.1.1",
  "@nativescript/theme": "~3.0.2",
  "@nativescript/unit-test-runner": "^3.0.4",
  "@nativescript/zip": "^6.0.0",
  "@ngx-translate/core": "^11.0.1",
  "@ngx-translate/http-loader": "^4.0.0",
  "@nstudio/nativescript-checkbox": "^2.0.5",
  "@nstudio/nativescript-floatingactionbutton": "^3.0.4",
  "@nstudio/nativescript-pulltorefresh": "^3.0.2",
  "@proplugins/nativescript-drop-down": "file:plugins/nativescript-drop-down-9.0.2.tgz",
  "@proplugins/nativescript-platform": "file:plugins/nativescript-platform-1.4.17.tgz",
  "@proplugins/nativescript-platform-css": "file:plugins/nativescript-platform-css-2.1.0.tgz",
  "angular2-uuid": "1.1.1",
  "js-sha256": "^0.11.0",
  "jsqr": "^1.4.0",
  "lodash": "4.17.5",
  "moment": "2.20.1",
  "nativescript-barcodescanner": "^4.1.2",
  "nativescript-dna-deviceinfo": "^3.7.3",
  "nativescript-menu": "^1.1.7",
  "nativescript-modal-datetimepicker": "^2.1.5",
  "nativescript-sqlite": "^2.8.6",
  "nativescript-sqlite-commercial": "file:plugins/nativescript-sqlite-commercial-1.8.0.tgz",
  "nativescript-theme-core": "1.0.4",
  "nativescript-ui-autocomplete": "^15.2.3",
  "nativescript-ui-calendar": "^15.2.3",
  "nativescript-ui-chart": "^15.2.3",
  "nativescript-ui-dataform": "^15.2.3",
  "nativescript-ui-gauge": "^15.2.3",
  "nativescript-ui-listview": "^15.2.3",
  "nativescript-ui-sidedrawer": "^15.2.3",
  "rxjs": "~7.6.0",
  "zone.js": "~0.12.0"
},
"devDependencies": {
  "@angular-devkit/build-angular": "~15.1.0",
  "@angular-eslint/builder": "16.0.1",
  "@angular-eslint/eslint-plugin": "16.0.1",
  "@angular-eslint/eslint-plugin-template": "16.0.1",
  "@angular-eslint/schematics": "16.0.1",
  "@angular-eslint/template-parser": "16.0.1",
  "@angular/compiler-cli": "~15.1.0",
  "@jsdevtools/coverage-istanbul-loader": "3.0.5",
  "@nativescript/android": "8.7.0",
  "@nativescript/types": "~8.4.0",
  "@nativescript/webpack": "~5.0.12",
  "@ngtools/webpack": "~15.1.0",
  "@types/jasmine": "4.0.2",
  "@typescript-eslint/eslint-plugin": "5.59.2",
  "@typescript-eslint/eslint-plugin-tslint": "^5.59.2",
  "@typescript-eslint/parser": "5.59.2",
  "eslint": "^8.39.0",
  "eslint-config-semistandard": "^17.0.0",
  "eslint-config-standard": "^17.0.0",
  "eslint-plugin-import": "^2.27.5",
  "eslint-plugin-n": "^15.7.0",
  "eslint-plugin-promise": "^6.1.1",
  "karma": "6.4.4",
  "karma-coverage": "2.2.1",
  "karma-jasmine": "4.0.2",
  "karma-nativescript-launcher": "1.0.0",
  "karma-webpack": "^5.0.1",
  "nyc": "17.1.0",
  "ts-loader": "^9.5.2",
  "typescript": "~4.8.4"
}

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions