Giter Club home page Giter Club logo

Comments (3)

PlanetIrata avatar PlanetIrata commented on July 24, 2024

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.

taboca avatar taboca commented on July 24, 2024

Same here, just got a new Digital Ocean machine with Ubuntu as pointed above and stalls.

from electron-screenshot-service.

kribblo avatar kribblo commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.