You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android NDK开发动画遇GLThread SIGSEGV错误求助

解决Android NDK OpenGL动画中的SIGSEGV崩溃问题

嘿,我最近在折腾Android NDK做一个简单的OpenGL动画,结果代码直接崩了!日志里显示:

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 16198 (GLThread 739)

我完全搞不懂这个错误到底啥意思,下面是我Coin.cpp里的部分Render代码:

void Coin::Render(GLuint textureId, GLuint positionHandle, GLuint texCoord, GLint matrixHandle, GLint samplerLoc) {
 // Bind the texture to this unit
 glBindTexture(GL_TEXTURE_2D, textureId);
 // Enable generic vert...

内容的提问来源于stack exchange,提问作者dotGitignore

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:28:41