igvteam / igv

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

Fix for 2bit reference crash when reading the end of the reference #1586

Closed lbergelson closed 2 months ago

lbergelson commented 2 months ago

@jrobinso Could you make sure this is sane? When the tile loader asks for reference it gets it in chunks of 100000 which was running off the edge of the stream. This seems to fix it but I'm not sure if there are other things to think about with 2bit that I'm not aware of.

The user noticed it on chrM but it also happens at the end of other chromosomes, its' just rare to be there to see it happen.