Last modified: 2013-01-18 03:41:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42026, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40026 - java oom error
java oom error
Status: RESOLVED WONTFIX
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Upload (Other open bugs)
unspecified
All All
: Normal major
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-05 21:51 UTC by Arthur Richards
Modified: 2013-01-18 03:41 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Arthur Richards 2012-09-05 21:51:58 UTC
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)
Comment 1 Brion Vibber 2012-09-05 23:47:44 UTC
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.
Comment 2 Brion Vibber 2013-01-18 03:41:15 UTC
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).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links