Open rgoetzlt opened 4 years ago
Same thing happened on Arch Linux. Can you try upgrade Electron version to 8.0.1 ? It worked for me.
Same thing happened on Arch Linux.
For ArchLinux, I took the nightly build tar.gz file and it works
Same problem on Fedora 31.
Same with Debian testing (Bullseye).
@xnart could you describe how to "upgrade Electron version to 8.0.1"? Thanks!
Same with Debian testing (Bullseye).
@xnart could you describe how to "upgrade Electron version to 8.0.1"? Thanks!
@AlexandreBonneau
Edit package.json, run "npm install" and start Pencil with "npm start"
Switching to v8.0.1
solved the launch problem :tada:
Same with Debian testing (Bullseye). @xnart could you describe how to "upgrade Electron version to 8.0.1"? Thanks!
@AlexandreBonneau
Edit package.json, run "npm install" and start Pencil with "npm start"
hi , i dont have a well knowlege of npm , i try the following :
cd /usr/lib/pencil
edit package.json
add
"electron": "8.0.1" to the end of to section "dependencies"
npm install
npm start # this will not start pencil with electron 8.0.1
am i correct ?
as the content of /usr/bin/pencil.sh is exec /usr/lib/electron /usr/lib/pencil
i think when i launch pencil from pencil.desktop , it will not start pencil with electron 8.0.1 too.
but it did start the pencil project, but i can not open any pencil project file when i click open
instead , i can open from recently open, but sometimes, i can not save the change .
Here on OpenSUSE Leap 15.1 as well, the same problem occured when using the development
branch (commit 5426c9555bbffff04e9ae66a2bf7f9beb3079bc9), and when using tag v3.1.0
. "npm start" runs, but no application was displayed.
Note - This is all using npm 6.14.2, and node v8.16.2.
$ npm start
> Pencil@ start /home/jc/git_repos/pencil
> electron ./app
useHWAConfig: undefined
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
RENDERER started.
The GUI does work (for me) after switching to git tag v3.0.4
though. eg:
# Get rid of local changes
$ git clean -dffx
$ git reset --hard HEAD
# Switch to the v3.0.4 tag version
$ git reset --hard v3.0.4
$ npm install
$ npm start
# The GUI should now be visible
Hopefully that helps. :smile:
I experience the exact same problem on Gentoo. There is something non-deterministic about it though. It will start normally about 1 out of 4 times I try to launch it, although I still have to manually cleanup all the failed processes manually.
@reidswanson Does switching to git tag v3.0.4
work for you?
Switching to v3.0.4 does appear to work, although I greatly prefer using my distros official packages, which only has 3.1.0.
By the way, thanks for the hard work. I only dabble in web design as a hobby so I can't justify purchasing a paid app for this kind of thing. However, pencil seems more feature rich and better than almost every other app I've demoed (paid or free).
Thanks @reidswanson, that's good info. Looks like some change between v3.0.4
and v3.1.0
is causing the issue.
Btw, I'm not affiliated with this project at all. Just tried it out myself a few days ago and hit the same issue too. :wink:
I have just upgraded electron to 9.3.0 and provided fixes for electron API changes. Please checkout the latest "development" branch and let us know if this fixes your issues.
I have tried with a fresh installation of OpenSUSE 15.2 LEAP and found no problems.
@dgthanhan Good stuff, that does seem to work properly now.
Testing the latest development branch (commit d331951e98e1c83f8bfd89bf17787a1b953f61d6) just now, it's launching fine (npm start
).
Just to confirm the old problem is still present in v3.1.0, I reverted to that (git reset --hard v3.1.0
, git clean -dffx
) then did npm install
and npm start
again. That (as expected) didn't show the GUI.
Moving back to the latest commit again (git clean -dffx
, git pull
) things worked again npm install
, npm start
.
Note - The reason I double checked if the v3.1.0 release was still problematic, is due to upgrading my OpenSUSE Leap system from 15.1 to 15.2 a few days ago. The upgrade did not go smoothly, and needed manual fixing afterwards. Wasn't sure if perhaps this upgrade may have fixed the Pencil non-display-of-GUI issue. Looks like "no". :wink:
In case someone does not have a full development environment setup or does not want to do developer things, a set of nightly builds are always available at https://pencil.evolus.vn/Nightly.html
You can pick a build that works for your operating system and try it out. The builds are done on the 'development' code branch.
Appears to work for me.
Having just installed pencil from the git repo, I couldn't get the window to show when running npm start
. I found this in app/index.js
:
// Line 73
mainWindow.hide();
Commented that out, now it works. Does anyone know why that's there?
I just discovered pencil yesterday. Since there semm to be no RedHat/Fedora specific parts in the fedora rpm I installed it on my machine this morning. And pencil started as expected.
However, I closed it for lunch. And now it doesn't starts but no window apears. I tried to erase and reinstall it. It tried the current night build (Pencil-3.1.0.20200207003003.tar.gz). I tried to remove .pencil and/or .config/Pencil and/or .config/.fontconfig and start pencil. All the same.
What I see is the following:
And the nothing more happens. No window appears.
shows 7 pencil processes (I cut out the central part of the output):
\ /opt/pencil-3.1.0.ga/pencil | \ /opt/pencil-3.1.0.ga/pencil --type=zygote | | \ /opt/pencil-3.1.0.ga/pencil --type=zygote | \_ /opt/pencil-3.1.0.ga/pencil --type=gpu-process --field-trial-handle=17841515868216719661,347 ... | | \ /opt/pencil-3.1.0.ga/pencil --type=broker | \ /opt/pencil-3.1.0.ga/pencil --type=renderer --field-trial-handle=17841515868216719661,347538 ... | \ /opt/pencil-3.1.0.ga/pencil --type=renderer --field-trial-handle=17841515868216719661,347538 ...
Unfortunately, I had already created some files with pencil which I would like keep.
Any ideas what the problem i and how to solve it?
Thanks in advance
R"udiger