jbwyatt4 / openmeetings

Automatically exported from code.google.com/p/openmeetings
1 stars 0 forks source link

Exporting to JPG (and possibly other formats) - Problems with Documents #981

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After uploading and viewing a document I tried to save it as a JPG.  I 
have swftools installed but I got the following error on my console

ERROR 11-16 16:30:43.722 WhiteboardMapToSVG.java 112490 282 
org.openmeetings.app.data.record.WhiteboardMapToSVG [http-5080-2] - tried 
to include a non supported Graph-Object graphType: swf
ERROR 11-16 16:30:43.723 WhiteboardMapToSVG.java 112491 282 
org.openmeetings.app.data.record.WhiteboardMapToSVG [http-5080-2] - tried 
to include a non supported Graph-Object graphType: swf
ERROR 11-16 16:30:43.723 WhiteboardMapToSVG.java 112491 282 
org.openmeetings.app.data.record.WhiteboardMapToSVG [http-5080-2] - tried 
to include a non supported Graph-Object graphType: swf
DEBUG 11-16 16:30:43.726 ExportToImage.java 112494 149 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
current_dir: /usr/src/openmeetings/./webapps/openmeetings/
DEBUG 11-16 16:30:43.727 ExportToImage.java 112495 150 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
working_dir: /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/
DEBUG 11-16 16:30:43.728 ExportToImage.java 112496 151 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
requestedFileSVG: image_16_11_2009_16_30_43.svg
DEBUG 11-16 16:30:43.728 ExportToImage.java 112496 152 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
resultFileName: image_16_11_2009_16_30_43.jpg
DEBUG 11-16 16:30:43.729 ExportToImage.java 112497 157 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
svgFile: /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_1
1_2009_16_30_43.svg
DEBUG 11-16 16:30:43.729 ExportToImage.java 112497 158 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
resultFile: /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_1
6_11_2009_16_30_43.jpg
DEBUG 11-16 16:30:43.730 ExportToImage.java 112498 159 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
svgFile 
P: /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_11_2009
_16_30_43.svg
DEBUG 11-16 16:30:43.730 ExportToImage.java 112498 160 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - 
resultFile 
P: /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_11_2009
_16_30_43.jpg
DEBUG 11-16 16:30:43.753 GenerateSWF.java 112521 40 
org.openmeetings.app.documents.GeneratePDF [http-5080-2] - process: 
convertImageByTypeAndSizeAndDepth
DEBUG 11-16 16:30:43.754 GenerateSWF.java 112522 41 
org.openmeetings.app.documents.GeneratePDF [http-5080-2] - args: 
[convert, -size, 
1394x758, /usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_
11_2009_16_30_43.svg, /usr/src/openmeetings/./webapps/openmeetings/uploadte
mp/image_16_11_2009_16_30_43.jpg]
DEBUG 11-16 16:30:43.792 GenerateSWF.java 112560 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line:
DEBUG 11-16 16:30:43.793 GenerateSWF.java 112561 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: 
(process:5988): GLib-GObject-WARNING **: invalid unclassed pointer in cast 
to `GObject'
DEBUG 11-16 16:30:43.794 GenerateSWF.java 112562 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line:
DEBUG 11-16 16:30:43.794 GenerateSWF.java 112562 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: 
(process:5988): GLib-GObject-CRITICAL **: g_object_unref: assertion 
`G_IS_OBJECT (object)' failed
DEBUG 11-16 16:30:43.804 GenerateSWF.java 112572 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: convert: 
Memory allocation failed 
`/usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_11_2009_1
6_30_43.svg'.
DEBUG 11-16 16:30:43.805 GenerateSWF.java 112573 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: convert: 
missing an image filename 
`/usr/src/openmeetings/./webapps/openmeetings/uploadtemp/image_16_11_2009_1
6_30_43.jpg'.
DEBUG 11-16 16:30:43.810 GenerateSWF.java 112578 62 
org.openmeetings.app.documents.GeneratePDF [http-5080-2] - exitVal: 1
ERROR 11-16 16:30:43.826 ExportToImage.java 112594 197 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - ERROR
ERROR 11-16 16:26:54.828 ExportToImage.java 356652 197 
org.openmeetings.servlet.outputhandler.ExportToImage [http-5080-2] - ERROR
java.io.FileNotFoundException: /usr/src/openmeetings/./webapps/openmeetings
/uploadtemp/undefined_16_11_2009_16_26_54.jpg (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method) [na:1.6.0]
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) 
[na:1.6.0]
        at org.openmeetings.servlet.outputhandler.ExportToImage.service
(ExportToImage.java:170) [openmeetings.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
[javaee-api-5.1.0-RC3.jar:5.1.0-RC3]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206) [catalina-6.0.20-patched.jar:na]
        at 
org.openmeetings.servlet.outputhandler.ServletRequestExFilter.doFilter
(ServletRequestExFilter.java:31) [openmeetings.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206) [catalina-6.0.20-patched.jar:na]
        at org.red5.logging.LoggerContextFilter.doFilter
(LoggerContextFilter.java:70) [red5.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:433) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:567) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109) [catalina-6.0.20-patched.jar:na]
        at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293) [catalina-6.0.20-patched.jar:na]
        at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:847) [tomcat-coyote-6.0.20-patched.jar:na]
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(Http11Protocol.java:583) [tomcat-coyote-6.0.20-patched.jar:na]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:454) [tomcat-coyote-6.0.20-patched.jar:na]
        at java.lang.Thread.run(Thread.java:636) [na:1.6.0]

and in /usr/src/openmeetings/./webapps/openmeetings/uploadtemp I only had

-rw-r--r-- 1 root root  728 Nov 16 16:26 undefined_16_11_2009_16_26_54.svg

I am using openmeetings_r2630.zip.

Original issue reported on code.google.com by lee.archer@thebigword.com on 17 Nov 2009 at 8:38

GoogleCodeExporter commented 9 years ago
I could not verify the problem.
It seems to me that you did not install ImageMagick correctly.

Original comment by seba.wag...@gmail.com on 17 Nov 2009 at 3:09

GoogleCodeExporter commented 9 years ago
I will have a look.  It is installed, but is there a particular way it needs to 
be 
installed?  I am using CentOS 5.4.

Original comment by lee.archer@thebigword.com on 17 Nov 2009 at 5:32

GoogleCodeExporter commented 9 years ago
I've checked and I've put the paths in for pdf2swf, which is in 
/usr/local/bin/, and 
convert, which is in /usr/bin/, and I still get the same error.

Original comment by lee.archer@thebigword.com on 18 Nov 2009 at 8:59

GoogleCodeExporter commented 9 years ago
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: convert: 
Memory allocation failed 

=> you do not have enough memory to process the conversion

Original comment by seba.wag...@gmail.com on 18 Nov 2009 at 9:09

GoogleCodeExporter commented 9 years ago
Interesting, are there any settings that can be changed as this is a 2GB RAM 
box and 
openmeetings is the only thing running?

Original comment by lee.archer@thebigword.com on 18 Nov 2009 at 9:12

GoogleCodeExporter commented 9 years ago
DEBUG 11-16 16:30:43.792 GenerateSWF.java 112560 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line:
DEBUG 11-16 16:30:43.793 GenerateSWF.java 112561 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: 
(process:5988): GLib-GObject-WARNING **: invalid unclassed pointer in cast 
to `GObject'
DEBUG 11-16 16:30:43.794 GenerateSWF.java 112562 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line:
DEBUG 11-16 16:30:43.794 GenerateSWF.java 112562 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: 
(process:5988): GLib-GObject-CRITICAL **: g_object_unref: assertion 
`G_IS_OBJECT (object)' failed
DEBUG 11-16 16:30:43.804 GenerateSWF.java 112572 148 
org.openmeetings.app.documents.GeneratePDF [Thread-20] - line: convert: 
Memory allocation failed 

=> it does not only seem to be a memory problem
you can finetune openmeetings memory allocation. Also as long as you convert 
only
PDFs and no office formats you can turn off the open office task. It looks like 
you
have some strange versions/builds of ImageMagick, Ghostscript and SWFTools on 
your
engine.

Original comment by seba.wag...@gmail.com on 18 Nov 2009 at 9:27

GoogleCodeExporter commented 9 years ago
Hmm I'm running CentOS 5.4 with a manual build of swftools 0.9 but using the 
CentOS 
builds of OpenOffice, ImageMagick and Ghostscript.  Wonder if anyone else is 
using 
CentOS and has it working?

Original comment by lee.archer@thebigword.com on 18 Nov 2009 at 9:34

GoogleCodeExporter commented 9 years ago
I've rebuild and done a manual install of ImageMagick and I no longer get the 
error.  I do however get a blank image and the following in my logs

ERROR 11-24 11:06:07.812 WhiteboardMapToSVG.java 123581 282 
org.openmeetings.app.data.record.WhiteboardMapToSVG [http-5080-4] - tried to 
include 
a non supported Graph-Object graphType: swf

Any ideas on what I'm missing?

Original comment by lee.archer@thebigword.com on 24 Nov 2009 at 11:15

GoogleCodeExporter commented 9 years ago
Would it be ghostscript related if I can export images to other formats?

Original comment by lee.archer@thebigword.com on 24 Nov 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Anymore ideas on this?  I'ved tried it many ways and now might need to consider 
a 
different OS.  I've manually installed ghostscript, imagemagick, swftools and 
most 
things in between.  

The problem only exists after I have uploaded a PDF which I then try to 
download as 
any other format.  If I upload a JPG I can download that in any format OM will 
allow 
but PDF's always fail.

Original comment by lee.archer@thebigword.com on 17 Feb 2010 at 11:24

GoogleCodeExporter commented 9 years ago
The error I receive is 

ERROR 02-17 10:59:41.366 WhiteboardMapToSVG.java 222680 282 
org.openmeetings.app.data.record.WhiteboardMapToSVG [http-0.0.0.0-5080-4] - 
tried to 
include a non supported Graph-Object graphType: swf

but what is causing this?  Is it convert, ghostscript or something else?

Original comment by lee.archer@thebigword.com on 17 Feb 2010 at 11:25

GoogleCodeExporter commented 9 years ago
hi please hold a second, the Issue you relate to here is different then the 
initial one.
The general Issue is that you cannot export single pages of a document. That is
somehow quite complicated and can result in quality loss. Anyway I did not 
implement
it yet. But we should at least fix it sothat the Image is exported (with a blank
image instead of the Document)

Original comment by seba.wag...@gmail.com on 17 Feb 2010 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 17 Feb 2010 at 11:31

GoogleCodeExporter commented 9 years ago
Hi, yes with PDF's I am trying to save the pages.  Should this be possible?

Original comment by lee.archer@thebigword.com on 17 Feb 2010 at 12:19

GoogleCodeExporter commented 9 years ago
I get a blank page now when trying to save a PDF page as a different format.  
What I 
would like is to save the page if required.

Original comment by lee.archer@thebigword.com on 17 Feb 2010 at 12:20

GoogleCodeExporter commented 9 years ago
This seems to have been resolved.

Original comment by lee.archer@thebigword.com on 29 Sep 2010 at 3:11

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 31 Jan 2012 at 12:23

GoogleCodeExporter commented 9 years ago
OpenMeetings moves to Apache Foundation, update your bookmarks to the new 
project page:

http://incubator.apache.org/openmeetings/

New Issue tracker is located: https://issues.apache.org/jira/browse/OPENMEETINGS

New Mailing Lists located at: 
http://incubator.apache.org/openmeetings/mail-lists.html 

Original comment by seba.wag...@gmail.com on 31 Jan 2012 at 12:25