Skip to content

Browser overheight limit results with java heap space #496

Open
@rzepetto

Description

@rzepetto

Describe the bug
After update from 3.1.0 to 3.2.1 i was trying to a run simple test suite which contains a redirect, the redirected page's height was over 52 000 pixels which blocked the test and in the logs we can see this ouput

Height is over browser limit, changing height to 35000
Setting resolution to 1920x35000

As this behaves properly on 3.1.0 and continue on state collection and comparision, it does results on 3.2.1 with below.

15:47:47.931 INFO [ActiveMQ Session Task-22] [Comparator-1] Start comparison for comparator Comparator{type=screen, filters=[], parameters={comparator=layout}} in step Step{index=6, type=screen, name=Tablet, comparators no=1}
15:47:47.931 INFO [ActiveMQ Session Task-22] Starting comparison of Comparator{type=screen, filters=[], parameters={comparator=layout}}
15:47:48.509 INFO [pool-16-thread-2] [w]: COMPARED: [success: 0, total: 5] ::: COLLECTED: [success: 1, total: 1]
15:47:50.469 INFO [ActiveMQ Session Task-19] [Collector-1] Successfully collected from 1/1 urls.
15:47:51.042 ERROR [ActiveMQ Session Task-21] Error in thread 'ActiveMQ Session Task-21'
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(DataBufferByte.java:92)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:445)
at java.awt.image.Raster.createWritableRaster(Raster.java:941)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1074)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2892)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1317)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1614)
at javax.imageio.ImageIO.read(ImageIO.java:1448)
at javax.imageio.ImageIO.read(ImageIO.java:1352)
at com.cognifide.aet.job.common.comparators.layout.LayoutComparator.compare(LayoutComparator.java:101)
at com.cognifide.aet.worker.impl.ComparatorDispatcherImpl.run(ComparatorDispatcherImpl.java:66)
at com.cognifide.aet.worker.listeners.ComparatorMessageListener.onMessage(ComparatorMessageListener.java:77)
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1404)
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

  • Version used: 3.2.1

To Reproduce
Steps to reproduce the behavior:
Use a page that height is over 35k pixels

Expected behavior
There should be no java heap space error.

Screenshots
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsize mediumIssues that would require some thinking and tinkering to fixsum20

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions