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

AUR broken packages vs working cloning source and execution #697

Closed Elia-Sh closed 3 years ago

Elia-Sh commented 3 years ago

Hi, TL;DR I suspect that the AUR packages are broken, after installation of pencil from AUR, pencil will hang with a spinning logo, probably need to update PKGBUILD in aur..

No error messages during execution -

  $ pencil 
  useHWAConfig:  false
  Hardware acceleration disabled for Linux.
  Background web-printer started.
  Shortcut main service started.
  (node:88769) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
  (Use `electron --trace-warnings ...` to show where the warning was created)

The awesome thing is that building the source from git, results in successful execution of the app.

$ npm start

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

useHWAConfig:  false
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
(node:88934) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
(node:88934) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
(node:88984) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Shortcut: Super+F12 registered
RENDERER started.
(node:88934) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

Starting the pencil-cloned-from-git-app with global electron works as well -

 which electron
/usr/bin/electron
$ electron -v                                                                                                   
v13.1.8
$ pwd
/home/elia/git/pencil
$ electron ./app
useHWAConfig:  false
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
(node:89197) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:89245) [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.

The above does not work with the installed version from AUR - the app still hangs on the spinning logo.

hoaivan commented 3 years ago

You should use electron9. There was compatible issue with electron 13.

Elia-Sh commented 3 years ago

Hi @hoaivan,

Could you please elaborate about the comparability issue between latest electron and the version used by pencil?

I was able to use pencil with electron 13 - latest available electron version on arch linux, and as described in my comment above, did not see any issues with pencil.

in addition I've created a new AUR package that follows the development branch on evolus/pencil @ github - https://aur.archlinux.org/packages/evolus-pencil-git-dev-branch/ tested installation on arch linux this one works as expected - no hang spinning logos, app currently works as expected.

This is the version built from the new evolus-pencil-git-dev-branch AUR package from the current development branch -

pacman -Q evolus-pencil-git-dev-branch
evolus-pencil-git-dev-branch r1540.043ca48-1

installs the corresponding with latest commit in development branch: 043ca48d89149449f3856cb890a8444bc413fa23

Elia-Sh commented 3 years ago

using the development tracking AUR package solves the spinning logo + hanged app on execution, I've opened https://github.com/evolus/pencil/issues/699 to progress the master branch.

hoaivan commented 3 years ago

@Elia-Sh I tried electron13 on development branch. No more hang spinning logo but i found 2 other issues:

Switch back to electron9 on development branch solves all these!

Notes: I'm on Manjaro