Quantcast
Viewing all articles
Browse latest Browse all 8068

got java.lang.OutOfMemoryError when image resized using titanium module

Hi All,

I am using titanium 3.1.4 sdk.

In my app i uploaded image from gallery and then resized it.i used bellow modules in my app.
  1. ti.imagefactory
  2. org.selfkleptomaniac.ti.imageasresized

my problem is when i am resizing image some times i got this bellow error.then resizing fails.

please tell me any solution for this.

[ERROR] :  TiDrawableReference: (KrollRuntimeThread) [377,125550] Unable to load bitmap. Not enough memory: null
[ERROR] :  TiDrawableReference: java.lang.OutOfMemoryError
[ERROR] :  TiDrawableReference:     at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
[ERROR] :  TiDrawableReference:     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:618)
[ERROR] :  TiDrawableReference:     at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:360)
[ERROR] :  TiDrawableReference:     at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:284)
[ERROR] :  TiDrawableReference:     at ti.imagefactory.ImageFactoryModule.imageTransform(ImageFactoryModule.java:129)
[ERROR] :  TiDrawableReference:     at ti.imagefactory.ImageFactoryModule.imageAsResized(ImageFactoryModule.java:181)
[ERROR] :  TiDrawableReference:     at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
[ERROR] :  TiDrawableReference:     at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)
[ERROR] :  TiDrawableReference:     at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)
[ERROR] :  TiDrawableReference:     at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:70)
[ERROR] :  TiDrawableReference:     at android.os.Handler.handleCallback(Handler.java:605)
[ERROR] :  TiDrawableReference:     at android.os.Handler.dispatchMessage(Handler.java:92)
[ERROR] :  TiDrawableReference:     at android.os.Looper.loop(Looper.java:137)
[ERROR] :  TiDrawableReference:     at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
this is very very important for my project.i can not figure out what happen this module.

Thanks in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles