internaut / ogles_gpgpu Goto Github PK
View Code? Open in Web Editor NEWGPGPU for mobile devices and embedded systems using OpenGL ES 2.0
Home Page: http://www.mkonrad.net/projects/ogles_gpgpu.html
License: Apache License 2.0
GPGPU for mobile devices and embedded systems using OpenGL ES 2.0
Home Page: http://www.mkonrad.net/projects/ogles_gpgpu.html
License: Apache License 2.0
Hi,
trying to open http://www.mkonrad.net/projects/ogles_gpgpu.html
leads to redirection to incorrect address https://mkonrad.netprojects/ogles_gpgpu.html
. I guess something wrong with site configs (?)
Hi,
I'm trying to run OGVideoProcDroid example on my Android device and got runtime error. Here are the steps to reproduce:
[ogles_gpgpu/examples/android/OGVideoProcDroid]> ./android list targets
Available Android targets:
----------
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 4
[ogles_gpgpu/examples/android/OGVideoProcDroid]> android update project --target android-19 --path . --name OGVideoProcDroid
Updated project.properties
Updated local.properties
Updated file ./build.xml
Updated file ./proguard-project.txt
[ogles_gpgpu/examples/android/OGVideoProcDroid]> ndk-build
...
[...] Compile++ : og_jni_wrapper <= memtransfer_android.cpp
[...] SharedLibrary : libog_jni_wrapper.so
[...] Install : libog_jni_wrapper.so => libs/mips/libog_jni_wrapper.so
[ogles_gpgpu/examples/android/OGVideoProcDroid]> ant debug
...
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: /.../bin/OGVideoProcDroid-debug.apk
...
-post-build:
debug:
BUILD SUCCESSFUL
[ogles_gpgpu/examples/android/OGVideoProcDroid]> adb -d install -r bin/OGVideoProcDroid-debug.apk
4304 KB/s (1983478 bytes in 0.449s)
pkg: /data/local/tmp/OGVideoProcDroid-debug.apk
Success
I've put some extra log messages (see my branch), look like it's crashing in camTexture.updateTexImage()
method:
I/CamActivity(18175): Entering onFrameAvailable
I/CamActivity(18175): Try updateTexImage
W/Adreno-ES20(18175): <core_glBindTexture:572>: GL_INVALID_OPERATION
E/GLConsumer(18175): [unnamed-18175-0] bindTextureImage: error binding external texture image 0x5: 0x502
D/AndroidRuntime(18175): Shutting down VM
Thanks, Ruslo
@headupinclouds +cc
Two threads can simultaneously read/modify imgData
variable. This may lead to synchronization errors. I can reproduce such error by adding delay to the update
method: https://github.com/ruslo/ogles_gpgpu/commit/efed7c73d234f2814092e34e478d270a40b7c36f
logcat:
I/CamActivity(22340): zeroerror
D/AndroidRuntime(22340): Shutting down VM
W/dalvikvm(22340): threadid=1: thread exiting with uncaught exception (group=0x41620d58)
E/mm-camera( 272): invalid stats mask. Return back
E/AndroidRuntime(22340): FATAL EXCEPTION: main
E/AndroidRuntime(22340): Process: ogles_gpgpu.examples.ogvideoprocdroid, PID: 22340
E/AndroidRuntime(22340): java.lang.NullPointerException
E/AndroidRuntime(22340): at ogles_gpgpu.examples.ogvideoprocdroid.CamActivity$CPUImgProcThread.update(CamActivity.java:595)
E/AndroidRuntime(22340): at ogles_gpgpu.examples.ogvideoprocdroid.CamActivity.onFrameAvailable(CamActivity.java:305)
E/AndroidRuntime(22340): at android.graphics.SurfaceTexture$EventHandler.handleMessage(SurfaceTexture.java:296)
E/AndroidRuntime(22340): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(22340): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(22340): at android.app.ActivityThread.main(ActivityThread.java:5095)
E/AndroidRuntime(22340): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(22340): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(22340): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime(22340): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/AndroidRuntime(22340): at dalvik.system.NativeStart.main(Native Method)
Error doesn't occurs after synchronization code added: https://github.com/ruslo/ogles_gpgpu/commit/28e45d17cabce711ed461aa77b375af8e064ca6c (fix will look different after this change).
Release of ogles_gpgpu ends with SIGSEGV.
Part of the log: https://gist.github.com/ruslo/b5ebceaee1c7fa5f3371
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.