Can't produce Thumbnails!

84 views
Skip to first unread message

Chris Clawson

unread,
Jun 20, 2020, 10:21:28 PM6/20/20
to DSpace Technical Support
DSpace 6.3
Ubuntu 18.04

I just imported 1440 items to my database, using SimplaArchiveFormat. This all seemed to work fine and the new items can be searched and viewed. The image bitstreams will display fine, when viewed.
I can't create thumbnails! I even attempted create a single thumbnail with /dspace/bin/dspace filter-media -i 123456789/3787

Shouldn't this work immediately after import? The command "free -m" tells me two thirds of my system memory is still available.

root@melo3:~# /dspace/bin/dspace filter-media -i 123456789/3587
File: E-Wells-Co-7-11-2018.679.jpg.jpg
!!! OutOfMemoryError !!!
FILTERED: bitstream d95f9b7f-7484-4287-93cd-379dcddce34c (item: 123456789/3587) and created 'E-Wells-Co-7-11-2018.679.jpg.jpg'
File: E-Wells-Co-7-11-2018.679.jpg.jpg
ERROR filtering, skipping bitstream #d95f9b7f-7484-4287-93cd-379dcddce34c java.io.IOException: Error: Header doesn't contain versioninfo
java.io.IOException: Error: Header doesn't contain versioninfo
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:244)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:966)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:868)
        at org.dspace.app.mediafilter.PDFBoxThumbnail.getDestinationStream(PDFBoxThumbnail.java:80)
        at org.dspace.app.mediafilter.MediaFilterServiceImpl.processBitstream(MediaFilterServiceImpl.java:361)
        at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterBitstream(MediaFilterServiceImpl.java:287)
        at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterItem(MediaFilterServiceImpl.java:181)
        at org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersItem(MediaFilterServiceImpl.java:159)
        at org.dspace.app.mediafilter.MediaFilterCLITool.main(MediaFilterCLITool.java:315)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
root@melo3:~#

Chris Clawson

unread,
Jun 21, 2020, 1:47:09 AM6/21/20
to DSpace Technical Support

Okay- Maybe this has something to do with the large image pixel size 4000 x 6000 of the jpgs. Where can I adjust the amount of memory available for the 'dspace filter-media' command?

Alan Orth

unread,
Jun 22, 2020, 3:28:17 AM6/22/20
to Chris Clawson, DSpace Technical Support
Dear Chris,

You can set it directly on the command line using JAVA_OPTS:

$ export JAVA_OPTS="-Xmx1024m -Dfile.encoding=UTF-8"
$ dspace filter-media

The default memory heap in the `dspace` script is 256m.

Regards,

On Sun, Jun 21, 2020 at 8:47 AM Chris Clawson <industr...@gmail.com> wrote:

Okay- Maybe this has something to do with the large image pixel size 4000 x 6000 of the jpgs. Where can I adjust the amount of memory available for the 'dspace filter-media' command?

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3e476a8a-337a-465b-af16-e4a2052009d0o%40googlegroups.com.


--

Chris Clawson

unread,
Jun 23, 2020, 6:21:18 PM6/23/20
to DSpace Technical Support
Thank You.
This limit will affect the ability to generate thumbnails for larger file size bitstreams. Once I lowered my image resolution, I found it easier for the system to produce thumbnails. Got it. Memory related, and using the command you describe will raise the limit.

Alan Orth

unread,
Jun 27, 2020, 1:59:03 AM6/27/20
to Chris Clawson, DSpace Technical Support
Yes you're right. Those are quite large dimensions for a thumbnail. Also DSpace's default Java heap size hasn't changed in a decade and PDFs have all gotten bigger!

Regards,

On Wed, Jun 24, 2020, 01:21 Chris Clawson <industr...@gmail.com> wrote:
Thank You.
This limit will affect the ability to generate thumbnails for larger file size bitstreams. Once I lowered my image resolution, I found it easier for the system to produce thumbnails. Got it. Memory related, and using the command you describe will raise the limit.

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages