一直使用pencil工具来做原型设计,但今天发现在Fedora35上它启动后就马上崩毁和自动退出!
[xzeng@mypassportssd build]$ pencil
Hardware acceleration disabled for Linux.
Fontconfig warning: “/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf”, line 6: unknown element “reset-dirs”
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
[86549:0524/143842.321104:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap (core dumped)
发现Electron 在新的GPU驱动上使用有这个问题,启动时加上 --no-sandbox 参数就好了
[xzeng@mypassportssd build]$ pencil --no-sandbox
Hardware acceleration disabled for Linux.
Fontconfig warning: “/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf”, line 6: unknown element “reset-dirs”
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
RENDERER started.
参考: https://github.com/electron/electron/issues/17321