evolus / pencil

The Pencil Project's unique mission is to build a free and opensource tool for making diagrams and GUI prototyping that everyone can use.
http://pencil.evolus.vn
GNU General Public License v2.0
9.09k stars 721 forks source link

.deb installs in Debian Buster, but won't run #598

Open jaggzh opened 4 years ago

jaggzh commented 4 years ago

Running results in no window, no errors in /var/log, and the console output: ardware acceleration disabled for Linux. Background web-printer started. Shortcut main service started. Shortcut: Super+F12 registered RENDERER started. {sits here}

jaggzh commented 4 years ago

Running from git results in the same output and.. no window. $ npm start

Pencil@ start /home/jaggz/projects/pencil electron ./app

useHWAConfig: false Hardware acceleration disabled for Linux. Background web-printer started. Shortcut main service started. Shortcut: Super+F12 registered RENDERER started.

jsmanrique commented 4 years ago

This is what I get in Debian Testing:

$ pencil 
[183326:0121/230952.612439:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/pencil-3.1.0.ga/chrome-sandbox is owned by root and has mode 4755.
[1]    183326 trace trap  pencil
jaggzh commented 4 years ago

This is what I get in Debian Testing:

I got that as well, and chmod'ded appropriately -- that gets it to the above point where it appears to run but no window appears.

$ pencil 
[183326:0121/230952.612439:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/pencil-3.1.0.ga/chrome-sandbox is owned by root and has mode 4755.
[1]    183326 trace trap  pencil
kjrgreen commented 4 years ago

I'm experiencing the same issue as described in the initial comment, on KDE Neon 5.17, 64-bit.

lammel commented 4 years ago

I have the same issue with the debian package.

Why is a setuid root required at all?

Desktop software must not run as root at all (this includes sandboxes, those should run with the permission of the user that executes the software). I there any good reason for it?

foxMclion commented 4 years ago

same issue here. Installed from .deb on a kubuntu 18.04, ui won't show. version 3.1.0

dgthanhan commented 4 years ago

We are not providing an official package for Debian. We would love to have one but we current don't have sufficient resources for doing that. The provided .deb are explicitly stated for Ubuntu and I have just tested it with a fresh VirtualBox image from osboxes for Ubuntu 18.04 and everything works just fine.

AlexandreBonneau commented 4 years ago

Why is a setuid root required at all?

Desktop software must not run as root at all (this includes sandboxes, those should run with the permission of the user that executes the software). I there any good reason for it?

The previous version of Pencil did not require such setuid bit iirc. Running an app with root privilege is a security risk, and should not be done. Couldn't that be fixed?

Otherwise, once the setuid bit is set, pencil seems to run great, except when you try to close it, then it freezes.

JPLettuce commented 4 years ago

Had the same issue today on parrotOS. Stumbled upon issue #605 where @xnart 's solution worked for me.

I cloned the git, changed to the development branch and edited the package.json file (electron from version 6.0.1 to 8.0.1). After npm install I used npm start and pencil finaly made it to the main window. Works fine so far.

Edit: You should remove your .deb package installation beforehand. If you remove it later you may need to rerun npm install, as some needed dependencies may be removed.

MarcNealer commented 4 years ago

I followed the advice from JPLettuce and I got pencil running, but it won't open or save files! I'm running KDE Neon 5.18