View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000772YaCy[All Projects] Generalpublic2017-10-19 08:452019-07-28 08:38
Assigned To 
PlatformOSLinux DebianOS VersionStretch
Product VersionYaCy 1.9 
Target VersionFixed in Version 
Summary0000772: Error rezising JPEG snapshot resizing with OpenJDK
DescriptionCalling the /api/snapshot.jpg with image size parameters different from defaults (width=1024&height=1204) results in a HTTP 500 error on a YaCy peer running on OpenJDK 8 on a Linux Debian 9 machine.
It does not occur when running with the Oracle JDK on the same computer.
Steps To ReproduceExample URL : http://localhost:8090/api/snapshot.jpg?url=http://www.debian.org/distrib/index.fr.html&width=256&height=256 [^]
Additional InformationThe following error appears in logs :

 [java] javax.imageio.IIOException: Invalid argument to native writeImage
 [java] at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
 [java] at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1067)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
luc (reporter)
2017-10-19 09:31

Looks like related to a known OpenJDK bug (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044758 [^]).

Fixed in YaCy by removing any alpha component from the rendered resized snapshot (see commit https://github.com/yacy/yacy_search_server/commit/1de86cf1bf35698359b3c1a7e32a32cdc5ba32b8 [^])

- Issue History
Date Modified Username Field Change
2017-10-19 08:45 luc New Issue
2017-10-19 09:31 luc Note Added: 0001487

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker