Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (imageasthumbnail)
Viewing all articles
Browse latest Browse all 4

Exception gettin an image as thumbnail

$
0
0

My app is crashing (randomly) in this line:

thumb = myBlobImage.imageAsThumbnail(200, 2, 5); where myBlobImage is a file represented as a blob. When the app is running, sometimes (dun know why this happens only 'sometimes') it crashes at this line. In monitor I got something like this:

12-09 10:58:13.102: E/dalvikvm-heap(17878): Out of memory on a 67207776-byte allocation.
12-09 10:58:13.102: E/TiAPI(17878):  Error: Java Exception occurred
BTW I have tested the app on different phones, with different versions of Android, and it only happens on my Samsung Galaxy S3 mini with Android 4.1.2 and am using Ti 3.1.3.GA

My questions are:

1) Why this happens?

2) How can I solve it?


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images