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.04k stars 717 forks source link

Running on Linux Ubuntu distribution error: GPU_ data_ manager_ impl_ private. cc(894)] The display compositor is frequently crashing. Goodbye. #715

Open luoweidd opened 2 years ago

luoweidd commented 2 years ago
jimmerydad commented 1 year ago

A workaround mentioned here: https://bytemeta.vip/repo/evolus/pencil/issues/724

add the flag ' --disable-seccomp-filter-sandbox' :

pencil --disable-seccomp-filter-sandbox

godlike64 commented 1 year ago

The workaround does not fully work. It hangs like so, no window opens (not Ubuntu here though, Gentoo Linux):

$ evoluspencil --disable-seccomp-filter-sandbox
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
RENDERER started.

Same behaviour with the latest version from the repo. Cloned, switched to development, npm install and:

~/sandbox/pencil $ npm start

> start
> ./node_modules/.bin/electron ./app

useHWAConfig:  undefined
Hardware acceleration disabled for Linux.
[14700:0919/212710.073177:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
Background web-printer started.
Shortcut main service started.
(node:14665) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:14730) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
Shortcut: Super+F12 registered
RENDERER started.

Strangely, I tried to strace the program to see what it was hanging on, and the window opened, fully functional. Race condition somewhere?

jozefcifre commented 1 year ago

The workaround does not fully work. It hangs like so, no window opens (not Ubuntu here though, Gentoo Linux):

$ evoluspencil --disable-seccomp-filter-sandbox
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
RENDERER started.

Same behaviour with the latest version from the repo. Cloned, switched to development, npm install and:

~/sandbox/pencil $ npm start

> start
> ./node_modules/.bin/electron ./app

useHWAConfig:  undefined
Hardware acceleration disabled for Linux.
[14700:0919/212710.073177:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
Background web-printer started.
Shortcut main service started.
(node:14665) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:14730) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
Shortcut: Super+F12 registered
RENDERER started.

Strangely, I tried to strace the program to see what it was hanging on, and the window opened, fully functional. Race condition somewhere?

I am encountering the same issue on NixOS 23.05 (GNOME Wayland)

image

image