OS X VS Code nRF Electron Crash

VS Code v2023.1.44 will crash OS X Ventura 13.0.1 if I use nRF connect plugin and try to close the nRF terminal window after reflashing my board. 
OS X crash report indicates that Electron is trying to use a bad pointer.  See crash report below.  

I am running an 2021 14 in. M1 MacBook Pro.

Entering key stroke in this window will crash OS X:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: 6EAA2B19-8160-4CC7-9532-9B7D9B1A4114
CrashReporter Key: D2FEB94C-94E5-9CDC-A227-EFA0ED6B2780
Hardware Model: MacBookPro18,3
Process: Electron [20596]
Path: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Identifier: com.microsoft.VSCode
Version: 1.75.0 (1.75.0)
Code Type: ARM-64 (Native)
Role: Unspecified
Parent Process: launchd [1]
Coalition: com.microsoft.VSCode [1018]
Responsible Process: [5815]

Date/Time: 2023-02-02 15:52:42.5173 -0700
Launch Time: 2023-02-02 15:52:41.7769 -0700
OS Version: macOS 13.0.1 (22A400)
Release Type: User
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000019ca36560
Exception Codes: 0x0000000000000001, 0x000000019ca36560
VM Region Info: 0x19ca36560 is not in any region. Bytes after previous region: 2091885921
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [20596]

Highlighted by Thread: 0

Backtrace not available

No thread state (register information) available

Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
_dyld_process_info_create failed with 1
dyld_process_snapshot_create_for_process failed with 1
Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯
thread_get_state(PAGEIN) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(EXCEPTION) returned 0x10000003: (ipc/send) invalid destination port
thread_get_state(FLAVOR) returned 0x10000003: (ipc/send) invalid destination port

EOF

-----------
Full Report
-----------

