Edex-ui: eEDEX-UI failed to launch - Cannot read property 'send' of undefined

Created on 27 Jan 2019  Â·  14Comments  Â·  Source: GitSquared/edex-ui

Hi, when launching this awesome app I get this error:
image

When running from the command line I get this debug log:
Ôû║ start Starting eDEX-UI v2.0.0
i info With Node 10.11.0 and Electron 4.0.1
i info Renderer is Chrome 69.0.3497.106
Ôû║ Startup Initialized timer...
i info Base config dir is C:\Users\MyUser\AppData\Roaming\eDEX-UI
[ ] pending Loading settings file...
 success Settings loaded!
[ ] pending Creating new terminal process on port 6517
 success Terminal back-end initialized!
[ ] pending Starting multithreaded calls controller...
 success Multithreaded controller ready
i info Creating window...
... watching Waiting for frontend connection...
× fatal TypeError: Cannot read property 'send' of undefined
at dispatch (C:\Users\MyUser\AppData\Local\MyUser\MyUser\eDEXUI\x32\resources\app.asar_multithread.js:32:46)
at EventEmitter.ipc.on.args (C:\Users\MyUser\AppData\Local\MyUser\MyUser\eDEXUI\x32\resources\app.asar_multithread.js:56:13)
at EventEmitter.emit (events.js:182:13)
at WebContents. (C:\Users\MyUser\AppData\Local\MyUser\MyUser\eDEXUI\x32\resources\electron.asar\browser\api\web-contents.js:334:13)
at WebContents.emit (events.js:182:13)

Any clue as to what this might cause?
Thanks!

bug confirmed

All 14 comments

Does this happen constantly? How many CPU cores do you have on this machine?

Hi, this does indeed happen every single time. It even happens at exactly the same moment in the rendering. I tried changing all of the settings, none made any difference for this problem however.
The machine has just 1 CPU and is running Windows 7 32 bit with a completely new vanilla install. Since it's just a test VM I tried adding another core. That actually fixed the issue!
However, is it possible to get this to also work on old single core Windows 7 hardware?

I see the problem now. The multithreaded controller assumes the machine has at least a dual-core. I'll add a safeguard against this - but please note that running eDEX on a single core will probably get you near-unusable performance.

Thanks!
And yes. Our single core machines run everything with near-unusable performance ;-)

I just tried the new v2.0.1 build that contains the fix. However, it did not resolve the issue. Single core machines still can't run eDEX-UI.
Any clue?

Sorry, I commited a bad fix. Master should be rid of this issue now - shipping in next release, or if you can't wait...

Hi, thnx for the superfast response!
I couldn't wait, so I tried the link. However, it's not a fix yet. Same error.
Anything I can do to help test?

Damn it. I'll look into it.

Awesome it works :-)
Thanks for the superfast fixes!

Yeah, sorry it took a bunch of trial-and-failure :sweat_smile:

I'm seeing this error on a 4-core, Windows 8.1 machine. It gets as far as bringing up the keyboard and the "welcome back", then dies every time with the same error message.

Any thoughts on why that might be happening, or how I could look for info to track down the issue?

@DrCuriosity Could you launch eDEX from a cmd/powershell terminal and copy/paste the error message printed in the term here?

Okay. Error from the terminal is:

C:\Projects\edex-ui>npm start

> [email protected] start C:\Projects\edex-ui
> electron src --nointro

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron src --nointro`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.

Further error in the npm-cache log shows the following stack trace:

9 verbose lifecycle [email protected]~start: CWD: C:\Projects\edex-ui
10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'electron src --
nointro' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron src --nointro`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_m
odules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:193:13)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_m
odules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:193:13)
13 verbose stack     at maybeClose (internal/child_process.js:1001:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_proc
ess.js:266:5)
14 verbose pkgid [email protected]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

clragon picture clragon  Â·  6Comments

clragon picture clragon  Â·  6Comments

bdgza picture bdgza  Â·  3Comments

jakewilliami picture jakewilliami  Â·  4Comments

maggot99999 picture maggot99999  Â·  5Comments