Thread Viewer does not show threads

Hey,

I encountered a problem with the thread viewer, where the corresponding window is empty when I'm in a debug session. Inside the build configuration I used "Optimize for debugging (-Og)"

I tested this in the "threads" example. I used the nrf connect SDK v 2.9.0 and Toolchain v2.9.0 with an actinius icarus (nrf 9160) board and VS Code V 1.97.2 on windows 10.

 

// IMPORTANT: The following data can contain sensitive or confidential information about your environment.
// If you do not want others to see this information, make sure to remove it before sharing the data.

// For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.

{
    "platform": {
      "os": "win32",
      "osVersion": "Windows 10 Pro",
      "osKernel": "10.0.19045",
      "vscode": "1.97.2",
      "electron": "32.2.7",
      "node": "v20.18.1"
    },
    "system": {
      "date": "2025-03-06T11:46:29.610Z",
      "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
      "nrfConnectForDesktopInstalled": true,
      "vscodeUptime": "00:11:42",
      "osUptime": "01:49:24",
      "cpu": "Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz"
    },
    "workspace": {
      "name": "threads",
      "workspaceFile": null,
      "folders": [
        "c:\\Max\\threads"
      ]
    },
    "sdks": [
      {
        "version": "v2.9.0",
        "path": "c:\\ncs\\v2.9.0"
      },
      {
        "version": "v2.4.3",
        "path": "c:\\ncs\\v2.4.3"
      },
      {
        "version": "v2.2.0",
        "path": "c:\\ncs\\v2.2.0"
      }
    ],
    "activeBuild": "c:\\Max\\threads\\build",
    "apps": [
      {
        "workspace": "c:\\Max\\threads",
        "uri": "c:\\Max\\threads",
        "buildConfigurations": [
          {
            "id": "c:\\Max\\threads\\build",
            "name": "build",
            "boardId": "[email protected]/nrf9160/ns",
            "type": "Sysbuild",
            "isChild": false,
            "isStale": false,
            "taskBindings": {
              "build": [],
              "pristineBuild": [],
              "flash": [],
              "eraseAndFlash": []
            },
            "sdk": "c:\\ncs\\v2.9.0",
            "toolchain": "nRF Connect SDK Toolchain v2.9.0"
          }
        ]
      }
    ],
    "toolchains": [
      {
        "version": "2.9.0",
        "path": "c:\\ncs\\toolchains\\b620d30767"
      },
      {
        "version": "2.0.0",
        "path": "c:\\ncs\\toolchains\\v2.0.0"
      }
    ],
    "connectedDevices": [
      {
        "serialNumber": "000261003821",
        "boardVersion": null,
        "deviceFamily": "NRF91_FAMILY",
        "deviceVersion": "NRF9160_xxAA_REV2",
        "jlinkObFirmwareVersion": "J-Link V11 compiled Dec  4 2023 10:22:45",
        "protectionStatus": "NRFDL_PROTECTION_STATUS_NONE"
      }
    ],
    "tools": {
      "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
      "C:\\Program Files\\SEGGER\\JLink_V794i\\JLink.exe": "7.94i",
      "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
      "C:\\ncs\\toolchains\\b620d30767\\cmake": "3.21.0",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts\\west.exe": "1.2.0",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\python.exe": "3.12.4",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\ninja.exe": "1.10.2",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gperf.exe": "3.1",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\dtc.exe": "1.4.7",
      "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gn.exe": "2202",
      "C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
      "arm-gdbPath": "c:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
      "riscv-gdbPath": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
    },
    "nrfutil": {
      "nrfutil-device": {
        "version": "2.7.9",
        "binPath": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
        "jlinkInfo": {
          "name": "JlinkARM",
          "version": "JLink_V7.94i",
          "versionFormat": "string"
        }
      },
      "nrfutil-toolchain-manager": {
        "version": "0.14.4",
        "binPath": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
      }
    },
    "environment": {
      "westEnv": {
        "HOME": "C:\\Users\\FutureLab Admin",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\FutureLab Admin",
        "PATH": "C:\\ncs\\toolchains\\b620d30767;C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin;C:\\ncs\\toolchains\\b620d30767\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\b620d30767\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejsv18;C:\\Program Files\\nodejsv18\\;C:\\Program Files\\Autodesk\\webdeploy\\production\\6a0c9611291d45bb9226980209917c3d;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ffmpeg\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Users\\FutureLab Admin\\AppData\\Local\\fnm_multishells\\8556_1736846109537;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Users\\FutureLab Admin\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;",
        "ZEPHYR_BASE": "c:\\ncs\\v2.9.0\\zephyr",
        "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
        "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk",
        "PYTHONPATH": "C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib\\site-packages"
      },
      "inherited": {
        "HOME": "C:\\Users\\FutureLab Admin",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\FutureLab Admin",
        "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejsv18;C:\\Program Files\\nodejsv18\\;C:\\Program Files\\Autodesk\\webdeploy\\production\\6a0c9611291d45bb9226980209917c3d;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ffmpeg\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Users\\FutureLab Admin\\AppData\\Local\\fnm_multishells\\8556_1736846109537;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejsv18\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Program Files\\Autodesk\\webdeploy\\production\\6a0c9611291d45bb9226980209917c3d;C:\\Users\\FutureLab Admin\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\ffmpeg\\bin;",
        "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejsv18;C:\\Program Files\\nodejsv18\\;C:\\Program Files\\Autodesk\\webdeploy\\production\\6a0c9611291d45bb9226980209917c3d;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\CMake\\bin;C:\\ffmpeg\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Users\\FutureLab Admin\\AppData\\Local\\fnm_multishells\\8556_1736846109537;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;C:\\Users\\InnoGarage\\AppData\\Local\\Programs\\Python\\Python311;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejsv18\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Ulises\\AppData\\Roaming\\nvm;C:\\Users\\FutureLab Admin\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Program Files\\Autodesk\\webdeploy\\production\\6a0c9611291d45bb9226980209917c3d;C:\\Users\\FutureLab Admin\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\ffmpeg\\bin;"
      }
    },
    "terminal": {
      "defaultProfile": null
    },
    "config": {
      "nordic-semiconductor.nrf-connect": {
        "topdir": "",
        "toolchain": {
          "path": ""
        },
        "ozonePath": "",
        "applications": [],
        "applicationOptions": {},
        "kconfig": {
          "interface": "kconfig"
        },
        "west": {
          "env": {
            "$base": "terminal"
          }
        },
        "boardRoots": [],
        "taskBindings": {},
        "buildTerminal": {
          "condensedProgress": true
        },
        "debugging": {
          "flash": true,
          "bindings": {},
          "justMyCode": false
        },
        "activeAppFollowActiveEditor": true,
        "flash": {
          "softreset": false,
          "erase": false,
          "recover": false
        },
        "enableTelemetry": true,
        "thirdpartyIntegration": {},
        "toolchainManager": {
          "indexURL": null,
          "installDirectory": null
        },
        "nrfutil": {
          "home": null
        },
        "defaultOpenAction": "ask",
        "terminalProfile": {
          "shell": null
        }
      },
      "nordic-semiconductor.nrf-terminal": {
        "terminalMode": "character"
      }
    },
    "extensions": {
      "internal": {
        "nordic-semiconductor.nrf-connect": {
          "version": "2025.1.127",
          "path": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.1.127-win32-x64",
          "isActive": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "version": "2024.9.14",
          "path": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
          "isActive": true
        },
        "nordic-semiconductor.nrf-devicetree": {
          "version": "2024.12.15",
          "path": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.12.15",
          "isActive": true
        },
        "nordic-semiconductor.nrf-kconfig": {
          "version": "2024.12.13",
          "path": "c:\\Users\\FutureLab Admin\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.12.13",
          "isActive": true
        }
      },
      "external": {
        "marus25.cortex-debug": null,
        "ms-vscode.cpptools": "1.23.6",
        "ms-vscode.js-debug": "1.97.1",
        "ms-vscode.js-debug-companion": "1.1.3",
        "ms-vscode.vscode-js-profile-table": "1.0.10",
        "josetr.cmake-language-support-vscode": "0.0.9",
        "ms-dotnettools.vscode-dotnet-runtime": "2.2.8",
        "ms-python.debugpy": "2025.4.0",
        "ms-python.python": "2025.2.0",
        "ms-python.vscode-pylance": "2025.3.1",
        "ms-vscode-remote.remote-wsl": "0.88.5",
        "ms-vscode.cpptools-extension-pack": "1.3.1",
        "ms-vscode.cpptools-themes": "2.0.0",
        "trond-snekvik.gnu-mapfiles": "1.1.0"
      }
    }
  }
  
  

