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

Debug Electron 2.0.13 64bit failed with error "Cannot connect to runtime process, timeout after 10000ms".But succeed on Electron 32bit #63618

Closed
panzhiyi3 opened this issue Nov 22, 2018 · 14 comments

Comments

@panzhiyi3
Copy link

commented Nov 22, 2018

  • VSCode Version:1.29.1(system setup)
  • OS Version:Window 7 x64

Steps to Reproduce:
image

1.Just a normal electron project,and use default launch.json created by vscode as

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Main Process",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
            "windows": {
              "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
            },
            "args" : [
                ".",
                //"--inspect=5858", //tried but doesn't work
                //"--remote-debugging-port=5858" //tried but doesn't work
            ],
            //"port": 5858,  //tried but doesn't work
            //"protocol": "legacy" //tried but doesn't work
          }
    ]
}

2.Use same Electron version(2.0.13) but 32bit,it works, seems only failed on 64bit version. And I have tried Electron 3.x 64bit , also worked

Does this issue occur when all extensions are disabled?: No

@weinand weinand added the debug label Nov 22, 2018

@weinand

This comment has been minimized.

Copy link
Member

commented Nov 22, 2018

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Nov 22, 2018

@panzhiyi3 did you try to follow this recipe https://github.com/Microsoft/vscode-recipes/tree/master/Electron ?

Thanks, and I tried this recipe, installed Chrome Debuger, changed my launch.json

       {
            "type": "node",
            "request": "launch",
            "name": "Electron: Main",
            "protocol": "inspector",
            "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
            "runtimeArgs": [
                "--remote-debugging-port=9223",
                "."
            ],
            "windows": {
                "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
            }
        },
        {
            "name": "Electron: Renderer",
            "type": "chrome",
            "request": "attach",
            "port": 9223,
            "webRoot": "${workspaceFolder}",
            "timeout": 30000
        },

But both config don't work, use Electron:Main I still get error message
image
Before this error message I saw only one electron.exe running(64bit), after the messagebox it exited self.
Whe use Electron:Renderer, there are no electron.exe,after 30s,I got this
image

Here is my package.json, I don't know if this may help

  "devDependencies": {
    "electron": "^2.0.13",
    "electron-builder": "^20.36.2",
    "electron-rebuild": "^1.8.2"
  },
  "dependencies": {
    "chokidar": "^2.0.4",
    "ffi": "^2.2.0",
    "ref": "^1.3.5"
  }
@roblourens

This comment has been minimized.

Copy link
Member

commented Nov 26, 2018

Seen this a couple times before, electron/electron#11524 but no solution.

What is the install path of vscode?

I can probably just work around this on our end...

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Nov 26, 2018

Seen this a couple times before, electron/electron#11524 but no solution.

What is the install path of vscode?

I can probably just work around this on our end...

C:\Program Files\Microsoft VS Code\Code.exe
image

And project path is:D:\development\DimensionTwoApps\FoldDesktop

@roblourens

This comment has been minimized.

Copy link
Member

commented Nov 26, 2018

Does your user name include non-english characters?

If you type chcp in a command prompt, what is the result?

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Nov 27, 2018

Does your user name include non-english characters?

If you type chcp in a command prompt, what is the result?

My system language chinese(simplified)
User name:sa
resulit of 'chcp':
image

@roblourens roblourens added bug and removed needs more info labels Nov 28, 2018

@roblourens roblourens added this to the November 2018 milestone Nov 28, 2018

roblourens added a commit to microsoft/vscode-chrome-debug-core that referenced this issue Nov 28, 2018

@roblourens

This comment has been minimized.

Copy link
Member

commented Nov 28, 2018

I pushed a fix for this in Insiders, could you try it out?

@roblourens roblourens closed this Nov 28, 2018

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

I pushed a fix for this in Insiders, could you try it out?

I tried this one "VSCode-win32-x64-1.30.0-insider" from https://code.visualstudio.com/docs/?dv=winzip&build=insiders
And...the problem is still
image

lauch.json

{
    "name": "Debug Main Process",
    "type": "node",
    "request": "launch",
    "cwd": "${workspaceRoot}",
    "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
     "windows": {
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
     },
    "args" : [
        "."
    ]
}

Am I used a wrong version of insiders?

@roblourens

This comment has been minimized.

Copy link
Member

commented Nov 28, 2018

Sorry, just realized this didn't make it into the last Insiders build. It will be in the next one. Try again in about 12 hours :)

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Dec 1, 2018

Sorry, just realized this didn't make it into the last Insiders build. It will be in the next one. Try again in about 12 hours :)

Hi, I tried again today,and seems it not work for me
Insider version:
Version: 1.30.0-insider
Commit: 9878edb
Date: 2018-11-30T06:19:37.226Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 6.1.7601

Or can you give me a direct url to download patch file or full version?I'm glad to help

@roblourens

This comment has been minimized.

Copy link
Member

commented Dec 4, 2018

Sorry, please try one more time with the latest Insiders. If it still doesn't work, please set "trace": true and upload the log from the path in the debug console here.

@panzhiyi3

This comment has been minimized.

Copy link
Author

commented Dec 5, 2018

It works!Tried the new version,everything is fine!
1.30.0-insider
Commit: fa87e67
Date: 2018-12-04T09:34:30.209Z

Thanks! TwT

@roblourens

This comment has been minimized.

Copy link
Member

commented Dec 5, 2018

Great, thanks for trying it!

@weinand weinand added the verified label Dec 6, 2018

@weinand

This comment has been minimized.

Copy link
Member

commented Dec 6, 2018

verified by user.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 12, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.