Screenshot image dimensions are too large

27 views
Skip to first unread message

medv...@gmail.com

unread,
Aug 17, 2017, 3:10:45 AM8/17/17
to Geb User Mailing List
hi,
did anybody encounter this exception before?

    java.lang.IllegalArgumentException: Dimensions (width=10837463 height=2023) are too large
        at java
.awt.image.SampleModel.<init>(SampleModel.java:130)
        at java
.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:144)
        at java
.awt.image.Raster.createPackedRaster(Raster.java:773)
        at java
.awt.image.Raster.createPackedRaster(Raster.java:475)
        at java
.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
        at java
.awt.image.BufferedImage.<init>(BufferedImage.java:324)
        at geb
.report.ExceptionToPngConverter.createImage(ExceptionToPngConverter.groovy:74)
        at geb
.report.ExceptionToPngConverter.convertLines(ExceptionToPngConverter.groovy:59)
        at geb
.report.ExceptionToPngConverter.convert(ExceptionToPngConverter.groovy:40)
        at geb
.report.ScreenshotReporter.writeReport(ScreenshotReporter.groovy:44)
        at geb
.report.CompositeReporter.writeReport(CompositeReporter.groovy:31)
        at geb
.Browser.report(Browser.groovy:927)
        at geb
.spock.GebReportingSpec.report(GebReportingSpec.groovy:59)

where are the dimension limits specified?

how can I prevent the exception above?

thank you,
Roland

Marcin Erdmann

unread,
Aug 17, 2017, 3:27:05 AM8/17/17
to Geb User Mailing List
I suspect it's driver specific. Which driver are you using?

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/ae544a9c-377c-411a-9edc-b3b73eb1c783%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

medv...@gmail.com

unread,
Aug 17, 2017, 4:21:00 AM8/17/17
to Geb User Mailing List
firefox 51.0.1, selenium 3.0.1
using docker in selenium grid
Reply all
Reply to author
Forward
0 new messages