Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error processing "restartFrame": Error: Internal error #86411

Closed
alexr00 opened this issue Dec 5, 2019 · 11 comments
Closed

Error processing "restartFrame": Error: Internal error #86411

alexr00 opened this issue Dec 5, 2019 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@alexr00
Copy link
Member

alexr00 commented Dec 5, 2019

I was testing #85626, which works nicely, by debugging VS Code. The only inline action is restart frame, and when I click it I get this error in the debug console:

Error processing "restartFrame": Error: Internal error
    at Client.processMessage (c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\noice-json-rpc\lib\noice-json-rpc.js:66:36)
    at LoggingSocket.<anonymous> (c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\noice-json-rpc\lib\noice-json-rpc.js:42:48)
    at LoggingSocket.emit (events.js:205:15)
    at Receiver.receiverOnMessage (c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\ws\lib\websocket.js:789:20)
    at Receiver.emit (events.js:200:13)
    at Receiver.dataMessage (c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\ws\lib\receiver.js:422:14)
    at c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\ws\lib\receiver.js:379:23
    at c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\ws\lib\permessage-deflate.js:298:9
    at c:\Users\alros\.vscode-insiders\extensions\msjsdiag.debugger-for-chrome-4.12.2\node_modules\ws\lib\permessage-deflate.js:376:7
    at afterWrite (_stream_writable.js:483:3)

It happens on any of the frames and the frame doesn't appear to restart. frame does restart.

@isidorn
Copy link
Contributor

isidorn commented Dec 5, 2019

This is coming from the node debug adapter.
The isse is that the node debug adapter can only restart the top frame. And currently we do not have a capaibiltiy for the node extnesino to notify vscode that this action should be disabled.

Assigning also to @roblourens
fyi @weinand

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues under-discussion Issue is under discussion for relevance, priority, approach labels Dec 5, 2019
@alexr00
Copy link
Member Author

alexr00 commented Dec 5, 2019

I see the error even on the top frame.

@isidorn
Copy link
Contributor

isidorn commented Dec 5, 2019

I leave that up to @roblourens and @connor4312 since the error is coming from the extension

@roblourens
Copy link
Member

Cool, this is not supported by Electron. Not only that but if you send restartFrame to the window then the window breaks. We don't really detect if we are debugging Chrome vs Electron but I guess I need to do that.

@roblourens roblourens added this to the November 2019 milestone Dec 5, 2019
@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release and removed under-discussion Issue is under discussion for relevance, priority, approach labels Dec 5, 2019
@roblourens
Copy link
Member

Eh I take that back, I got into a bad state once but in other cases it seems fine to just ignore the error. Fixing in the DA.

@connor4312
Copy link
Member

Fyi I had this happen on Node 10 putting together microsoft/vscode-js-debug#160. Switching my runtime version to 12 resolved the issue, and everything looked peachy in the traces, so I think it's some V8 issue.

@roblourens
Copy link
Member

Yeah I filed an upstream issue then realized that it's fixed in Electron 7. I'm just going to leave this alone.

@roblourens
Copy link
Member

Oh this affects extensionHost debugging too, I will work around it for this release

@isidorn
Copy link
Contributor

isidorn commented Dec 5, 2019

Thanks for jumping on this Rob

@roblourens
Copy link
Member

Can be verifid in chrome-debug starting now

@connor4312 connor4312 added the verified Verification succeeded label Dec 5, 2019
@connor4312
Copy link
Member

Verified works debugging VS Code

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants