[Bug 703940] [NEW] gs call from ImageMagick fails

2011-01-17 Thread barun
Public bug reported:

Binary package hint: ghostscript

Hi,

Am using MetaUML to generate diagrams. Mpost is used to generate a PS
file for the diagram. I want to convert that PS file into an image
(JPG/PNG) by invoking convert. I'm encountering errors in the process:

$mpost activity.mp# Generates activity.1, a PS file
$convert -density 100 -flatten  activity.1 activity.png
Error: /undefined in ptmr8r
Operand stack:
   (Eat something good)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
Current allocation mode is local
Current file position is 2345
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
Error: /undefined in ptmr8r
Operand stack:
   (Eat something good)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
Current allocation mode is local
Current file position is 2345
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
convert: Postscript delegate failed `activity.1': No such file or directory @ 
ps.c/ReadPSImage/765.
convert: missing an image filename `activity.png' @ 
convert.c/ConvertImageCommand/2838.

I've tried this with GhostScript versions 8.71 as well as 9.00 with both
giving same error. Can anyone help on this please?

** Affects: ghostscript (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: convert gs imagemagick

** Description changed:

  Binary package hint: ghostscript
  
  Hi,
  
  Am using MetaUML to generate diagrams. Mpost is used to generate a PS
  file for the diagram. I want to convert that PS file into an image
  (JPG/PNG) by invoking convert. I'm encountering errors in the process:
  
+ $mpost activity.mp# Generates activity.1, a PS file
  $convert -density 100 -flatten  activity.1 activity.png
  Error: /undefined in ptmr8r
  Operand stack:
-(Eat something good)
+    (Eat something good)
  Execution stack:
-%interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
+    %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
  Dictionary stack:
---dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
+    --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
  Current allocation mode is local
  Current file position is 2345
  GPL Ghostscript 8.71: Unrecoverable error, exit code 1
  Error: /undefined in ptmr8r
  Operand stack:
-(Eat something good)
+    (Eat something good)
  Execution stack:
-%interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
+    %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   

[Bug 703940] Re: gs call from ImageMagick fails

2011-01-17 Thread barun

** Attachment added: "Contents of activity.1"
   
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/703940/+attachment/1796572/+files/activity.1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703940

Title:
  gs call from ImageMagick fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 703940] Re: gs call from ImageMagick fails

2011-02-26 Thread barun
** Changed in: ghostscript (Ubuntu)
 Assignee: (unassigned) => barun (barun-saha04)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703940

Title:
  gs call from ImageMagick fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 703940] Re: gs call from ImageMagick fails

2011-02-26 Thread barun
The GhostScript team or other relevant members couldn't provide a
solution for this. In fact, this ticket remained in "Unassigned" state
for a month. Today, I suddenly came across the solution, well documented
at http://www.tex.ac.uk/cgi-bin/texfaq2html?label=mpprologues

Hence, I'm closing this bug.

I hereby declare that I  do not wish to take * any * credit for it's
solution. I had opened this bug; now I'm just closing this with URL to
the article suggesting the solution.

** Changed in: ghostscript (Ubuntu)
   Status: New => Opinion

** Changed in: ghostscript (Ubuntu)
   Status: Opinion => Invalid

** Changed in: ghostscript (Ubuntu)
   Status: Invalid => New

** Changed in: ghostscript (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703940

Title:
  gs call from ImageMagick fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 703940] Re: gs call from ImageMagick fails

2011-02-26 Thread barun
The GhostScript team or other relevant members couldn't provide a
solution for this. In fact, this ticket remained in "Unassigned" state
for a month. Today, I suddenly came across the solution, well documented
at http://www.tex.ac.uk/cgi-bin/texfaq2html?label=mpprologues

Hence, I'm closing this bug.

I hereby declare that I do not wish to take * any * credit for it's
solution. I had opened this bug; now I'm just closing this with URL to
the article suggesting the solution.

** Package changed: ghostscript (Ubuntu) => ubuntu

** Changed in: ubuntu
 Assignee: barun (barun-saha04) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703940

Title:
  gs call from ImageMagick fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs