igvteam / igv

Integrative Genomics Viewer. Fast, efficient, scalable visualization tool for genomics data and annotations
https://igv.org
MIT License
646 stars 387 forks source link

"Unexpected error repainting view. See igv.log for details" error message #1488

Closed ubuntolog closed 9 months ago

ubuntolog commented 9 months ago

The above mentioned error message pops up constantly after loading a sample. unnamed

I also noticed a visible rendering problem unnamed

I found this in the log file

SEVERE [Feb 02,2024 09:29] [DataPanel] Error painting DataPanel
SEVERE [Feb 02,2024 09:29] [DataPanel] java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
                at org.igv/org.broad.igv.sam.AlignmentRenderer.drawAlignment(AlignmentRenderer.java:712)
                at org.igv/org.broad.igv.sam.AlignmentRenderer.drawPairedAlignment(AlignmentRenderer.java:509)
                at org.igv/org.broad.igv.sam.AlignmentRenderer.renderAlignments(AlignmentRenderer.java:363)
                at org.igv/org.broad.igv.sam.AlignmentTrack.renderAlignments(AlignmentTrack.java:655)
                at org.igv/org.broad.igv.sam.AlignmentTrack.render(AlignmentTrack.java:555)
                at org.igv/org.broad.igv.ui.panel.DataPanelPainter.draw(DataPanelPainter.java:236)
                at org.igv/org.broad.igv.ui.panel.DataPanelPainter.paintFrame(DataPanelPainter.java:177)
                at org.igv/org.broad.igv.ui.panel.DataPanelPainter.paint(DataPanelPainter.java:111)
                at org.igv/org.broad.igv.ui.panel.DataPanel.paintComponent(DataPanel.java:151)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at org.igv/org.broad.igv.ui.panel.DataPanelContainer.paintChildren(DataPanelContainer.java:155)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JViewport.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JLayeredPane.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
                at java.desktop/javax.swing.JComponent.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
                at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown Source)
                at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
                at java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
                at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
                at java.desktop/javax.swing.JComponent._paintImmediately(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
                at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
                at org.igv/org.broad.igv.ui.IGV.lambda$repaint$14(IGV.java:2248)
                at org.igv/org.broad.igv.ui.util.UIUtilities.invokeAndWaitOnEventThread(UIUtilities.java:166)
                at org.igv/org.broad.igv.ui.IGV.repaint(IGV.java:2235)
                at org.igv/org.broad.igv.ui.IGV.repaint(IGV.java:2225)
                at org.igv/org.broad.igv.ui.IGV.repaint(IGV.java:2209)
                at org.igv/org.broad.igv.batch.CommandExecutor.execute(CommandExecutor.java:250)
                at org.igv/org.broad.igv.batch.CommandListener.lambda$processClientSession$0(CommandListener.java:269)
                at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
                at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
                at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
                at java.base/java.security.AccessController.doPrivileged(Unknown Source)
                at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
                at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

RNA samples are displayed correctly (no error messages). The issue appeared in the version 2.17.1 Version 2.17.0 worked as expected

jrobinso commented 9 months ago

Thanks for the report. I can reproduce and have fixed the "unexpected error" issue, however I can't reproduce the rendering issue. It might have been a side effect of the error.

jrobinso commented 9 months ago

The fix for "Unexpected error repainting view" has been released with 2.17.2. If the rendering error recurs please open another ticket with enough details to hopefully reproduce. Thanks.

ubuntolog commented 9 months ago

Thank you. I will let you know, if the rendering issue persists

lolhangman commented 8 months ago

Hello we have the same issue on a windows machine using package IGV 2.17.3 java included

jrobinso commented 8 months ago

@lolhangman Please include the error trace from the igv.log contents as @ubuntolog did, along with steps to reproduce.

helgathorv commented 8 months ago

@lolhangman You may have run into a problem that @jrobinso has already fixed but has not been released. Can you try the snapshot build at https://igv.org/doc/desktop/#DownloadSnapshot/ and let us know if that fixes it for you. If not, please provide the log and steps to reproduce.

ubuntolog commented 8 months ago

I briefly tested 2.17.3 and did not see the bug. We are planning to switch to 2.17.3 soon. At the moment we are still using a snapshot version (built immediately after closing this issue) .

lolhangman commented 8 months ago

Thank you for your help. Unfortunately I don't have the logs as it was not on my computer but I asked the person to test the snapshot version you gave us. I'll let you know the result asap

jrobinso commented 8 months ago

OK, the error message is a generic one and is not enough for us to diagnose the problem.