Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AlignmentTrack.java #1245

Closed
wants to merge 2 commits into from
Closed

Update AlignmentTrack.java #1245

wants to merge 2 commits into from

Conversation

CJ-Chen
Copy link
Contributor

@CJ-Chen CJ-Chen commented Oct 25, 2022

"insertionRect" needs to be initialized though not displayed.
It might cause a null pointer exception in Line 709 "Rectangle iRect = new Rectangle(inputRect.x, insertionRect.y, inputRect.width, insertionRect.height);"
when some alignment tracks are displaying insertion markers while others do not.

"insertionRect" needs to be initialized though not displayed.
It might cause a null pointer exception in Line 709 "Rectangle iRect = new Rectangle(inputRect.x, insertionRect.y, inputRect.width, insertionRect.height);"
when some alignment tracks are displaying insertion markers while others do not.
@CJ-Chen
Copy link
Contributor Author

CJ-Chen commented Oct 25, 2022

Sorry for this PR.
It seems that this modification will consume much more time for graph rendering.
I don't know why.

@CJ-Chen
Copy link
Contributor Author

CJ-Chen commented Oct 25, 2022

Maybe we can use "insertionRect.setBounds(rect);" to replace "insertionRect = new Rectangle(rect);" around line 523?

@jrobinso
Copy link
Contributor

I'll investigate when I can find time, but do you have steps to reproduce an issue? In what situation did an error occur?

@CJ-Chen
Copy link
Contributor Author

CJ-Chen commented Oct 27, 2022

I'll investigate when I can find time, but do you have steps to reproduce an issue? In what situation did an error occur?

Here is a genome with two alignment track. One is displaying with “Show Insertion Mark” and the other without selected this option.

And when i click this the insertion mark. It will report a null pointer exception that mention above.

igv.log:
SEVERE [10月 27,2022 14:00] [DataPanel] Error painting DataPanel
SEVERE [10月 27,2022 14:00] [DataPanel] java.lang.NullPointerException
	at org.igv/org.broad.igv.sam.AlignmentTrack.renderExpandedInsertion(AlignmentTrack.java:679)
	at org.igv/org.broad.igv.ui.panel.DataPanelPainter.paintExpandedInsertion(DataPanelPainter.java:214)
	at org.igv/org.broad.igv.ui.panel.DataPanelPainter.paint(DataPanelPainter.java:89)
	at org.igv/org.broad.igv.ui.panel.DataPanel.paintComponent(DataPanel.java:154)

Sorry for the inconvenience.

@jrobinso
Copy link
Contributor

jrobinso commented Nov 7, 2022

I can't reproduce the error just loading tracks, only after loading tracks via a session. So I think this is the same error as reported here: #1252. I will close this PR as a duplicate bug report.

@jrobinso jrobinso closed this Nov 7, 2022
jrobinso added a commit that referenced this pull request Nov 7, 2022
jrobinso added a commit that referenced this pull request Dec 14, 2022
jrobinso added a commit that referenced this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants