JDK-8003272 : Bad performance when calling ImageReader.dispose(), ImageWriter.setOutput() with certain conditions
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • Submitted: 2012-11-12
  • Updated: 2014-11-21
  • Resolved: 2014-08-13
Related Reports
Relates :  
Description
Problem is Linux-x64 specific.

We have IIOReadProgressListener attached to ImageReader. 
For the image format: "wbmp" application freezes for 30 minutes when calling ImageReader.dispose inside one of the listener methods.

Log:
[2012-11-06T19:10:37.45] Calling ImageReader.dispose inside one of the listener methods of ReadProgressListener for the image format: wbmp
[2012-11-06T19:40:38.11] PASS

We have IIOWriteProgressListener attached to ImageWriter. 
For the image format: "wbmp" application freezes for 30 minutes when calling ImageReader.setOutput inside one of the listener methods.

Log:
[2012-11-06T19:40:38.68] Calling ImageReader.setOutput inside one of the listener methods of IIOWriteProgressListener for the image format: wbmp
[2012-11-06T20:10:38.16] PASS

Comments
I have reproduced the problem with 1.7.0_10-b18: in both tests jpeg plugin spends about 30 minutes. However, the problem is not reproducible with 7u65 (1.7.0_65-b40) in the same environment. So a fix which change the test behavior has to be identified.
13-08-2014

Bug is reproducible on JDK 1.7.0.
14-11-2012

I wonder if this is the bad header problem again ? But if this is 7u10 b13 that can't be true. It doesn't have the change for 7113017 So much renumbering of releases its hard to keep track.
13-11-2012

To the submitter: you marked this as "Affects Version: 7" and "Introduced in Release" as 7. But all the comments point to 7u10. Please update the bug being clear about all the releases tested that show this bug. If its only 7u10, fix the "Affects Version". and "Introduced in Release" fields.
13-11-2012

# Test level exit status: 151
12-11-2012

2D_ImageIOTiger/ReadListenerCrashTest 2D_ImageIOTiger/WriteListenerCrashTest
12-11-2012