ninetwozero / BF3-Battlelog

Hello world! This is the number one unofficial Battlefield 3 Battlelog-application for Android.
https://market.android.com/details?id=com.ninetwozero.battlelog
24 stars 7 forks source link

Feeds and weapons logs #88

Closed peter-budo closed 12 years ago

peter-budo commented 12 years ago

I picked this from logcat when I accidentally started battlelog instead of app I was testing at work. It does complain of some unhanded cases of FeedItems parsing and something about weapon activity sync. Sorry no time to investigate

07-02 12:06:50.690: INFO/dalvikvm(4590): at org.apache.http.util.CharArrayBuffer.expand(CharArrayBuffer.java:~59)
07-02 12:06:50.690: INFO/dalvikvm(4590): at org.apache.http.util.CharArrayBuffer.append(CharArrayBuffer.java:77)
07-02 12:06:50.690: INFO/dalvikvm(4590): at org.apache.http.util.EntityUtils.toString(EntityUtils.java:136)
07-02 12:06:50.690: INFO/dalvikvm(4590): at org.apache.http.util.EntityUtils.toString(EntityUtils.java:146)
07-02 12:06:50.690: INFO/dalvikvm(4590): at com.ninetwozero.battlelog.http.RequestHandler.get(RequestHandler.java:100)
07-02 12:06:50.690: INFO/dalvikvm(4590): at com.ninetwozero.battlelog.http.ProfileClient.getWeapons(ProfileClient.java:885)
07-02 12:06:50.700: INFO/dalvikvm(4590): at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity$AsyncRefresh.doInBackground(WeaponListActivity.java:186)
07-02 12:06:50.700: INFO/dalvikvm(4590): at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity$AsyncRefresh.doInBackground(WeaponListActivity.java:148)
07-02 12:06:50.700: INFO/dalvikvm(4590): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-02 12:06:50.700: INFO/dalvikvm(4590): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
07-02 12:06:50.700: INFO/dalvikvm(4590): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
07-02 12:06:50.700: INFO/dalvikvm(4590): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
07-02 12:06:50.700: INFO/dalvikvm(4590): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
07-02 12:06:50.700: INFO/dalvikvm(4590): at java.lang.Thread.run(Thread.java:1027)
07-02 12:06:50.700: INFO/dalvikvm(4590): [ 07-02 12:06:50.700  4590:0x11fb E/dalvikvm ]
        Out of memory: Heap Size=25671KB, Allocated=13252KB, Bitmap Size=3526KB, Limit=32768KB
07-02 12:06:50.700: ERROR/dalvikvm(4590): Extra info: Footprint=25671KB, Allowed Footprint=25671KB, Trimmed=3008KB
07-02 12:06:50.710: WARN/dalvikvm(4590): threadid=12: thread exiting with uncaught exception (group=0x4001d5a0)
07-02 12:06:50.730: ERROR/AndroidRuntime(4590): FATAL EXCEPTION: AsyncTask #3
        java.lang.RuntimeException: An error occured while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:200)
        at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
        at java.lang.Thread.run(Thread.java:1027)
        Caused by: java.lang.OutOfMemoryError: (Heap Size=25671KB, Allocated=13252KB, Bitmap Size=3526KB)
        at org.apache.http.util.CharArrayBuffer.expand(CharArrayBuffer.java:59)
        at org.apache.http.util.CharArrayBuffer.append(CharArrayBuffer.java:77)
        at org.apache.http.util.EntityUtils.toString(EntityUtils.java:136)
        at org.apache.http.util.EntityUtils.toString(EntityUtils.java:146)
        at com.ninetwozero.battlelog.http.RequestHandler.get(RequestHandler.java:100)
        at com.ninetwozero.battlelog.http.ProfileClient.getWeapons(ProfileClient.java:885)
        at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity$AsyncRefresh.doInBackground(WeaponListActivity.java:186)
        at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity$AsyncRefresh.doInBackground(WeaponListActivity.java:148)
        at android.os.AsyncTask$2.call(AsyncTask.java:185)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
        ... 4 more
