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

业务层显存泄漏 ---- E/libEGL: call to OpenGL ES API with no current context (logged once per thread) #144

Closed
XJiong opened this issue Mar 2, 2022 · 2 comments
Assignees

Comments

@XJiong
Copy link

XJiong commented Mar 2, 2022

Bug 描述

image

问题

业务层调用pag渲染环节出现显存泄漏,并偶现黑屏,日志如上所示。

环境

libpag 版本:-android(v3.3.0.166)

@XJiong
Copy link
Author

XJiong commented Mar 2, 2022

原因:资源释放顺序问题;
业务层GLSurfaceView 先释放了,后续在进行释放pag资源的时候,已经没有glContext了,所以产生了显存泄漏。
具体顺序如下图所示:
image

@domchen
Copy link
Collaborator

domchen commented Mar 2, 2022

没有GLContext的时候,关联的GPU资源就已经都释放了。这个就是OpenGL的内存管理机制。

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

No branches or pull requests

3 participants