Hi,
First of all, thank you for the great job on this.
I am trying it out thru the demo app in this project.
However, eveytime when I apply an effect then the demo app stops unexpectedly.
Here are some examples of what I got when the unexpected stop happens:
- Select the LOMO effect in the items menu to apply the LOMO effect. The code goes all the way to the line:47 in cn.Ragnarok.LomoFilter.changeToLomo, which calls NativeFilterFunc.lomoAddBlckRound to get int[] resultPixels. Then, suddenly the demo app stops to cease. The logcat outputs 2 msg:
- E/dalvikvm(31965): VM aborting
- A/libc(31965): Fatal signal 6 (SIGABRT) at 0x00007cdd (code=-6), thread 31965 (imagefilterdemo)
- This time, try the Relief effect. The code goes untill the line:24 in cn.Ragnarok.ReliefFilter.changeToRelief, which calls Bitmap.createBitmap to get Bitmap returnBitmap. The logcat outputs:
- E/AndroidRuntime(324): FATAL EXCEPTION: main
- E/AndroidRuntime(324): Process: com.example.androidimagefilterdemo, PID: 324
- E/AndroidRuntime(324): java.lang.OutOfMemoryError
- E/AndroidRuntime(324): at android.graphics.Bitmap.nativeCreate(Native Method)
- E/AndroidRuntime(324): at android.graphics.Bitmap.createBitmap(Bitmap.java:882)
- E/AndroidRuntime(324): at android.graphics.Bitmap.createBitmap(Bitmap.java:906)
- E/AndroidRuntime(324): at cn.Ragnarok.ReliefFilter.changeToRelief(ReliefFilter.java:24)
- E/AndroidRuntime(324): at cn.Ragnarok.BitmapFilter.changeStyle(BitmapFilter.java:42)
- E/AndroidRuntime(324): at com.example.androidimagefilterdemo.MainActivity.applyStyle(MainActivity.java:322)
- E/AndroidRuntime(324): at com.example.androidimagefilterdemo.MainActivity.onItemClick(MainActivity.java:266)
- E/AndroidRuntime(324): at android.widget.AdapterView.performItemClick(AdapterView.java:299)
- E/AndroidRuntime(324): at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
- E/AndroidRuntime(324): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2904)
- E/AndroidRuntime(324): at android.widget.AbsListView$3.run(AbsListView.java:3638)
- E/AndroidRuntime(324): at android.os.Handler.handleCallback(Handler.java:733)
- E/AndroidRuntime(324): at android.os.Handler.dispatchMessage(Handler.java:95)
- E/AndroidRuntime(324): at android.os.Looper.loop(Looper.java:212)
- E/AndroidRuntime(324): at android.app.ActivityThread.main(ActivityThread.java:5151)
- E/AndroidRuntime(324): at java.lang.reflect.Method.invokeNative(Native Method)
- E/AndroidRuntime(324): at java.lang.reflect.Method.invoke(Method.java:515)
- E/AndroidRuntime(324): at com.android.internal.os.ZygoteInit$MinvitigethodAndArgsCaller.run(ZygoteInit.java:878)
- E/AndroidRuntime(324): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
- E/AndroidRuntime(324): at dalvik.system.NativeStart.main(Native Method)
Could the memory cause this issue ?
What could the root cause ?
Thank you
Hi,
First of all, thank you for the great job on this.
I am trying it out thru the demo app in this project.
However, eveytime when I apply an effect then the demo app stops unexpectedly.
Here are some examples of what I got when the unexpected stop happens:
Could the memory cause this issue ?
What could the root cause ?
Thank you