Skip to content

Conversation

@DrSergei
Copy link
Contributor

@DrSergei DrSergei commented Oct 8, 2025

This patch fixes two problems in dissembly view.

The first issue is caused by the disassemblyNotAvailable entry. When a new debug session starts, this entry is pushed to the view, which triggers an onDidScroll event. This leads to a call to the disassemble request via scrollUp_LoadDisassembledInstructions function. However, an empty memoryReference from the disassemblyNotAvailable entry is used for that that leads to error on debug adapter side.

Log from debug adapter (lldb-dap)

1759923554.517830610 (stdio) --> {"command":"disassemble","arguments":{"memoryReference":"","offset":0,"instructionOffset":-50,"instructionCount":50,"resolveSymbols":true},"type":"request","seq":3}
1759923554.518007517 (stdio) queued (command=disassemble seq=3)
1759923554.518254757 (stdio) <-- {"body":{"error":{"format":"invalid arguments for request 'disassemble': malformed memory reference at arguments.memoryReference\n{\n  \"instructionCount\": 50,\n  \"instructionOffset\": -50,\n  \"memoryReference\": /* error: malformed memory reference */ \"\",\n  \"offset\": 0,\n  \"resolveSymbols\": true\n}","id":3,"showUser":true}},"command":"disassemble","request_seq":3,"seq":0,"success":false,"type":"response"}

The second issue is a successor to the first. If the disassemble request fails, the _loadingLock remains permanently true, which blocks all further scrolling.

Before:

before

After:

after

Copy link
Contributor

@dmitrivMS dmitrivMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 8, 2025
@roblourens
Copy link
Member

Thanks for the PR. Could you open an issue for our tracking? And include the steps to reproduce the original issue?

@DrSergei
Copy link
Contributor Author

DrSergei commented Oct 9, 2025

Created issue with detailed steps to reproduce.

Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the contribution!

@roblourens roblourens merged commit c611432 into microsoft:main Oct 9, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants