NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

Process crashed when using --justlaunch option for iOS

Open cupidchan opened this issue 3 years ago • 3 comments

Issue Description

When I run ns test ios --emulator --justlaunch with the --justlaunch option, the test will complete with no problem but the process will crash towards the end with the following error. It looks like the process was terminated too quick that the macOS thinks it's a crash instead of a graceful shutdown.

MicrosoftTeams-image (3)

Reproduction

But this is not always happening. It happens 100% when it's executed by Husky as the pre-commit task. However, when I run it as a standalone command most of the time it passes. In case it fails, I can run npm clean-install and then re-run ns test ios --emulator --justlaunch to fix the crash.

Relevant log output (if applicable)

Please see my next comment where I attach the full dump.

Environment

macOS for iPhone simulator. Android is fine.

Please accept these terms

cupidchan avatar Sep 02 '22 00:09 cupidchan

Attached is the full report for the crash: iOS crash.txt

cupidchan avatar Sep 02 '22 10:09 cupidchan

Hello, thanks for reporting this. What steps should one follow to reproduce it? Also, can you check if this problem also occurs on real devices?

CatchABus avatar Sep 15 '22 19:09 CatchABus

Hi @CatchABus, here is what I did:

  1. create a new NativeScript Angular project
  2. prepare the ios environment
  3. test init
  4. ns test ios --emulator --justlaunch

Then I got the error shown in the screenshot above. Please note that I am using an M1 Mac.

cupidchan avatar Sep 15 '22 21:09 cupidchan