zhanxiaokai / android-openglrenderer Goto Github PK
View Code? Open in Web Editor NEWAn OpenGLRenderer For Android Platform
An OpenGLRenderer For Android Platform
********** Crash dump: **********
Build fingerprint: 'HUAWEI/BLA-AL00/HWBLA:8.0.0/HUAWEIBLA-AL00/131(C00):user/release-keys'
pid: 24836, tid: 24836, name: m.sample.opengl >>> com.sample.opengl <<<
signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xc881de9a
Stack frame #00 pc 0000de9a /data/app/com.sample.opengl--gF942BJV-wmf8Rmqbe2kQ==/lib/arm/libsongstudio.so (_ZN13PngPicDecoder8openFileEPc+109): Routine PngPicDecoder::openFile(char*) at /Users/study/OpenGLSample/app/src/main/cpp/libpng/png_decoder.cpp:18
Stack frame #1 pc 0000cf7b /data/app/com.sample.opengl--gF942BJV-wmf8Rmqbe2kQ==/lib/arm/libsongstudio.so (_ZN20PicPreviewController5startEPc+78): Routine PicPreviewController::start(char*) at /Users/study/OpenGLSample/app/src/main/cpp/librender/pic_preview_controller.cpp:25
Stack frame #2 pc 0000cbbd /data/app/com.sample.opengl--gF942BJV-wmf8Rmqbe2kQ==/lib/arm/libsongstudio.so (Java_com_sample_opengl_PNGPreviewController_init+80): Routine Java_com_sample_opengl_PNGPreviewController_init at /Users/study/OpenGLSample/app/src/main/cpp/PNGPreviewController.cpp:16
Stack frame #3 pc 00009075 /data/app/com.sample.opengl--gF942BJV-wmf8Rmqbe2kQ==/oat/arm/base.odex (offset 0x9000)
Crash dump is completed
报错语句
actualSize = fread(compressedData, 1, data_length, pngFile);
我的eclipse没法用,还得手动转成stuido 的。现在主流都是studio了吧。当然工具是次要的。
typedef struct {
const png_uint_32 width;
const png_uint_32 height;
const int color_type;
} PngInfo;
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.
/Users/wind/demo/Android-OpenGLRenderer-master/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/pngdecoder/./libpng/image.o.d:1: *** target pattern contains no `%'
. Stop.
png_decoder.cpp文件中打开内存卡图片为空(确定内存卡有此图,也有读取内存卡权限)
pngFile = fopen(pngFilePath, "rb");
真机和模拟都是这个地方导致崩溃
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.