com.atlassian.jira.issue.attachment.AttachmentReadException: Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source)

Atlassian JIRA | Harold Murn | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3. Summary If an exception occurs during the processing of a thumbnail (such as a corrupt jpg), JIRA will not record the failure, and the next time the resource is requested, it will generate it (and fail) again. Typically on those issue that failed due to the condition: {noformat} 2015-09-11 21:24:41.272460500 2015-09-11 21:24:41,267 ajp-nio-127.0.0.104-8009-exec-1063 WARN sysadmin 1283x137820x1 t77wfs 202.68.74.170,104.192.141.33 /browse/DD-108 [c.a.j.issue.thumbnail.DefaultThumbnailManager] Error writing to thumbnail file: /data/jirastudio/jira/home/data/attachments/TEST/10000/TEST-108/thumbs/_thumb_45662.png1391332809470942590.tmp 2015-09-11 21:24:41.272467500 com.atlassian.jira.issue.attachment.AttachmentReadException: Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source) 2015-09-11 21:24:41.272800500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source) 2015-09-11 21:24:41.272800500 at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) 2015-09-11 21:24:41.272800500 at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) 2015-09-11 21:24:41.272812500 at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) {noformat} h3. Expected Result This should be tracked even in the event of catastrophic failure (such as OOME taking down the application), and thus the attempt should be recorded and committed before the attempt, not after. When it fails, it should disable the thumbnail from being generated again by marking {{thumbnailable}} on the {{fileattachment}} table to 0 h3. Actual Result It will take a very long time to load the issue, and fail the page load. Multiple reload will still hit into the same issue. Potential piling up the memory if it keeps loaded. h3. Workaround Identify from the error message which image is causing the error, for example in the above error it is image id 45662. Shut down JIRA, take a backup of the database and then run: {noformat} update fileattachment set thumbnailable = 0 where id in (<image ids you identified above>) {noformat}

    Atlassian JIRA | 2 years ago | Harold Murn
    com.atlassian.jira.issue.attachment.AttachmentReadException: Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source)
  2. 0

    h3. Summary If an exception occurs during the processing of a thumbnail (such as a corrupt jpg), JIRA will not record the failure, and the next time the resource is requested, it will generate it (and fail) again. Typically on those issue that failed due to the condition: {noformat} 2015-09-11 21:24:41.272460500 2015-09-11 21:24:41,267 ajp-nio-127.0.0.104-8009-exec-1063 WARN sysadmin 1283x137820x1 t77wfs 202.68.74.170,104.192.141.33 /browse/DD-108 [c.a.j.issue.thumbnail.DefaultThumbnailManager] Error writing to thumbnail file: /data/jirastudio/jira/home/data/attachments/TEST/10000/TEST-108/thumbs/_thumb_45662.png1391332809470942590.tmp 2015-09-11 21:24:41.272467500 com.atlassian.jira.issue.attachment.AttachmentReadException: Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source) 2015-09-11 21:24:41.272800500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source) 2015-09-11 21:24:41.272800500 at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) 2015-09-11 21:24:41.272800500 at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) 2015-09-11 21:24:41.272812500 at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) {noformat} h3. Expected Result This should be tracked even in the event of catastrophic failure (such as OOME taking down the application), and thus the attempt should be recorded and committed before the attempt, not after. When it fails, it should disable the thumbnail from being generated again by marking {{thumbnailable}} on the {{fileattachment}} table to 0 h3. Actual Result It will take a very long time to load the issue, and fail the page load. Multiple reload will still hit into the same issue. Potential piling up the memory if it keeps loaded. h3. Workaround Identify from the error message which image is causing the error, for example in the above error it is image id 45662. Shut down JIRA, take a backup of the database and then run: {noformat} update fileattachment set thumbnailable = 0 where id in (<image ids you identified above>) {noformat}

    Atlassian JIRA | 2 years ago | Harold Murn
    com.atlassian.jira.issue.attachment.AttachmentReadException: Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source)

    Root Cause Analysis

    1. com.atlassian.jira.issue.attachment.AttachmentReadException

      Remote blobstore couldn't provide an input stream for attachment 45662: java.awt.image.RasterFormatException: (y + height) is outside of Raster 2015-09-11 21:24:41.272795500 at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1248) 2015-09-11 21:24:41.272796500 at sun.awt.image.ByteInterleavedRaster.createChild(ByteInterleavedRaster.java:1208) 2015-09-11 21:24:41.272797500 at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.readImageAsRasterAndReplaceColorProfile(Unknown Source)

      at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read()
    2. TwelveMonkeys :: ImageIO :: JPEG plugin
      JPEGImageReader.read
      1. com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
      1 frame
    3. com.atlassian.core
      Thumber.createThumbnail
      1. com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231)
      2. com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291)
      2 frames