-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OOM Exception while upload a large image with the latest version #1893
Comments
When you say "latest version," do you mean building master from source or from the Play store? |
NO, I am developing an app based on TextSecure, the exception happened after merged the latest commits yesturday. It seems that app can not handle the large image with larger than 2M bytes in my sony phone. but it can send the same file in htc phone. I also checked the difference between these days. The max height and max width has been changed in the latest code, it is 1280_1280 rather than 640_480 , you can see the code in ImageSlide.java file. I think it maybe the root cause for OOM, It is OK if you change back to 640*480. PS: it can not be reproduce in some phones only happened in my sony and huawei phones. |
Try merging #1892 ... |
Ok, yeah we know about that, just wanted to make sure. You should probably stick with the release tags. |
: FATAL EXCEPTION: main
E/AndroidRuntime(31108): java.lang.OutOfMemoryError
E/AndroidRuntime(31108): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
E/AndroidRuntime(31108): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:527)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.util.BitmapUtil.createScaledBitmap(BitmapUtil.java:83)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.util.BitmapUtil.createScaledBitmap(BitmapUtil.java:65)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.util.BitmapUtil.createScaledBytes(BitmapUtil.java:31)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.mms.ImageSlide.constructPartFromUri(ImageSlide.java:190)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.mms.ImageSlide.(ImageSlide.java:64)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.mms.AttachmentManager.setImage(AttachmentManager.java:60)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.ConversationActivity.addAttachmentImage(ConversationActivity.java:851)
E/AndroidRuntime(31108): at org.thoughtcrime.securesms.ConversationActivity.onActivityResult(ConversationActivity.java:240)
E/AndroidRuntime(31108): at android.app.Activity.dispatchActivityResult(Activity.java:5192)
E/AndroidRuntime(31108): at android.app.ActivityThread.deliverResults(ActivityThread.java:3158)
E/AndroidRuntime(31108): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3205)
E/AndroidRuntime(31108): at android.app.ActivityThread.access$1100(ActivityThread.java:138)
E/AndroidRuntime(31108): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
E/AndroidRuntime(31108): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(31108): at android.os.Looper.loop(Looper.java:213)
E/AndroidRuntime(31108): at android.app.ActivityThread.main(ActivityThread.java:4787)
E/AndroidRuntime(31108): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(31108): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(31108): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
E/AndroidRuntime(31108): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
E/AndroidRuntime(31108): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 585): Force finishing activity org.thoughtcrime.securesms/.ConversationActivity
D/dalvikvm(31276): GC_CONCURRENT freed 3325K, 33% free 13417K/19779K, paused 12ms+11ms, total 50ms
W/ActivityManager( 585): Activity pause timeout for ActivityRecord{417d0420 org.thoughtcrime.securesms/.ConversationActivity}
D/dalvikvm(31276): GC_CONCURRENT freed 4584K, 27% free 14614K/19975K, paused 12ms+18ms, total 65ms
D/StatusBar.NetworkController( 879): refreshViews: Data not connected!! Set no data ty
The text was updated successfully, but these errors were encountered: