-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Not running properly in Windows 10, async() timing problem #3083
Comments
originally reported thru discord |
the electron app start doesn't return the config
start is an async function that does a return, this is expecting a promise resolve. changing to
fails as electron is not an async module.. the no display failure is the port config is lost
|
the problem is that app.on('ready' is set and will fire as soon as app is 'ready', but before start() returns
but app.start is now async, so call to start() starts work and returns immediately, and ends electron.js inline code, config is lost (as no await result) my fix comment out app.on('ready'.... then change end of electron.js
old flow
new flow (some extra new debug)
|
#2487 is broken here |
So this happens only on windows 10 or can we recreate the problem on mac/linux too? |
i will review that.. cause its windows its a faster machine than pi.. |
Only ment as help for finding the issue: I can't reproduce this when running a docker image with electron under wsl2, it works and the create order is correct: magic_mirror on develop [✘!?] is 📦 v2.24.0-develop via v19.8.1
⬢ [Docker] ❯ npm run start
> [email protected] start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[98:0407/224807.101418:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied
[07.04.2023 22:48.07.523] [LOG] Starting MagicMirror: v2.24.0-develop
[07.04.2023 22:48.07.526] [LOG] Loading config ...
[07.04.2023 22:48.07.527] [DEBUG] config template file not exists, no envsubst
[07.04.2023 22:48.07.528] [LOG] Loading module helpers ...
[07.04.2023 22:48.07.529] [LOG] No helper found for module: alert.
[07.04.2023 22:48.07.535] [LOG] Initializing new module helper ...
[07.04.2023 22:48.07.536] [LOG] Module helper loaded: updatenotification
[07.04.2023 22:48.07.536] [LOG] No helper found for module: clock.
[07.04.2023 22:48.07.612] [LOG] Initializing new module helper ...
[07.04.2023 22:48.07.612] [LOG] Module helper loaded: calendar
[07.04.2023 22:48.07.612] [LOG] No helper found for module: compliments.
[07.04.2023 22:48.07.614] [LOG] No helper found for module: weather.
[07.04.2023 22:48.07.629] [LOG] Initializing new module helper ...
[07.04.2023 22:48.07.629] [LOG] Module helper loaded: newsfeed
[07.04.2023 22:48.07.630] [LOG] All module helpers loaded.
[07.04.2023 22:48.07.637] [LOG] Starting server on port 8080 ...
[07.04.2023 22:48.07.639] [WARN] You're using a full whitelist configuration to allow for all IPs
[07.04.2023 22:48.07.642] [LOG] Server started ...
[07.04.2023 22:48.07.643] [LOG] Connecting socket for: updatenotification
[07.04.2023 22:48.07.643] [LOG] Starting module helper: updatenotification
[07.04.2023 22:48.07.643] [LOG] Connecting socket for: calendar
[07.04.2023 22:48.07.643] [LOG] Starting node helper for: calendar
[07.04.2023 22:48.07.643] [LOG] Connecting socket for: newsfeed
[07.04.2023 22:48.07.643] [LOG] Starting node helper for: newsfeed
[07.04.2023 22:48.07.644] [LOG] Sockets connected & modules started ...
[98:0407/224807.695924:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied
[98:0407/224807.696008:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Permission denied
[98:0407/224807.702155:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Permission denied
[98:0407/224807.702261:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Permission denied
[07.04.2023 22:48.07.760] [LOG] Launching application.
[98:0407/224807.775032:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Permission denied
[122:0407/224807.792259:ERROR:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[07.04.2023 22:48.08.782] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[07.04.2023 22:48.08.804] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[07.04.2023 22:48.08.837] [INFO] Checking git for module: MagicMirror
[07.04.2023 22:48.09.245] [INFO] Newsfeed-Fetcher: Broadcasting 27 items.
[07.04.2023 22:48.09.712] [INFO] Calendar-Fetcher: Broadcasting 11 events. |
fixes #3083 tested under windows 11 and linux.
fixed with new release |
I tried to run on the MagicMirror2 on W10 but it hangs with these messages being shown:
I followed the steps from the installation guide and already tried the set ELECTRON_DISABLE_GPU=1 method
The text was updated successfully, but these errors were encountered: