rokucommunity / rokucommunity/vscode-brightscript-language

DAP crash: unhandledRejection - Control socket was closed - Command: StackTrace

Open
#773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
132
Forks
60
Avg merge
13h 53m
Merged PRs (30d)
20

Description

Type: Bug

Debug Adapter Crash

Type: unhandledRejection
Message: Control socket was closed - Command: StackTrace

Steps to reproduce:

Stack:

Error: Control socket was closed - Command: StackTrace
    at c:\projects\roku\local3\vscode-brightscript-language\node_modules\roku-debug\dist\debugProtocol\client\DebugProtocolClient.js:641:24
    at new Promise (<anonymous>)
    at DebugProtocolClient.sendRequest (c:\projects\roku\local3\vscode-brightscript-language\node_modules\roku-debug\dist\debugProtocol\client\DebugProtocolClient.js:622:16)
    at runNextTicks (node:internal/process/task_queues:64:5)
    at listOnTimeout (node:internal/timers:547:9)
    at process.processTimers (node:internal/timers:521:7)
Additional Info
Item Value
Client Name Visual Studio Code
Roku Debug Version 0.23.5
Ecp Mode enabled
Developer Mode true
Firmware 15.2.4.4300
Protocol Version 3.5.0
Protocol Enabled true

Extension version: 2.63.7
VS Code version: Code 1.117.0 (10c8e557c8b9f9ed0a87f61f1c9a44bde731c409, 2026-04-21T16:12:14-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x2484 [NVIDIA GeForce RTX 3070], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.8157 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7019
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.92GB (15.05GB free)
Process Argv C:\projects\roku\local2\vscode-brightscript-language\workspace.code-workspace --crash-reporter-id 3ba3c017-f411-4fd2-8000-d8da46350920
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsdeactivate2:31464701
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31454198
a9239246:31499107
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_t_1081:31454832
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_control1:31471004
c9b86496:31447327
control_6dc23131:31497324
idci7584:31464702
e3e4d672:31494082
c-26112-aa:31454028
ei9d7968:31496641
534a6447:31496642
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
67jbj424:31500880
dfc2j404:31500885
cpptoolson-v2:31475363
i2gc6536:31499202
1g3cj959:31501677
ghj88844:31499326
ec1eg703:31491645
client_tst_t:31495907
ddid_c:31478207
getcmakediagnosticsoff:31489825
ja75b849:31495667
pro_large_t:31499376
cp_cls_c_1082:31491634
719di409_sum_t:31499347
nes-cj-befline:31500936
logging_enabled_new:31498466
db5d2638:31499441
nes-dist-check-ctrl:31503268
748c7209:31497895

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the stack trace at node_modules/roku-debug/dist/debugProtocol/client/DebugProtocolClient.js and the reported StackTrace request, using the listed VS Code and Roku versions to reproduce it. Done means the DAP no longer emits an unhandledRejection when the control socket closes; the issue provides no repository test or source entry point, so those must be located first.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.