{"app_name":"Electron","timestamp":"2023-02-02 15:52:43.00 -0700","app_version":"1.75.0","slice_uuid":"4c4c4486-5555-3144-a10d-816007e70c27","build_version":"1.75.0","platform":0,"bundleID":"com.microsoft.VSCode","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.0.1 (22A400)","roots_installed":0,"name":"Electron","incident_id":"6EAA2B19-8160-4CC7-9532-9B7D9B1A4114"}
{
"uptime" : 2800,
"procRole" : "Unspecified",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 1018,
"osVersion" : {
"train" : "macOS 13.0.1",
"build" : "22A400",
"releaseType" : "User"
},
"captureTime" : "2023-02-02 15:52:42.5173 -0700",
"incident" : "6EAA2B19-8160-4CC7-9532-9B7D9B1A4114",
"pid" : 20596,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-02-02 15:52:41.7769 -0700",
"procStartAbsTime" : 67909428274,
"procExitAbsTime" : 67910033191,
"procName" : "Electron",
"procPath" : "\/Applications\/Visual Studio Code.app\/Contents\/MacOS\/Electron",
"bundleInfo" : {"CFBundleShortVersionString":"1.75.0","CFBundleVersion":"1.75.0","CFBundleIdentifier":"com.microsoft.VSCode"},
"storeInfo" : {"deviceIdentifierForVendor":"A5834012-1CD3-57AD-B644-12A8C2794B53","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.microsoft.VSCode",
"crashReporterKey" : "D2FEB94C-94E5-9CDC-A227-EFA0ED6B2780",
"responsiblePid" : 5815,
"sip" : "enabled",
"vmRegionInfo" : "0x19ca36560 is not in any region. Bytes after previous region: 2091885921 \n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-\/rwx SM=PRV \n---> \n UNUSED SPACE AT END",
"exception" : {"codes":"0x0000000000000001, 0x000000019ca36560","rawCodes":[1,6922921312],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x000000019ca36560"},
"termination" : {"flags":1024,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":20596},
"vmregioninfo" : "0x19ca36560 is not in any region. Bytes after previous region: 2091885921 \n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-\/rwx SM=PRV \n---> \n UNUSED SPACE AT END",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"usedImages" : [
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"legacyInfo" : {
"threadHighlighted" : 0
},
"reportNotes" : [
"_dyld_process_info_create failed with 1",
"dyld_process_snapshot_create_for_process failed with 1",
"Failed to create CSSymbolicatorRef - corpse still valid ¯\\_(ツ)_\/¯",
"thread_get_state(PAGEIN) returned 0x10000003: (ipc\/send) invalid destination port",
"thread_get_state(EXCEPTION) returned 0x10000003: (ipc\/send) invalid destination port",
"thread_get_state(FLAVOR) returned 0x10000003: (ipc\/send) invalid destination port"
]
}

  • Hi, 

    I am checking with the team and will reply later. 

    Regards,
    Amanda H.

  • Hi, 

    I was not able to reproduce this, also on an M1 Macbook Pro running Ventura 13.01. But Ventura 13.2 has been out for a few weeks now. Could you update and see if the same issue occurs? It would also be helpful if you could run the Generate Support Command in the extension so that we can get more information about the application and device you're using.

    -Amanda H.

  • I will upgrade my os and test.  Here is the support information pre Ventura upgrade. thanks for your help.  Wally

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "darwin",
    "osVersion": "Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000",
    "osKernel": "22.1.0",
    "vscode": "1.75.0",
    "electron": "19.1.9",
    "node": "v16.14.2"
    },
    "system": {
    "date": "2023-02-03T16:33:43.443Z",
    "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "15:39:45",
    "osUptime": "15:52:04",
    "cpu": {
    "model": "Apple M1 Pro",
    "speed": "24 MHz",
    "count": 4
    },
    "memory": {
    "total": "32.00 GB",
    "free": "3.74 GB"
    }
    },
    "workspace": {
    "name": "g5nrf (Workspace)",
    "workspaceFile": "/Users/wally/code/g5fw/g5nrf/g5nrf.code-workspace",
    "folders": [
    "/Users/wally/code/g5fw/g5nrf",
    "/opt/nordic/ncs/v2.2.0",
    "/Users/wally/code/sta"
    ]
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.1.44",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.1.44-darwin-arm64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2022.11.29",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.11.29",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2022.11.153",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.11.153",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2022.11.50",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.11.50",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.6.10",
    "ms-vscode.cpptools": "1.13.9",
    "ms-vscode.js-debug": "1.75.1",
    "ms-vscode.js-debug-companion": "1.0.18",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "eamodio.toggle-excluded-files": "1.7.0",
    "atlassian.atlascode": "3.0.1",
    "berublan.vscode-log-viewer": "0.12.2",
    "BitBelt.converttoasciiart": "1.0.3",
    "cschlosser.doxdocgen": "1.4.0",
    "dan-c-underwood.arm": "1.7.4",
    "espressif.esp-idf-extension": "1.5.1",
    "formulahendry.code-runner": "0.12.0",
    "golang.go": "0.37.1",
    "josetr.cmake-language-support-vscode": "0.0.9",
    "keroc.hex-fmt": "1.0.0",
    "lfs.vscode-emacs-friendly": "0.9.0",
    "mcu-debug.debug-tracker-vscode": "0.0.13",
    "mcu-debug.memory-view": "0.0.19",
    "mcu-debug.rtos-views": "0.0.4",
    "mechatroner.rainbow-csv": "3.5.0",
    "mhutchie.git-graph": "1.30.0",
    "ms-dotnettools.csharp": "1.25.4",
    "ms-dotnettools.vscode-dotnet-runtime": "1.6.0",
    "ms-python.isort": "2022.8.0",
    "ms-python.python": "2023.2.0",
    "ms-python.vscode-pylance": "2023.2.10",
    "ms-toolsai.jupyter": "2023.1.2000312134",
    "ms-toolsai.jupyter-keymap": "1.0.0",
    "ms-toolsai.jupyter-renderers": "1.0.14",
    "ms-toolsai.vscode-jupyter-cell-tags": "0.1.6",
    "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
    "ms-vscode-remote.remote-containers": "0.275.0",
    "ms-vscode-remote.remote-ssh": "0.96.0",
    "ms-vscode-remote.remote-ssh-edit": "0.84.0",
    "ms-vscode-remote.remote-wsl": "0.75.1",
    "ms-vscode-remote.vscode-remote-extensionpack": "0.23.0",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.hexeditor": "1.9.11",
    "ms-vscode.makefile-tools": "0.6.0",
    "ms-vscode.powershell": "2023.1.0",
    "ms-vscode.remote-explorer": "0.2.0",
    "neverik.go-critic": "0.1.0",
    "redhat.vscode-yaml": "1.11.0",
    "surajbarkale.ninja": "0.0.1",
    "tomoki1207.pdf": "1.2.2",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "tuttieee.emacs-mcx": "0.47.0",
    "vscode-icons-team.vscode-icons": "12.2.0",
    "yzhang.markdown-all-in-one": "3.5.0"
    }
    },
    "tools": {
    "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.15.1",
    "/Applications/SEGGER/JLink/JLinkExe": "7.80c",
    "/usr/local/bin/nrfjprog": "10.19.0",
    "nrfutil": "Not found",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/cmake": "3.20.5",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/west": "0.14.0",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/python3": "3.9.6",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/ninja": "1.10.2",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/gperf": "3.1",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/dtc": "1.6.1",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/gn": "2073",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/git": "2.37.3",
    "gdbPath": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
    },
    "sdks": [
    {
    "version": "2.2.0",
    "path": "/opt/nordic/ncs/v2.2.0"
    },
    {
    "version": "2.1.0",
    "path": "/opt/nordic/ncs/v2.1.0"
    }
    ],
    "toolchains": [
    {
    "version": "2.1.0",
    "path": "/opt/nordic/ncs/toolchains/v2.1.0"
    },
    {
    "version": "2.2.0",
    "path": "/opt/nordic/ncs/toolchains/v2.2.0"
    }
    ],
    "connectedDevices": [
    {
    "serialNumber": "1050751956"
    }
    ],
    "deviceProviders": [
    "nrfjprog"
    ],
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${workspaceFolder:v2.2.0}",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.2.0}"
    },
    "ozonePath": "",
    "applications": [
    "${workspaceFolder}",
    "/Users/wally/code/sta"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": false
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "enableTelemetry": false,
    "taskBindings": {},
    "debugging": {
    "backend": "nRF Debug",
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character",
    "scrollBack": 1000
    },
    "marus25.cortex-debug": {
    "armToolchainPath": null,
    "armToolchainPrefix": "arm-none-eabi",
    "gdbPath": null,
    "objdumpPath": null,
    "JLinkGDBServerPath": null,
    "openocdPath": null,
    "pyocdPath": null,
    "PEGDBServerPath": null,
    "stutilPath": null,
    "stlinkPath": null,
    "stm32cubeprogrammer": null,
    "enableTelemetry": true,
    "registerUseNaturalFormat": true,
    "variableUseNaturalFormat": true,
    "dbgServerLogfile": null,
    "showDevDebugOutput": "none"
    }
    },
    "environment": {
    "westExe": "west",
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/v2.2.0/Cellar/git/2.37.3/libexec/git-core",
    "HOME": "/Users/wally",
    "PATH": "/opt/nordic/ncs/toolchains/v2.2.0/bin:/opt/nordic/ncs/toolchains/v2.2.0/opt/bin:/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/v2.2.0/arm-zephyr-eabi/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wally/go/bin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:",
    "ZEPHYR_BASE": "/opt/nordic/ncs/v2.2.0/zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk",
    "USER": "wally"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/Users/wally",
    "PATH": "/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wally/go/bin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:",
    "USER": "wally"
    },
    "toolchainPath": "/opt/nordic/ncs/toolchains/v2.2.0",
    "toolchainBinPath": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin",
    "toolchainVersion": "2.2.0"
    },
    "terminal": {
    "shell": null,
    "defaultProfile": null
    }
    }


  • I've upgraded to Ventura 13.2 and I still get a crash when trying to close the terminal in vs code after an nrf connect session.  Below is the nrf support generated information.  Interestingly, I don't see a new crash log in OS X console app.   At least, the date shown is from last Friday when I launched vs code after upgrading to 13.2 os x,  I did not try to close the terminal window until this morning, the 6th.  Maybe the information is valid, I'll copy it below.

    thanks for your help.

    Wally

    [10:24:04] west flash -d /Users/wally/code/g5fw/g5nrf/build --skip-rebuild -r nrfjprog --dev-id 1050751956
    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "darwin",
    "osVersion": "Darwin Kernel Version 22.3.0: Thu Jan 5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000",
    "osKernel": "22.3.0",
    "vscode": "1.75.0",
    "electron": "19.1.9",
    "node": "v16.14.2"
    },
    "system": {
    "date": "2023-02-06T17:24:00.028Z",
    "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:01:20",
    "osUptime": "00:04:30",
    "cpu": {
    "model": "Apple M1 Pro",
    "speed": "24 MHz",
    "count": 4
    },
    "memory": {
    "total": "32.00 GB",
    "free": "13.63 GB"
    }
    },
    "workspace": {
    "name": "g5nrf (Workspace)",
    "workspaceFile": "/Users/wally/code/g5fw/g5nrf/g5nrf.code-workspace",
    "folders": [
    "/Users/wally/code/g5fw/g5nrf",
    "/opt/nordic/ncs/v2.2.0"
    ]
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.1.44",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.1.44-darwin-arm64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2022.11.29",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.11.29",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2022.11.153",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.11.153",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2022.11.50",
    "path": "/Users/wally/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.11.50",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.6.10",
    "ms-vscode.cpptools": "1.13.9",
    "ms-vscode.js-debug": "1.75.1",
    "ms-vscode.js-debug-companion": "1.0.18",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "eamodio.toggle-excluded-files": "1.7.0",
    "atlassian.atlascode": "3.0.1",
    "berublan.vscode-log-viewer": "0.12.2",
    "BitBelt.converttoasciiart": "1.0.3",
    "cschlosser.doxdocgen": "1.4.0",
    "dan-c-underwood.arm": "1.7.4",
    "espressif.esp-idf-extension": "1.5.1",
    "formulahendry.code-runner": "0.12.0",
    "golang.go": "0.37.1",
    "josetr.cmake-language-support-vscode": "0.0.9",
    "keroc.hex-fmt": "1.0.0",
    "lfs.vscode-emacs-friendly": "0.9.0",
    "mcu-debug.debug-tracker-vscode": "0.0.13",
    "mcu-debug.memory-view": "0.0.19",
    "mcu-debug.rtos-views": "0.0.4",
    "mechatroner.rainbow-csv": "3.5.0",
    "mhutchie.git-graph": "1.30.0",
    "ms-dotnettools.csharp": "1.25.4",
    "ms-dotnettools.vscode-dotnet-runtime": "1.6.0",
    "ms-python.isort": "2022.8.0",
    "ms-python.python": "2023.2.0",
    "ms-python.vscode-pylance": "2023.2.10",
    "ms-toolsai.jupyter": "2023.1.2000312134",
    "ms-toolsai.jupyter-keymap": "1.0.0",
    "ms-toolsai.jupyter-renderers": "1.0.14",
    "ms-toolsai.vscode-jupyter-cell-tags": "0.1.6",
    "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
    "ms-vscode-remote.remote-containers": "0.275.0",
    "ms-vscode-remote.remote-ssh": "0.96.0",
    "ms-vscode-remote.remote-ssh-edit": "0.84.0",
    "ms-vscode-remote.remote-wsl": "0.75.1",
    "ms-vscode-remote.vscode-remote-extensionpack": "0.23.0",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.hexeditor": "1.9.11",
    "ms-vscode.makefile-tools": "0.6.0",
    "ms-vscode.powershell": "2023.1.0",
    "ms-vscode.remote-explorer": "0.2.0",
    "neverik.go-critic": "0.1.0",
    "redhat.vscode-yaml": "1.11.0",
    "surajbarkale.ninja": "0.0.1",
    "tomoki1207.pdf": "1.2.2",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "tuttieee.emacs-mcx": "0.47.0",
    "vscode-icons-team.vscode-icons": "12.2.0",
    "yzhang.markdown-all-in-one": "3.5.0"
    }
    },
    "tools": {
    "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.15.1",
    "/Applications/SEGGER/JLink/JLinkExe": "7.80c",
    "/usr/local/bin/nrfjprog": "10.19.0",
    "nrfutil": "Not found",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/cmake": "3.20.5",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/west": "0.14.0",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/python3": "3.9.6",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/ninja": "1.10.2",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/gperf": "3.1",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/dtc": "1.6.1",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/gn": "2073",
    "/opt/nordic/ncs/toolchains/v2.2.0/bin/git": "2.37.3",
    "gdbPath": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
    },
    "sdks": [
    {
    "version": "2.2.0",
    "path": "/opt/nordic/ncs/v2.2.0"
    },
    {
    "version": "2.1.0",
    "path": "/opt/nordic/ncs/v2.1.0"
    }
    ],
    "toolchains": [
    {
    "version": "2.1.0",
    "path": "/opt/nordic/ncs/toolchains/v2.1.0"
    },
    {
    "version": "2.2.0",
    "path": "/opt/nordic/ncs/toolchains/v2.2.0"
    }
    ],
    "connectedDevices": [
    {
    "serialNumber": "1050751956"
    }
    ],
    "deviceProviders": [
    "nrfjprog"
    ],
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${workspaceFolder:v2.2.0}",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.2.0}"
    },
    "ozonePath": "",
    "applications": [
    "${workspaceFolder}"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": false
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "enableTelemetry": false,
    "taskBindings": {},
    "debugging": {
    "backend": "nRF Debug",
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character",
    "scrollBack": 1000
    },
    "marus25.cortex-debug": {
    "armToolchainPath": null,
    "armToolchainPrefix": "arm-none-eabi",
    "gdbPath": null,
    "objdumpPath": null,
    "JLinkGDBServerPath": null,
    "openocdPath": null,
    "pyocdPath": null,
    "PEGDBServerPath": null,
    "stutilPath": null,
    "stlinkPath": null,
    "stm32cubeprogrammer": null,
    "enableTelemetry": true,
    "registerUseNaturalFormat": true,
    "variableUseNaturalFormat": true,
    "dbgServerLogfile": null,
    "showDevDebugOutput": "none"
    }
    },
    "environment": {
    "westExe": "west",
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/v2.2.0/Cellar/git/2.37.3/libexec/git-core",
    "HOME": "/Users/wally",
    "PATH": "/opt/nordic/ncs/toolchains/v2.2.0/bin:/opt/nordic/ncs/toolchains/v2.2.0/opt/bin:/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/v2.2.0/arm-zephyr-eabi/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wally/go/bin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:",
    "ZEPHYR_BASE": "/opt/nordic/ncs/v2.2.0/zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk",
    "USER": "wally"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/Users/wally",
    "PATH": "/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/wally/go/bin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:",
    "USER": "wally"
    },
    "toolchainPath": "/opt/nordic/ncs/toolchains/v2.2.0",
    "toolchainBinPath": "/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin",
    "toolchainVersion": "2.2.0"
    },
    "terminal": {
    "shell": null,
    "defaultProfile": null
    }
    }

    [10:24:50] Success.
    OS X crash report labeled 0.2.22
    -------------------------------------
    Translated Report (Full Report Below)
    -------------------------------------

    Incident Identifier: 6EAA2B19-8160-4CC7-9532-9B7D9B1A4114
    CrashReporter Key: D2FEB94C-94E5-9CDC-A227-EFA0ED6B2780
    Hardware Model: MacBookPro18,3
    Process: Electron [20596]
    Path: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
    Identifier: com.microsoft.VSCode
    Version: 1.75.0 (1.75.0)
    Code Type: ARM-64 (Native)
    Role: Unspecified
    Parent Process: launchd [1]
    Coalition: com.microsoft.VSCode [1018]
    Responsible Process: [5815]

    Date/Time: 2023-02-02 15:52:42.5173 -0700
    Launch Time: 2023-02-02 15:52:41.7769 -0700
    OS Version: macOS 13.0.1 (22A400)
    Release Type: User
    Report Version: 104

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Subtype: KERN_INVALID_ADDRESS at 0x000000019ca36560
    Exception Codes: 0x0000000000000001, 0x000000019ca36560
    VM Region Info: 0x19ca36560 is not in any region. Bytes after previous region: 2091885921
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-/rwx SM=PRV
    --->
    UNUSED SPACE AT END
    Termination Reason: SIGNAL 11 Segmentation fault: 11
    Terminating Process: exc handler [20596]

    Highlighted by Thread: 0

    Backtrace not available

    No thread state (register information) available

    Binary Images:
    0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

    Error Formulating Crash Report:
    _dyld_process_info_create failed with 1
    dyld_process_snapshot_create_for_process failed with 1
    Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯
    thread_get_state(PAGEIN) returned 0x10000003: (ipc/send) invalid destination port
    thread_get_state(EXCEPTION) returned 0x10000003: (ipc/send) invalid destination port
    thread_get_state(FLAVOR) returned 0x10000003: (ipc/send) invalid destination port

    EOF

    -----------
    Full Report
    -----------

    {"app_name":"Electron","timestamp":"2023-02-02 15:52:43.00 -0700","app_version":"1.75.0","slice_uuid":"4c4c4486-5555-3144-a10d-816007e70c27","build_version":"1.75.0","platform":0,"bundleID":"com.microsoft.VSCode","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.0.1 (22A400)","roots_installed":0,"name":"Electron","incident_id":"6EAA2B19-8160-4CC7-9532-9B7D9B1A4114"}
    {
    "uptime" : 2800,
    "procRole" : "Unspecified",
    "version" : 2,
    "userID" : 502,
    "deployVersion" : 210,
    "modelCode" : "MacBookPro18,3",
    "coalitionID" : 1018,
    "osVersion" : {
    "train" : "macOS 13.0.1",
    "build" : "22A400",
    "releaseType" : "User"
    },
    "captureTime" : "2023-02-02 15:52:42.5173 -0700",
    "incident" : "6EAA2B19-8160-4CC7-9532-9B7D9B1A4114",
    "pid" : 20596,
    "translated" : false,
    "cpuType" : "ARM-64",
    "roots_installed" : 0,
    "bug_type" : "309",
    "procLaunch" : "2023-02-02 15:52:41.7769 -0700",
    "procStartAbsTime" : 67909428274,
    "procExitAbsTime" : 67910033191,
    "procName" : "Electron",
    "procPath" : "\/Applications\/Visual Studio Code.app\/Contents\/MacOS\/Electron",
    "bundleInfo" : {"CFBundleShortVersionString":"1.75.0","CFBundleVersion":"1.75.0","CFBundleIdentifier":"com.microsoft.VSCode"},
    "storeInfo" : {"deviceIdentifierForVendor":"A5834012-1CD3-57AD-B644-12A8C2794B53","thirdParty":true},
    "parentProc" : "launchd",
    "parentPid" : 1,
    "coalitionName" : "com.microsoft.VSCode",
    "crashReporterKey" : "D2FEB94C-94E5-9CDC-A227-EFA0ED6B2780",
    "responsiblePid" : 5815,
    "sip" : "enabled",
    "vmRegionInfo" : "0x19ca36560 is not in any region. Bytes after previous region: 2091885921 \n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-\/rwx SM=PRV \n---> \n UNUSED SPACE AT END",
    "exception" : {"codes":"0x0000000000000001, 0x000000019ca36560","rawCodes":[1,6922921312],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x000000019ca36560"},
    "termination" : {"flags":1024,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":20596},
    "vmregioninfo" : "0x19ca36560 is not in any region. Bytes after previous region: 2091885921 \n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n CoreAnimation 11fdf0000-11ff3c000 [ 1328K] rw-\/rwx SM=PRV \n---> \n UNUSED SPACE AT END",
    "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
    "usedImages" : [
    {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
    }
    ],
    "legacyInfo" : {
    "threadHighlighted" : 0
    },
    "reportNotes" : [
    "_dyld_process_info_create failed with 1",
    "dyld_process_snapshot_create_for_process failed with 1",
    "Failed to create CSSymbolicatorRef - corpse still valid ¯\\_(ツ)_\/¯",
    "thread_get_state(PAGEIN) returned 0x10000003: (ipc\/send) invalid destination port",
    "thread_get_state(EXCEPTION) returned 0x10000003: (ipc\/send) invalid destination port",
    "thread_get_state(FLAVOR) returned 0x10000003: (ipc\/send) invalid destination port"
    ]
    }

  • Hi, 

    Thanks for the report. This crash is happening in Electron, which is right at the bottom of the VS Code software stack and not something that we have direct control over. Without being able to reproduce this, it isn't possible for us to fix it.

    In order to work around it, I can suggest that you run the flash command in the terminal instead of using the built-in Flash action. You can use the nRF Connect terminal profile (see https://nrfconnect.github.io/vscode-nrf-connect/reference/ui_panel.html?h=profile#nrf-connect-terminal-profile) to open a terminal with the nRF Connect Toolchain available, and then run west flash himself. For convenience, you can also then create a custom task that runs the flash command automatically (see https://code.visualstudio.com/docs/editor/tasks).

    -Amanda H.

Related