-
Notifications
You must be signed in to change notification settings - Fork 128
electron cant start - NSURLErrorDomain #42
Comments
@zougi hmm I am unable to reproduce on my mac, sorry. Maybe someone else can reproduce? |
If there are logs stored somewhere, im ready to share them |
|
At least in my case, I had some leftover electron zips that I think were not finished downloading during a poor connection (airline).
Electron prebuilt doesn't write over the top of these, so it tried to use them as is. Ended up having to nuke |
I have the same problem OSX 10.8.5 after npm install electron-prebuilt -g (install ok) . |
I also experience this problem, using electron-prebuilt@0.30.2 on OSX 10.8.5. See this ticket for detailed logs. High-level details:
Note that the first and second runs threw slightly different errors. The first time I saw this:
Every time since, I've seen this:
I'm happy to provide additional info if it's wanted. |
Looks like this problem is easily reproducible on Mac OSX 10.8.5.
Now when I do
I get an error window 'Error opening app [...] Can't find module 'PATH' ' And when I do
In mac's Console, I can see the following report: Process: Electron [2693] Date/Time: 2015-08-04 08:12:08.419 +0200 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) VM Regions Near 0: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread Thread 1:: Dispatch queue: com.apple.libdispatch-manager Thread 2: Thread 3: Thread 4: Thread 5:: WorkerPool/18691 |
I had the same problem on MacOSX 1.8.2 (on virtualbox) with electron 0.3.2 and 0.3.1.
I received for the first time this error, when I started to use node module 'electron-packager', before I just downloaded manually the pre-build version of electron and copied inside the folder app and everthing worked well.
In the second case there were:
I tried to copy/create one of the folders *.lprj (en.lprj) inside Resources folder and it worked again.
I think you should try it. |
@mrbabbs Ok thanks, so now i've downloaded electron prebuild binary. Now it does not crash on start; it works. But as soon as i want to start any electron app, lets say "tryout.app", with drag an drop or with the terminal, this message pops up: *Error opening app Error: Cannot fin module 'me/path/to/the/tryout.app' So where exactly did you create the "en.lprj" file? |
So I looked at electron-prebuild sources. What it does, in summary, is download a zip from electron repository on github to folder ~/.electron and then unzip it and make symbolic links. The unzip phase does not unzip all the package. @mrbabbs is right! Here's a listing of the files extracted by electron-prebuild
Here's a listing of the files contained in the zip downloaded by electron-prebuild
EDIT: It looks like it comes from extract-zip (or yauzl, the library this package uses to extract zip files).
issue created max-mapper/extract-zip#6 |
I believe this error was fixed in Electron 0.35+ and can now be closed here, electron/electron#2609 |
When I start electron with "$ electron" it does nothing.
When I start electron on my project with "$ electron ."
it says:
0615/102324:ERROR:http_transport_mac.mm(186)] Could not connect to the server. (NSURLErrorDomain -1004)
I'm on Mac OSX 10.8.5 and I installed electron with command line "$ npm install electron-prebuilt -g"
electron version: v0.27.2
npm version: 2.11.0
iosj version: v2.2.1
Also if I install latest electron version, same error ("$ npm install electron-prebuilt@0.28.1 -g")
Also Electron.app does work if I download it from https://github.com/atom/electron/releases/tag/v0.28.1
The text was updated successfully, but these errors were encountered: