Export to GitHub

evoluspencil - issue #170

Export to PNG does not work


Posted on May 13, 2010 by Happy Bear

What steps will reproduce the problem? 1. Load the attached EP file; 2. Try exporting to HTML or PNG; 3. Silent failure, no PNGs are created. (and the HTML export hangs, presumably waiting for a PNG that never gets created).

What is the expected output? What do you see instead? The PNGs should be created.

What version of the product are you using? On what operating system? 1.1 build 1 (the latest from the website, 1.1-rc2) Gentoo GNU/Linux I've tried Firefox 3.5.8, 3.6.2, and 3.6.3.

Please provide any additional information below. The attached project used to have 5 pages, neither of the 2 pages that are left can be exported.

Attachments

Comment #1

Posted on Jan 16, 2013 by Helpful Panda

I have the same problem on Ubuntu 12.04, using the 2.0.3 version

Comment #2

Posted on Jan 16, 2013 by Grumpy Horse

Ubuntu 12.10, Pencil 2.0.3. Export to PNG produces no output, but the "Progress" dialog is displayed with a full progress bar.

This happens regardless of whether the "Export page as PNG..." menu option or the "Export Document..." menu item is selected.

Comment #3

Posted on Jan 16, 2013 by Grumpy Horse

Further to my comment: It's not possible to "cancel" the export dialog. The process is not responding. If I close Pencil, I have to end Firefox by using System Monitor and have to restart Pencil.

Comment #4

Posted on Jan 16, 2013 by Helpful Panda

I confirm the last two comments. The same thing happens to me on Ubuntu 12.04, using the 2.0.3 version when I 'Export Document...'

When I "Export page as PNG..." the silent failure occurs.

Comment #5

Posted on Jan 16, 2013 by Grumpy Horse

My issue has been resolved. Ubuntu 12.10 currently is running Firefox 18. When I downgraded Firefox back to version 16 the problem was resolved.

Comment #6

Posted on Jan 24, 2013 by Happy Lion

same problem here, FF18, Pencil 2.0.3, on Linux

Comment #7

Posted on Jan 24, 2013 by Massive Bear

I get this issue as well with Pencil 2.0.3 (and tried 1.3.5 with same results) on Firefox 18 and Kubuntu 12.10.

Comment #8

Posted on Mar 11, 2013 by Happy Lion

it is no compatible with the firefox18,download the xulrunner http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/16.0.2/runtimes/xulrunner-16.0.2.en-US.linux-x86_64.tar.bz2, and unzip to the /opt directory, then editor /usr/bin/pencil change /usr/bin/firefox to /opt/xulrunner/xulrunner, the issue can resolved temporarily!!

Comment #9

Posted on Mar 20, 2013 by Quick Hippo

Have the same problem. I don't understand why this is 'medium' priority - the main functionality is broken for most of the users.

Comment #10

Posted on Mar 21, 2013 by Massive Panda

I can reproduce the same problem, with Ubuntu 12.04 and Firefox 19.0.2, using the 2.03 installed version.

Using the xulrunner resolved it for me, but I had to add the --no-remote switch in the /usr/bin/pencil script.

So, here is the in 3 commands step-by-step fix for others Ubuntu users out there:

  1. Open a terminal and turn into root:

sudo -i

  1. 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

  1. 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

Comment #11

Posted on Mar 28, 2013 by Quick Hippo

Same problem here. I can't export as PNG. This software isn't even usable with such a bug.

Fedora 18, Firefox 19.0.2,, Pencil 2.0.4 & Xulrunner 19.0.2-3.fc18

Comment #12

Posted on Apr 3, 2013 by Grumpy Wombat

I can confirm this issue as well (running 12.04 LTS). Hanging download window, no progress. Was able to save the same file in Windows (however, some of the text was slightly shifted in the text boxes).

Comment #13

Posted on Apr 3, 2013 by Massive Panda

Have you tried the proposed workaround using a manual install of xulrunner 16? I got it working fine under Ubuntu 12.04.

Comment #14

Posted on Apr 9, 2013 by Grumpy Camel

Thanks for the workaround proposed in #10, worked perfectly for me also; having Mint 13 64 bit, Pencil 2.0.3.

Comment #15

Posted on Apr 9, 2013 by Happy Wombat

Comment deleted

Comment #16

Posted on Apr 9, 2013 by Happy Wombat

I have attempted the workaround, but get this error:

/opt/xulrunner/xulrunner: 1: /opt/xulrunner/xulrunner: ELF: not found /opt/xulrunner/xulrunner: 3: /opt/xulrunner/xulrunner: Syntax error: "(" unexpected

Anyone else that had this or knows what to do?

Comment #17

Posted on Apr 9, 2013 by Happy Wombat

I deleted the /opt/xulrunner directory and redid the whole lot and now I get a slightly different error when I run /usr/bin/pencil:

/usr/bin/pencil: line 4: /opt/xulrunner/xulrunner: cannot execute binary file

/usr/bin/pencil contains:

!/bin/bash

#

/opt/xulrunner/xulrunner --app "/usr/share/pencil/application.ini"

Any help?

Comment #18

Posted on Apr 9, 2013 by Massive Panda

Are you sure your system is 64 bit (by system I mean, the kernel you are currently using)? You can check that with the output of the command:

uname -a

For the symptoms it looks like you are trying to run the 64-bit executable on a 32-bit kernel. Maybe you want to try using this one instead: http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/16.0.2/runtimes/xulrunner-16.0.2.en-US.linux-i686.tar.bz2

Comment #19

Posted on Apr 10, 2013 by Happy Wombat

Ah, you're quite right! I never checked that the kernel matches the code and this machine is running 32bit... I'll fix it now. Thanks!

Comment #20

Posted on May 23, 2013 by Massive Kangaroo

Works on Ubuntu 12.10

For 32bit: ---------Begin-------------- wget -O - http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/16.0.2/runtimes/xulrunner-16.0.2.en-US.linux-i686.tar.bz2 | tar xjf - -C /opt && sed -i '/application.ini/ { s|^/usr/bin/firefox|/opt/xulrunner/xulrunner|; s/$/ --no-remote/; }' /usr/bin/pencil ----------END------------- For 64bit: ---------Begin-------------- 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 && sed -i '/application.ini/ { s|^/usr/bin/firefox|/opt/xulrunner/xulrunner|; s/$/ --no-remote/; }' /usr/bin/pencil ----------END-------------

Comment #21

Posted on Jun 10, 2013 by Massive Dog

Thanks @eliasdor ... its working for me.

Comment #22

Posted on Jul 18, 2013 by Swift Bird

Thank you! This works on Ubuntu 12.04 as well.

Comment #23

Posted on Jul 26, 2013 by Happy Hippo

Same issue on Ubuntu 13.04 with Firefox 22.

The solution in comment #10 fixes it.

Comment #24

Posted on Jul 30, 2013 by Helpful Rhino

I had the same issue on Ubuntu 13.04; pencil 2.0.3.

Solution was in comment #10. Thanks!

Comment #25

Posted on Mar 27, 2015 by Helpful Hippo

This is working over at https://github.com/prikhi/pencil

There's no packaged builds yet though - look for those on the Releases page once v2.0.8 hits.

Status: New

Labels:
Type-Defect Priority-Medium