electron: Launching electron.exe while offline causes the executable to terminate immediately

  • Electron version: electron-v1.2.6-win32-x64
  • Operating system: Windows 10 Home (version 1511; build 10586.420)

As reported from here - I came across the issue while trying to launch Visual Studio Code without an internet connection.

I also confirmed the behaviour with versions of Electron as far back as electron-v0.37.6-win32-x64 (the one that VS Code currently uses)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 5
  • Comments: 50 (11 by maintainers)

Most upvoted comments

I have the same problem… image

I have the same problem… image

☝🏿Same error occurs if you run > code as well.

Though my version of node is v8.11.3 and not v8.12.0

+1 on this issue today, windows 10 laptop, works with internet, does not work without internet. was working before a windows update. but then stopped working after?

cant reproduce on my local machines at all but i can on a particular laptop (custom program i made for employees at work)

Enabling a loopback adapter solved this issue for me in VSCode and GitHub Desktop. Tutorial for Windows 10 here: https://www.pingzic.net/how-to-enable-loopback-adapter-in-windows-10/ The issue never occured with the exploration build of VSCode, which uses electron 3.

@rteshnizi as a workaround see this comment https://github.com/electron/electron/issues/6437#issuecomment-265828944

You can install a virtual loopback adapter. It doesn’t even need an IP. Windows 10 steps are vary similar.

Windows Embedded 8 - all devices disconnected (wifi, ethernet) electron crashes silently on startup; I don’t see any log in console; I tried enabling options above. It does show through procmon, but it doesn’t write to any files… was hoping that eventually someone would have found an option or something to enable running. All network devices (bluetooth, ether, wifi) were set as DHCP, I set a static IP on the ether (which won’t be connected ever) but since it’s still disconnected, there’s still no address on anything (ipconfig shows no addresses anywhere)


I added a loopback adapter (and left it dhcp) it’s now a device without a red X on it… https://4sysops.com/archives/how-to-install-loopback-adapter-in-windows-8/

and now electron starts.

@zcbenz - hows the debug going? Think we’ll see a release soon? Thanks for your work on this, I’m anxious to see a fix soon.

Its almost 2 years now from the time bug was reported. I still face it on some of my customers machine. Will you please let us know when this will be fixed ? Currently the workaround is to use loopback adapter, but its too hectic to solve the same everyday on customers machine.

Hey @zcbenz - Is there anything more that I can do to help with this? Any ideas on where we could start? I’d love to get this fixed soon, and wouldn’t mind helping out if you have an idea on where to start and can point me in the right direction. 😄

Thanks for letting me know about the ELECTRON_ENABLE_LOGGING but nothing seemed to change. As I’ve said in the original report of this issue, and the linked ticket, I’ve already done this with versions 1.2.6 and 0.37.6 to check that it was an issue with electron as well as vscode.

Please see the attached gif below for the simplified behaviour I am trying to report: debugging_electron_launch

If anything is still unclear, or if I can help you by getting any additional information from my machine, please let me know.