Parents Reply
  • Good to know that it works, there is clearly a issue here with the window that should be displaying the threads. 

    I dont know the cause here but here are a few things that you can try if you want to continue investigation on the issue. 


    What language is the default language on your computer? This does sound like a odd question but there seems to be at least one other case where someone had it fixed buy making sure the English US language package was available on the windows machine. 

    There is also the possibility that some parts are not checked, here in the thread setup https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1-1/subsys/debug/thread_info.c#L42 if this part is missing the window appears to be blank as well. 

    You can try and update VS code, ore maybe downgrade VS code as well to see if this solves the issue, 

    You can click here on the cog and select install specific version and select 2024.7.13 to see if that solves it. 


    If you dont want to digg any more in to it then that is perfectly fine and you can use the Ozone workaround. 

    Regards,
    Jonathan

Children
  • Hey Jonathan, 

    thank you for your response. I tried to look into your suggestions, but so far none of those seemed to have an effect.

    1) I checked the system settings for the selected language, and it is set to English US already.

    2) Here I'm not entirely sure what I should do specifically. I tried multiple things:

    * I added the following line to the beginning of my program:

    __attribute__((used, section(".dbg_thread_info")))

    * When looking at the CMakeLists file in the parent folder, it seems this .c file is included when "CONFIG_DEBUG_THREAD_INFO" is defined, so I added "CONFIG_DEBUG_THREAD_INFO=y"  to my prj.conf file

    Was there anything else you had in mind for me to do with this suggestion?

    3) I installed the version you specified, but I encountered a different problem, where the extension window does not show content at all and is loading. I waited for 5 minutes and once I updated to the newest version, it immediately showed its contents again

    So I unfortunately was not able to test whether it works in the version you mentioned

Related