-
Notifications
You must be signed in to change notification settings - Fork 41
Troubleshooting
The STK uses WebGL and your GPU. You need to make sure that your browser (chrome) is using it!
- Checking the status of GPU acceleration in chrome by going to the address chrome://gpu in chrome -- all the GPU feature fields should say "hardware accelerated".
- If some fields above state "software only" or "disabled", following this troubleshooting guide to enable GPU acceleration: https://superuser.com/questions/836832/how-can-i-enable-webgl-in-my-browser Example: go to chrome://flags and set "Override software rendering list" to enabled,
To debug what is going wrong in Chrome, you should use the developer tools:
- Click on the 3 dots on the upper right end of the chrome tool bar and select "More Tools" -> "Developer Tools" (see https://developer.chrome.com/devtools) Panel should open on the bottom of your chrome window.
- Click on the 'Console' tab on the dev tools panel. (see https://developers.google.com/web/tools/chrome-devtools/console)
- Please right click on the panel and click "Save as..." to save a log (see bottom of above link) that you can send to the STK team.
If a node-gyp gl build issue is encountered due to missing angle
submodule, this is due to a npm bug (https://github.com/npm/cli/issues/2774).
To resolve this, downgrade to an older npm
through npm install -g npm@'^6.4.11'
prior to running build.
If you have an issue with building and it is due to issues finding system files you know you have, make sure that you are not trying to build with a non-standard environment (e.g. conda
or VSCode terminal), which may affect the header/library path used during node-gyp
compilation.
When trying to do npm install
in the ssc
directory, you encounter the following message:
../angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp:15:20: fatal error: GL/glx.h: No such file or directory
#include <GL/glx.h>
or
lerna ERR! npm ERR! code ELIFECYCLE
lerna ERR! npm ERR! errno 1
lerna ERR! npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
lerna ERR! npm ERR! Exit status 1
lerna ERR! npm ERR!
lerna ERR! npm ERR! Failed at the [email protected] install script.
This means that you are missing the opengl headers.
To install them on Ubuntu:
sudo apt-get install build-essential libxi-dev libglu1-mesa-dev libglew-dev
The ssc uses the sharp image processing library. It needs to compile itself and create a node_modules/sharp/build/Release/sharp.node
. Sometimes, for some reason, it fails to do.
Before you build sharp.node
you should make sure you have node-gyp
installed
npm install -g node-gyp
To build sharp.node
(from the scene-toolkit directory)
cd ssc/node_models/sharp
node-gyp rebuild
If you have trouble building sharp
due to missing libvips
(a fast image processing library), you can install libvips
as follows on Ubuntu (see sharp installation for more details):
sudo apt-get install libvips
Please see Headless rendering
If your node program crashes with message JavaScript heap out of memory
, you can give your node js process more memory by running it with the --max-oldspace-size
option:
node --max-old-space-size=2048
By default v8 has a memory limit of 512mb on 32-bit systems, and 1gb on 64-bit systems.
We have not yet tried running with the most recent version of Node. Please let us know what issues you experience!
- Home
- Main
- Annotators
- Assets
- Batch processing
- Development
- File formats
- Rendering
- Scene Tools
- Voxels