gosling-lang / gosling.js

Grammar of Scalable Linked Interactive Nucleotide Graphics
https://gosling.js.org
MIT License
158 stars 27 forks source link

Losing WebGL context #457

Open elliothershberg opened 3 years ago

elliothershberg commented 3 years ago

Hi Gosling team 👋

You guys are doing awesome work! On the JBrowse 2 team, we were pretty excited to see this project announced. One thing we want is for our platform to support more cool viz than just the ones we make. I'm experimenting with making an external JB2 plugin for rendering Gosling view inside of our app, and maybe even offering the option to open Gosling views from existing tracks.

I've been experimenting with the examples, and have run into an issue. For several of the demos, when I zoom or pan, sometimes the visualization will mostly disappear. Heres an example from the unedited semantic zoom demo:

2021-08-12 10-56-43 2021-08-12 10_57_52

In the dev console, when this happens I see: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

I'm using the latest version of Chrome on MacOS.

sehilyi commented 3 years ago

Hi @elliothershberg, thank you for the bug report! Also, it is so exciting to hear that the JBrowse 2 team is considering supporting Gosling.js!

I was aware of this issue, but this seems to be much more critical than I expected. This looks to be related to memory (e.g., might be a memory leak in rendering). I will consider this as a high-priority issue and try to fix it soon.

PS. Congratulations on the recent first beta release on JBrowse 2 🎉

elliothershberg commented 3 years ago

Thanks @sehilyi! We definitely have experienced memory issues in the browser too... 😅

Looking forward to seeing all the progress on this great project 🚀