java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • There are two problems: 1. OOM 2. Incoming email processing is blocked Looks like this is similar problem to JRA-35816, fixed in atlassian-core, but mail handler does not use atlassian-core. It affects production OnDemand, all instances. {code}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid9943.hprof ... Heap dump file created [295513170 bytes in 1,603 secs] 2014-04-25 17:19:35,812 http-bio-8090-exec-12 ERROR admin 1039x1167x1 1vj4fgc 127.0.0.1 /rest/jira-mail-plugin/1.0/message-handlers/test [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:728) at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1550) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.containsJiraMetadata(GeneratedAttachmentRecogniser.java:64) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.<init>(GeneratedAttachmentRecogniser.java:32) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.isJiraGeneratedAttachment(AbstractMessageHandler.java:836) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.shouldAttach(AbstractMessageHandler.java:779) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler$2.handlePart(AbstractMessageHandler.java:619) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:691) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:683) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:652) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:413) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:306) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource$1.run(MessageHandlersResource.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:57) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:28) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource.testHandler(MessageHandlersResource.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {code}
    via by Grzegorz Tańczyk,
  • There are two problems: 1. OOM 2. Incoming email processing is blocked Looks like this is similar problem to JRA-35816, fixed in atlassian-core, but mail handler does not use atlassian-core. It affects production OnDemand, all instances. {code}java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid9943.hprof ... Heap dump file created [295513170 bytes in 1,603 secs] 2014-04-25 17:19:35,812 http-bio-8090-exec-12 ERROR admin 1039x1167x1 1vj4fgc 127.0.0.1 /rest/jira-mail-plugin/1.0/message-handlers/test [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:728) at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1550) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.containsJiraMetadata(GeneratedAttachmentRecogniser.java:64) at com.atlassian.jira.plugins.mail.handlers.GeneratedAttachmentRecogniser.<init>(GeneratedAttachmentRecogniser.java:32) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.isJiraGeneratedAttachment(AbstractMessageHandler.java:836) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.shouldAttach(AbstractMessageHandler.java:779) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler$2.handlePart(AbstractMessageHandler.java:619) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:691) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:683) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:652) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:413) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:306) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource$1.run(MessageHandlersResource.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:57) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:28) at com.atlassian.jira.plugins.mail.rest.MessageHandlersResource.testHandler(MessageHandlersResource.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {code}
    via by Grzegorz Tanczyk,
  • h3. Summary After attaching *certain* png images to an issue, the issue will no longer be accessible. The page will just load continuously with {{Java Heap Space}} being thrown in the logs h3. Environment * JIRA 6.4.x * Java7 h3. Steps to Reproduce # Install JIRA 6.4.x while using Java7 # Create a project with several issues # Attempt to attach the affected image to an issue #* After attaching an image to a JIRA issue, the image doesn't seem to be successfully attached. It will just be stuck in the following screenshot !stuck.png|thumbnail! # Click *Cancel* or refresh the page h3. Expected Results # The image is attached without any problems # Refreshing the page will load the issue as per normal h3. Actual Results # Image is attached to the issue but a thumbnail will fail to be generates The below exception is thrown in the atlassian-jira.log file: {noformat}2015-07-22 15:33:55,179 file-attachment-store:thread-2 ERROR admin 933x119x2 1t0ctls 0:0:0:0:0:0:0:1 /plugins/servlet/streams [core.util.thumbnail.Thumber] Unable to create thumbnail image for id 11817 javax.imageio.IIOException: Error reading PNG metadata at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:769) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.EOFException at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:353) at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:361) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:746) ... 17 more 2015-07-22 15:33:55,205 http-bio-8080-exec-10 WARN admin 933x127x2 1t0ctls 0:0:0:0:0:0:0:1 /browse/USIM-103 [jira.issue.thumbnail.DefaultThumbnailManager] Error writing to thumbnail file: C:\Program Files\Atlassian\Application Data\JIRA6.4.4\data\attachments\USIM\USIM-103\thumbs\_thumb_11816.png7671839753314540877.tmp com.atlassian.jira.issue.attachment.AttachmentReadException: java.lang.NegativeArraySizeException at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:182) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NegativeArraySizeException at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleIm age(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) ... 5 more{noformat} # When trying to view the issue again, the page will just load continuously. The following will be thrown in catalina.out {noformat}Exception in thread "file-attachment-store:thread-6" java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Exception in thread "file-attachment-store:thread-7" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-8" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-10" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-11" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-12" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-13" java.lang.OutOfMemoryError: Java heap space{noformat} h3. Notes # Seems to be related to Java version #* After updating Java to version 8, the issue can be viewed but the thumbnail is still not generated # Problem does *not* happen with JIRA 6.3.15 (Java7) # Since JIRA 6.4 supports both Java 7 & 8, JIRA shouldn't be affected by this when Java 7 is used h3.Workaround # Manually generate the thumbnail for this image (instructions found [here|https://confluence.atlassian.com/display/JIRAKB/Unable+to+View+Issue+in+JIRA+after+Attaching+a+PNG+File]); OR # Upgrade your JAVA version to 1.8.0_05 and above
    via by Woo Yit Wei [Atlassian],
  • h3. Summary After attaching *certain* png images to an issue, the issue will no longer be accessible. The page will just load continuously with {{Java Heap Space}} being thrown in the logs h3. Environment * JIRA 6.4.x * Java7 h3. Steps to Reproduce # Install JIRA 6.4.x while using Java7 # Create a project with several issues # Attempt to attach the affected image to an issue #* After attaching an image to a JIRA issue, the image doesn't seem to be successfully attached. It will just be stuck in the following screenshot !stuck.png|thumbnail! # Click *Cancel* or refresh the page h3. Expected Results # The image is attached without any problems # Refreshing the page will load the issue as per normal h3. Actual Results # Image is attached to the issue but a thumbnail will fail to be generates The below exception is thrown in the atlassian-jira.log file: {noformat}2015-07-22 15:33:55,179 file-attachment-store:thread-2 ERROR admin 933x119x2 1t0ctls 0:0:0:0:0:0:0:1 /plugins/servlet/streams [core.util.thumbnail.Thumber] Unable to create thumbnail image for id 11817 javax.imageio.IIOException: Error reading PNG metadata at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:769) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.EOFException at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:353) at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:361) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:746) ... 17 more 2015-07-22 15:33:55,205 http-bio-8080-exec-10 WARN admin 933x127x2 1t0ctls 0:0:0:0:0:0:0:1 /browse/USIM-103 [jira.issue.thumbnail.DefaultThumbnailManager] Error writing to thumbnail file: C:\Program Files\Atlassian\Application Data\JIRA6.4.4\data\attachments\USIM\USIM-103\thumbs\_thumb_11816.png7671839753314540877.tmp com.atlassian.jira.issue.attachment.AttachmentReadException: java.lang.NegativeArraySizeException at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:182) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NegativeArraySizeException at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleIm age(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) ... 5 more{noformat} # When trying to view the issue again, the page will just load continuously. The following will be thrown in catalina.out {noformat}Exception in thread "file-attachment-store:thread-6" java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1229) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:231) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874) at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141) at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178) at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62) at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Exception in thread "file-attachment-store:thread-7" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-8" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-10" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-11" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-12" java.lang.OutOfMemoryError: Java heap space Exception in thread "file-attachment-store:thread-13" java.lang.OutOfMemoryError: Java heap space{noformat} h3. Notes # Seems to be related to Java version #* After updating Java to version 8, the issue can be viewed but the thumbnail is still not generated # Problem does *not* happen with JIRA 6.3.15 (Java7) # Since JIRA 6.4 supports both Java 7 & 8, JIRA shouldn't be affected by this when Java 7 is used h3.Workaround # Manually generate the thumbnail for this image (instructions found [here|https://confluence.atlassian.com/display/JIRAKB/Unable+to+View+Issue+in+JIRA+after+Attaching+a+PNG+File]); OR # Upgrade your JAVA version to 1.8.0_05 and above
    via by Woo Yit Wei [Atlassian],
    • java.lang.OutOfMemoryError: Java heap space at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:745) at com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1567) at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:97) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120) at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72) at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:103) at org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedResource(AbstractPOIFSExtractor.java:126) at org.apache.tika.parser.microsoft.WordExtractor.handlePictureCharacterRun(WordExtractor.java:500) at org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:270) at org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:197) at org.apache.tika.parser.microsoft.WordExtractor.handleHeaderFooter(WordExtractor.java:170) at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:100) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:201) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:172) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120) at org.apache.tika.Tika.parseToString(Tika.java:465) at org.apache.tika.Tika.parseToString(Tika.java:577)
    No Bugmate found.