07-02 12:06:50.730: WARN/ActivityManager(1361): Force finishing activity com.ninetwozero.battlelog/.activity.profile.weapon.WeaponListActivity
07-02 12:06:50.780: DEBUG/InputManagerService(1361): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40b5a468
07-02 12:06:50.840: DEBUG/WindowManagerImpl(1361): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40c92780
07-02 12:06:51.070: DEBUG/ActivityManager(1361): destroyActivityLocked, r=HistoryRecord{40bbb2d0 com.ninetwozero.battlelog/.activity.profile.weapon.WeaponListActivity}
07-02 12:06:51.181: DEBUG/dalvikvm(4590): GC_CONCURRENT freed 3635K, 55% free 11641K/25671K, external 3526K/4404K, paused 10ms+3ms
07-02 12:06:51.191: DEBUG/WindowManagerImpl(4590): finishRemoveViewLocked, mViews[2]: com.android.internal.policy.impl.PhoneWindow$DecorView@40c4c9b0
07-02 12:06:51.211: ERROR/WindowManager(4590): Activity com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40a82b40 that was originally added here
        android.view.WindowLeaked: Activity com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40a82b40 that was originally added here
        at android.view.ViewRoot.(ViewRoot.java:278)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:149)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
        at android.view.Window$LocalWindowManager.addView(Window.java:433)
        at android.app.Dialog.show(Dialog.java:265)
        at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity$AsyncRefresh.onPreExecute(WeaponListActivity.java:168)
        at android.os.AsyncTask.execute(AsyncTask.java:391)
        at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity.reload(WeaponListActivity.java:141)
        at com.ninetwozero.battlelog.activity.profile.weapon.WeaponListActivity.onResume(WeaponListActivity.java:93)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1242)
        at android.app.Activity.performResume(Activity.java:4004)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2561)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2592)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1905)
        at android.app.ActivityThread.access$1500(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:150)
        at android.app.ActivityThread.main(ActivityThread.java:4385)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:507)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
        at dalvik.system.NativeStart.main(Native Method)
07-02 12:06:51.211: DEBUG/WindowManagerImpl(4590): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@40a82b40
07-02 12:06:51.371: WARN/System.err(4590): org.json.JSONException: No value for COMPLETEDASSIGNMENT
07-02 12:06:51.371: WARN/System.err(4590): at org.json.JSONObject.get(JSONObject.java:354)
07-02 12:06:51.371: WARN/System.err(4590): at org.json.JSONObject.getJSONObject(JSONObject.java:569)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.factory.FeedItemDataFactory.feedItemDataFrom(FeedItemDataFactory.java:113)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemFromJSON(FeedClient.java:245)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemsFromJSON(FeedClient.java:197)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.get(FeedClient.java:171)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:323)
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:300)
07-02 12:06:51.371: WARN/System.err(4590): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-02 12:06:51.371: WARN/System.err(4590): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
07-02 12:06:51.371: WARN/System.err(4590): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
07-02 12:06:51.371: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
07-02 12:06:51.371: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
07-02 12:06:51.371: WARN/System.err(4590): at java.lang.Thread.run(Thread.java:1027)
07-02 12:06:51.371: WARN/System.err(4590): java.lang.NullPointerException
07-02 12:06:51.371: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemFromJSON(FeedClient.java:258)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemsFromJSON(FeedClient.java:197)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.get(FeedClient.java:171)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:323)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:300)
07-02 12:06:51.381: WARN/System.err(4590): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
07-02 12:06:51.381: WARN/System.err(4590): at java.lang.Thread.run(Thread.java:1027)
07-02 12:06:51.381: WARN/System.err(4590): com.ninetwozero.battlelog.datatype.WebsiteHandlerException: No error message found
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemFromJSON(FeedClient.java:277)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.getFeedItemsFromJSON(FeedClient.java:197)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.http.FeedClient.get(FeedClient.java:171)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:323)
07-02 12:06:51.381: WARN/System.err(4590): at com.ninetwozero.battlelog.activity.feed.FeedFragment$AsyncRefresh.doInBackground(FeedFragment.java:300)
07-02 12:06:51.381: WARN/System.err(4590): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
07-02 12:06:51.381: WARN/System.err(4590): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
07-02 12:06:51.381: WARN/System.err(4590): at java.lang.Thread.run(Thread.java:1027)
karllindmark commented 12 years ago

That's interesting, exhausting memory is always a fun thing to look for!