Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
378 views
in Technique[技术] by (71.8m points)

kotlin - Android studio error “E/OpenGLRenderer: GL error: GL_INVALID_VALUE”

I've got this error before crashing my app

E/OpenGLRenderer: GL error:  GL_INVALID_VALUE
A/OpenGLRenderer: GL errors! frameworks/base/libs/hwui/BakedOpRenderer.cpp:67
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 29871 (RenderThread)

Maybe because I load too many images at the same time while using a loop cycle

GlideApp.with(appContext).clear(imagePreview)
            GlideApp.with(imagePreview.context)
                    .load(post.preview)
                    .placeholder(placeholder)
                    .centerCrop()
                    .transition(DrawableTransitionOptions.withCrossFade())
                    .into(imagePreview)

If I split the items to loop, it works, but I'd like to find a way to suspend the cycle and free up space before resuming it. Are there any libraries to do that?

question from:https://stackoverflow.com/questions/66062411/android-studio-error-e-openglrenderer-gl-error-gl-invalid-value

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...