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

Electron 17 and nodejs 16 issue with serial port #2617

Open
khanziaullah opened this issue Apr 4, 2023 · 6 comments
Open

Electron 17 and nodejs 16 issue with serial port #2617

khanziaullah opened this issue Apr 4, 2023 · 6 comments
Labels
electron needs-info Additional information required

Comments

@khanziaullah
Copy link

SerialPort Version

10

Node Version

16

Electron Version

17

Platform

Linux beaglebone 4.19.94-ti-r73 #1buster SMP PREEMPT Fri Apr 15 21:38:30 UTC 2022 armv7l GNU/Linux

Architecture

armv7l

Hardware or chipset of serialport

neo-6mv2

What steps will reproduce the bug?

Hardware: Beaglebone Black - Rev C (armv7l)
Operating System: Linux LXDE
Code: [https://github.com/serialport/electron-serialport#to-use]
Command: npm run start

What happens?

App threw an error during load
Error: No native build was found for platform=linux arch=arm runtime=electron abi=114 uv=1 armv=default libc=glibc node=18.14.0 electron=24.0.0
loaded from: /usr/local/lib/node_modules/serialport/node_modules/@serialport/bindings-cpp

at load.resolve.load.path (/usr/local/lib/node_modules/serialport/node_modules/node-gyp-build/node-gyp-build.js:60:9)
at load (/usr/local/lib/node_modules/serialport/node_modules/node-gyp-build/node-gyp-build.js:22:30)
at Object.<anonymous> (/usr/local/lib/node_modules/serialport/node_modules/@serialport/bindings-cpp/dist/load-bindings.js:11:46)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1296:10)
at Module.load (node:internal/modules/cjs/loader:1096:32)
at Module._load (node:internal/modules/cjs/loader:937:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1120:19)
at require (node:internal/modules/cjs/helpers:103:18)

A JavaScript error occurred in the main process
Uncaught Exception:
Error: No native build was found for platform=linux arch=arm runtime=electron abi=114 uv=1 armv=default libc=glibc node=18.14.0 electron=24.0.0
loaded from: /usr/local/lib/node_modules/serialport/node_modules/@serialport/bindings-cpp

at load.resolve.load.path (/usr/local/lib/node_modules/serialport/node_modules/node-gyp-build/node-gyp-build.js:60:9)
at load (/usr/local/lib/node_modules/serialport/node_modules/node-gyp-build/node-gyp-build.js:22:30)
at Object.<anonymous> (/usr/local/lib/node_modules/serialport/node_modules/@serialport/bindings-cpp/dist/load-bindings.js:11:46)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1296:10)
at Module.load (node:internal/modules/cjs/loader:1096:32)
at Module._load (node:internal/modules/cjs/loader:937:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1120:19)
at require (node:internal/modules/cjs/helpers:103:18)

[6229:0404/152724.791595:ERROR:gl_surface_egl.cc(321)] No suitable EGL configs found.
[6229:0404/152724.793406:ERROR:gl_context_egl.cc(140)] eglGetConfigAttrib failed with error EGL_BAD_CONFIG
[6229:0404/152724.795750:ERROR:gl_surface_egl.cc(321)] No suitable EGL configs found.
[6229:0404/152724.796593:ERROR:gl_surface_egl.cc(1110)] eglCreatePbufferSurface failed with error EGL_BAD_CONFIG
[6229:0404/152724.797226:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[6229:0404/152724.797749:ERROR:gpu_info_collector.cc(401)] Could not create surface for info collection.
[6229:0404/152724.798240:ERROR:gpu_init.cc(88)] CollectGraphicsInfo failed.
[6229:0404/152724.849578:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6238:0404/152725.659981:ERROR:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
/home/debian/source/repos/electron-serialport/node_modules/electron/dist/electron exited with signal SIGINT

What should have happened?

the nmea packets for the configured devices should appear on the screen.
The matching pure nodejs application prints the nmea packets

Additional information

No response

@GazHank
Copy link
Contributor

GazHank commented Jun 6, 2023

HI @khanziaullah can you confirm which versions of node and elecron you are using? the exception info doesnt seem to match the error messages (and if you are using elecctron 17 then an update might be needed as it is no longer supported https://www.electronjs.org/docs/latest/tutorial/electron-timelines )

@GazHank GazHank added electron needs-info Additional information required labels Jun 27, 2023
@andres-mestra
Copy link

Hi @GazHank, I have the same error and I am running the latest version of [email protected] and [email protected]

@GazHank
Copy link
Contributor

GazHank commented Jul 28, 2023

Thanks @andres-mestra would you be able to confirm your error message(s) and the version serialport that you are using?

@khanziaullah
Copy link
Author

Hi @GazHank, I have the same error and I am running the latest version of [email protected] and [email protected]

What application are you trying to build? I want to understand the use case.

@andres-mestra
Copy link

Thanks @andres-mestra would you be able to confirm your error message(s) and the version serialport that you are using?

I am using version 11, however this happens since version 10
I opened an issue on the electron forge repository about this problem and the workaround, it's not really a serialport issue

@lqd1434
Copy link

lqd1434 commented Dec 5, 2023

@GazHank I think this error was caused by node-gyp-build, and serialport use it
prebuild/node-gyp-build#53
when I use webpack to bundle my electron app, i will got the error, so I have to external serialport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron needs-info Additional information required
Development

No branches or pull requests

4 participants