-
Notifications
You must be signed in to change notification settings - Fork 19
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
实现轮播效果时,如果使用blob方式加载图像,16次后webgl会崩溃 #15
Comments
可以确认内置的plot组件存在内存泄露 |
通过修改原码,可以极大的延缓内存溢出的时间,但是经测试300+以后还是会内存溢出。 1327行 将OffscreenCanvas对象全局化, 1331行 创建create3DContext使用全局化的offscreenCanvas 在destory方法中增加以下代码
|
将TIFFImageryProvider的destory增加 |
元凶找到,按照作者的指导,修改 彻底解决问题 |
出现
WARNING: Too many active WebGL contexts. Oldest context will be lost.
然后出现
TypeError: Cannot read properties of null (reading 'createShader')
at createProgram (index.js:1122:1)
at new plot (index.js:1334:1)
at TIFFImageryProvider.eval (index.js:2156:1)
at Generator.next ()
at fulfilled (index.js:22:1)
`let i = 0;
window.setInterval(async () => {
The text was updated successfully, but these errors were encountered: