google / node-gles

Apache License 2.0
323 stars 31 forks source link

Error loading EGL entry points. (Segmentation fault) #35

Open Somebi opened 5 years ago

Somebi commented 5 years ago
const gles = require('node-gles');
const gl = gles.binding.createWebGLRenderingContext();

Getting this:

Error loading EGL entry points.
Segmentation fault (core dumped)
Somebi commented 5 years ago

Although i don't see dumped core... It should be in the same folder right? But there is none... I'm on Ubungu 16.04 with OpenGL version string: 3.0 Mesa 18.0.5

nkreeger commented 5 years ago

Hi @Somebi weird - yeah I'm seeing that too on my plain Ubuntu machine. I'll spin some new builds this week. Sorry for the lag - I/O project took most of my time the last month.

nkreeger commented 5 years ago

Hi @Somebi I was able to fix this by rolling new ANGLE builds for Linux. The default Release mode was not linking properly w/o some additional flags.

Please try 0.0.9

rnconrad commented 4 years ago

This error message is output from ANGLE when it can't open a shared library. On Linux this probably means that a call to dlopen() failed, but the prebuilt ANGLE provided with node-gles right now doesn't provide any more useful information (i.e. from dlerror()).

It looks like more recent versions do though: https://github.com/google/angle/blob/78c77361b46416cd8033925ebf7d83f767bd067e/src/common/system_utils_posix.cpp#L87

The output from dlerror() can help fix this, as it might identify a missing dependency that is causing the library to not load.