ragnraok / android-image-filter

some android image filters
656 stars 173 forks source link

Using SOFT_GLOW crashes app #4

Closed Raykud closed 10 years ago

Raykud commented 11 years ago

attempting to use public static final int SOFT_GLOW_STYLE = 16; // soft glow as a filter makes the app crash returning this in the LogCat:

07-19 19:40:42.149: E/AndroidRuntime(3871): FATAL EXCEPTION: main
07-19 19:40:42.149: E/AndroidRuntime(3871): java.lang.UnsatisfiedLinkError: softGlow
07-19 19:40:42.149: E/AndroidRuntime(3871):     at cn.Ragnarok.NativeFilterFunc.softGlow(Native Method)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at cn.Ragnarok.SoftGlowFilter.softGlowFilter(SoftGlowFilter.java:13)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at cn.Ragnarok.BitmapFilter.changeStyle(BitmapFilter.java:95)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at com.mytest.test.activity.PhotoTestActivity.onClick(PhotoTestActivity.java:107)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.view.View.performClick(View.java:2485)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.view.View$PerformClick.run(View.java:9080)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.os.Handler.handleCallback(Handler.java:587)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.os.Handler.dispatchMessage(Handler.java:92)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.os.Looper.loop(Looper.java:130)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at android.app.ActivityThread.main(ActivityThread.java:3687)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at java.lang.reflect.Method.invokeNative(Native Method)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at java.lang.reflect.Method.invoke(Method.java:507)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
07-19 19:40:42.149: E/AndroidRuntime(3871):     at dalvik.system.NativeStart.main(Native Method)

This is beeing run on a Samsung Galaxy Ace (GT-S5830L) with Android Version 2.3.4 Gingerbread

ragnraok commented 11 years ago

Sorry this was my fault, I forgot to load library in SoftGlowFilter, please clone the new source and use ndk-build rebuild it