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

Ubuntu on Windows (WSL) ? #64

Open
dukuo opened this issue Oct 7, 2019 · 5 comments
Open

Ubuntu on Windows (WSL) ? #64

dukuo opened this issue Oct 7, 2019 · 5 comments

Comments

@dukuo
Copy link

dukuo commented Oct 7, 2019

Hey ! I wanted to know if it's possible to run noide-gles in Ubuntu on Windows! Currently I can install everything but when I run yarn ts-node src/tests/unsigned_byte_texture_upload_test.ts or similar I get the following error:

dummy@PC:~/dev/node-gles$ yarn ts-node src/tests/unsigned_byte_texture_upload_test.ts
yarn run v1.10.1
$ /home/dummy/dev/node-gles/node_modules/.bin/ts-node src/tests/unsigned_byte_texture_upload_test.ts
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted (core dumped)
error Command failed with exit code 134.
@AlexVestin
Copy link
Contributor

might be related to this
microsoft/WSL#2855

@dukuo
Copy link
Author

dukuo commented Oct 12, 2019 via email

@AlexVestin
Copy link
Contributor

@dukuo did you get anywhere with this? facing a similar problem in docker

@dukuo
Copy link
Author

dukuo commented Nov 7, 2019

Not really, headless webgl is still avoiding me apparently

@nkreeger
Copy link
Contributor

nkreeger commented Nov 8, 2019

Sorry I manage this repo when I have cycles (not primary role here) -

Generally when that std::logic_error happens it is because the ANGLE driver is not properly loading. The system is loading the system libGLESv2.so file. You can try

$ ldd build/Release/nodejs_gl_binding.node

On my linux machine, I see:

> ldd build/Release/nodejs_gl_binding.node
        linux-vdso.so.1 (0x00007ffdc2e6f000)
        libGLESv2.so => /usr/local/google/home/kreeger/workspace/node-gles/deps/angle/out/Release/libGLESv2.so (0x00007f1807f67000)
        libEGL.so => /usr/local/google/home/kreeger/workspace/node-gles/deps/angle/out/Release/libEGL.so (0x00007f180906a000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1808ea8000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1807be7000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1808e8e000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f18079c8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1807609000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1807405000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f18070c7000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f180709d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1808e51000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1806e99000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1806c93000)
        libbsd.so.0 => /usr/lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1806c79000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1806a71000)

Note the libGLESV2.so linkage - if that points to a system library, this library won't work. Graphics are hard on Linux - it does not surprise me that this is causing issue running an Ubuntu image inside Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants