+Hergram Posted October 15, 2016 Share Posted October 15, 2016 I have a Garmin Monterra and if I am using Whereyougo and start the player it gives "WhereYouGo is stopped". I use the Wherigo file "Park-1813". The error rapport is: 2016/10/11 15:44:02: java.lang.OutOfMemoryError at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method) at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:424) at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:441) at menion.android.whereyougo.gui.activity.Wherigo.DetailsActivity$1.run(DetailsActivity.java:183) at android.app.Activity.runOnUiThread(Activity.java:4170) at menion.android.whereyougo.gui.activity.Wherigo.DetailsActivity.refresh(DetailsActivity.java:164) at menion.android.whereyougo.gui.activity.Wherigo.DetailsActivity.onResume(DetailsActivity.java:145) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1154) at android.app.Activity.performResume(Activity.java:4539) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2434) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2472) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1986) at android.app.ActivityThread.access$600(ActivityThread.java:123) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) 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) Can this problem be solved? Kindly regards, Quote Link to comment
+charlenni Posted October 15, 2016 Share Posted October 15, 2016 It seems, that you have not enough memory for this cartridge. Perhaps you could free some main memory? Quote Link to comment
+Hergram Posted October 16, 2016 Author Share Posted October 16, 2016 It seems, that you have not enough memory for this cartridge. Perhaps you could free some main memory? I have tried that too, but is doesn't work. Quote Link to comment
+charlenni Posted October 17, 2016 Share Posted October 17, 2016 I looked into the cartridge and found, that the author didn't resize the images he used. So some images are 4608 x 3456 in size. If each pixel needs 3 bytes, than each unpacked image need around 50 MB. That's could be to much for your device. Most Android apps use a workaround to not use so much memory (https://developer.android.com/training/displaying-bitmaps/load-bitmap.html). I assume, that WhereYouGo doesn't do this. I would say, you should contact the author and ask, if he could reduce the image size of the images he use. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.