gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

Losing WebGL context

Open elliothershberg opened this issue 2 years ago • 2 comments

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.

elliothershberg avatar Aug 12 '21 18:08 elliothershberg

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 🎉

sehilyi avatar Aug 13 '21 13:08 sehilyi

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

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

elliothershberg avatar Aug 13 '21 14:08 elliothershberg