Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to use the latest Pencil (version 2.0.3) in Ubuntu 12.04, but the PNG exporting does not work, with Pencil working both inside and outside Firefox (which is 19.0.2).

The export page as PNG dialog asks for where to put the file but fails silently after that, and the export document using any HTML template gets you this dialog stalled forever:

enter image description here

How can I fix it?

share|improve this question
To whoever voted to close this: do you care to comment? I really fail to see why this question is inappropriate here. – elias Mar 21 '13 at 16:19
While I am not the person who voted, that vote is an off-topic vote. That usually means they think this is a bug. – Seth Mar 24 '13 at 3:18
@Seth oh, I see... Thanks! Well, I understand that bug reports aren't really appropriated here, but this is not really a report: it's an explanation on how to apply a workaround. I fail to see why this is inappropriated. – elias Mar 24 '13 at 16:32
Yes I see that. Looks good to me. The vote should eventually expire anyway. – Seth Mar 24 '13 at 17:05
up vote 20 down vote accepted

UPDATE: Before trying this workaround, you may want to try the latest version provided by this community fork:

This is a bug filed several times, and a workaround is available at:

The workaround is to use plain xulrunner to run Pencil instead of Firefox, then the problem disappears. You can download xulrunner from here, extract it somewhere and use it to run Pencil like this:

xulrunner --app /usr/share/pencil/application.ini --no-remote

The --no-remote is for xulrunner not to try to reuse an existing Firefox instance running. You may need to change the path to pencil's application.ini, depending how you have it installed.

If you have installed Pencil with the official .deb provided by Evolus here, you can follow these quick steps:

  1. Open a terminal and turn into root:

    sudo -i

  2. Then, download xulrunner (17Mb) and extract into /opt:

    wget -O - | tar xjf - -C /opt

  3. Change the Pencil executable script to run with xulrunner instead of Firefox:

    sed -i '/application.ini/ { s|^/usr/bin/firefox|/opt/xulrunner/xulrunner|; s/$/ --no-remote/; }' /usr/bin/pencil

share|improve this answer
tnx work fine (Ubuntu 13.04 x64) – JoZ3 Jul 11 '13 at 23:16
Works perfect for me as I had this issue in Ubuntu 14.04 LTS. – mickburkejnr Jun 5 '15 at 11:00
Unfortunately, this didn't work for me with the latest 2.0.5 xpi - it worked as plugin in Firefox 39, but not as standalone; to get the standalone, I had to use the fork, do the ./ linux, and then /path/to/firefox --app Outputs/Linux/application.ini --console --no-shared from the same, build directory - that both ran, and did the export correctly. – sdaau Jul 29 '15 at 13:31
Works in 14.04 Ubuntu 64 bit. It is important to use the version 16.0.2 of xulrunner, trying to download the latest will not resolve the isssue – vumaasha Sep 27 '15 at 10:36

I ran into the same issue. If you don't mind going down one minor version to 2.0.2 it's packaged with xulrunner as part of the deb, which will resolve this particular issue.



share|improve this answer
nice to know, thanks! :) – elias May 11 '13 at 17:27

The Pencil project is on GitHub now

Find the latest releases here:

Upgrading to the latest (v2.0.13 when writing this) fixed the issue for me.

share|improve this answer
Yes! the solution works! – Milad Sobhkhiz Apr 6 at 18:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.