Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-4128

Resizing overview quickly with solid-drags enabled causes exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.11.3.0, 2.11.3
    • Fix Version/s: 2.11.3.0
    • Component/s: gui
    • Labels:
    • Sprint:
      2.11.3.0 release

      Description

      Solid drags in flatlaf result in more redraws, it seems, and concurrency issues.

      Load the example file, show the overview window, and then click-drag resize the overview quickly. I saw exceptions like the following (Java 11, OSX 12.6.3) - these weren't occuring on java 8 2.11.2.6.

      Exception in thread "AWT-EventQueue-0" java.awt.image.RasterFormatException: (x + width) is outside raster
      at java.desktop/sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInterleavedRaster.java:463)
      at java.desktop/java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1202)
      at jalview.gui.OverviewCanvas.paintComponent(OverviewCanvas.java:226)
      at java.desktop/javax.swing.JComponent.paint(JComponent.java:1074)

      Should be a simple fix ?

        Attachments

          Activity

            People

            Assignee:
            soares Ben Soares
            Reporter:
            jprocter James Procter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: