Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
1  
Yes I see that. Looks good to me. The vote should eventually expire anyway. –  Seth Mar 24 '13 at 17:05
add comment

2 Answers 2

up vote 8 down vote accepted

This is a bug filed several times, and a workaround is available at: http://code.google.com/p/evoluspencil/issues/detail?id=170

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 - http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/16.0.2/runtimes/xulrunner-16.0.2.en-US.linux-x86_64.tar.bz2 | 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
add comment

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.

2.0.2_amd64

2.0.2_i386

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

Your Answer

 
discard

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.