Page MenuHomePhabricator

java oom error
Closed, DeclinedPublic

Description

Two out of memory errors have been reported in the app store.

From the reporting user:
"App closes when I select a photo from the gallery, when attempting to do a second photo of a monument after successfully uploading one. Happened both times I tried."

Stack trace:
Exception class: java.lang.OutOfMemoryError in org.wikipedia.wlm
Source method: BitmapFactory.nativeDecodeFile()

java.lang.OutOfMemoryError: (Heap Size=36835KB, Allocated=5343KB)
at android.graphics.BitmapFactory.nativeDecodeFile(Native Method)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:373)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:443)
at org.apache.cordova.CameraLauncher.getScaledBitmap(CameraLauncher.java:546)
at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:394)
at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:823)
at android.app.Activity.dispatchActivityResult(Activity.java:4752)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3421)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3475)
at android.app.ActivityThread.access$1100(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

Second error:
From the user: "it's only September second and it's not working.I'll keep trying"

Exception class: java.lang.OutOfMemoryError
Source method: BitmapFactory.nativeDecodeStream()

java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:530)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:299)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:324)
at org.apache.cordova.CameraLauncher.getScaledBitmap(CameraLauncher.java:546)
at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:394)
at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:823)
at android.app.Activity.dispatchActivityResult(Activity.java:4723)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3175)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3222)
at android.app.ActivityThread.access$1100(ActivityThread.java:134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1263)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4697)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)


Version: unspecified
Severity: major

Details

Reference
bz40026

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:06 AM
bzimport set Reference to bz40026.
bzimport added a subscriber: Unknown Object (MLST).

This may help:
https://github.com/wikimedia/WLMMobile/pull/248

sets the quality to 100% to ensure we don't try to recompress the gallery images.

Mass-closing WLM app issues as WONTFIX since we won't be maintaining the same client app in future (will migrate these things to the Commons app).