Comments (3)
Same here with Debian Jessie (v8.8) and Node v8.1.2, the same code that works under Windows 10 / Node v8 hangs under Debian without throwing any error.
Thanks for help
from electron-screenshot-service.
Same here, just got a new Digital Ocean machine with Ubuntu as pointed above and stalls.
from electron-screenshot-service.
I had this problem trying to run this in a headless container, guess it's the same for you guys; electron needs a DISPLAY to render to, so you need to use something like Xvfb and probably some extra GUI dependencies if it's Ubuntu server edition.
Didn't take the time to figure out exactly what is needed, but in my Dockerfile I have these lines that makes it run for me:
RUN apt-get update && apt-get install -yq xvfb libgtk2.0-0 libgconf2-4 libnss3 libasound2 libxtst6 xvfb gtk2-engines-pixbuf libnotify-dev dbus-x11 libxss1
ENV DISPLAY :99
CMD xvfb-run --server-args='-screen 0 1024x768x24 -ac +extension RANDR' npm start
:99
is default DISPLAY for xvfb-run; there's multiple other ways to run this, and you may not use Docker at all, but in short:
- install those dependecies
- export DISPLAY as environment variable
- start the app using Xvfb
Hope that helps.
from electron-screenshot-service.
Related Issues (20)
- Can't install it on windows 10 HOT 3
- count is not updated when a spawned process crashes HOT 4
- Feature Request: Inject JavaScript HOT 2
- Not Working on Heroku Deployment HOT 3
- RangeError: "port" argument must be >= 0 and < 65536 HOT 3
- `page` option not working HOT 3
- Javascript not executing properly HOT 1
- Electron error popup if service is not closed immediately after screenshot HOT 21
- Installation error on windows HOT 3
- PORT issue on windows HOT 1
- Pass cookies HOT 2
- electron error while installing HOT 1
- Uncaught (in promise) TypeError: Bad argument(…) HOT 2
- Running as a service: won't create second screenshot HOT 1
- electron-service missing version number in package.json HOT 1
- Caching HOT 2
- No compatible version found: axon@'^2.0.2' HOT 4
- Clustering and zombie processes
- the "file " argument must be of type string HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-screenshot-service.