ravindracs0071 / android-geocaching

Automatically exported from code.google.com/p/android-geocaching
0 stars 0 forks source link

Проблема "утекания" активити #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Случилось два раза подряд при попытке 
скачать блокнот тайника

07-21 21:57:53.886: ERROR/AndroidRuntime(8982): FATAL EXCEPTION: AsyncTask #1
        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:273)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
        at java.util.concurrent.FutureTask.run(FutureTask.java:137)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
        at java.lang.Thread.run(Thread.java:1102)
        Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
        at android.os.Handler.<init>(Handler.java:121)
        at su.geocaching.android.controller.managers.ConnectionManager$1.<init>(ConnectionManager.java:55)
        at su.geocaching.android.controller.managers.ConnectionManager.<init>(ConnectionManager.java:55)
        at su.geocaching.android.controller.Controller.getConnectionManager(Controller.java:159)
        at su.geocaching.android.controller.Controller.getConnectionManager(Controller.java:101)
        at su.geocaching.android.controller.apimanager.DownloadInfoTask.doInBackground(DownloadInfoTask.java:81)
        at su.geocaching.android.controller.apimanager.DownloadInfoTask.doInBackground(DownloadInfoTask.java:22)
        at android.os.AsyncTask$2.call(AsyncTask.java:185)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
        ... 4 more
07-21 21:57:53.946: 
DEBUG/su.geocaching.android.controller.managers.PingManager(8982): set 
connected = true
07-21 21:57:53.956: WARN/ActivityManager(102): Force finishing activity 
su.geocaching.android.ui/.info.InfoActivity
07-21 21:57:54.026: 
DEBUG/su.geocaching.android.controller.managers.DbManager(8982): openDB
07-21 21:57:54.066: 
DEBUG/su.geocaching.android.controller.managers.DbManager(8982): closeDB
07-21 21:57:54.426: ERROR/WindowManager(8982): Activity 
su.geocaching.android.ui.info.InfoActivity has leaked window 
com.android.internal.policy.impl.PhoneWindow$DecorView@447f5560 that was 
originally added here
        android.view.WindowLeaked: Activity su.geocaching.android.ui.info.InfoActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@447f5560 that was originally added here
        at android.view.ViewRoot.<init>(ViewRoot.java:251)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
        at android.view.Window$LocalWindowManager.addView(Window.java:424)
        at android.app.Dialog.show(Dialog.java:241)
        at su.geocaching.android.controller.apimanager.DownloadInfoTask.onPreExecute(DownloadInfoTask.java:73)
        at android.os.AsyncTask.execute(AsyncTask.java:391)
        at su.geocaching.android.controller.apimanager.GeocachingSuApiManager.getInfo(GeocachingSuApiManager.java:141)
        at su.geocaching.android.ui.info.InfoActivity.loadView(InfoActivity.java:338)
        at su.geocaching.android.ui.info.InfoActivity.onNotebookClick(InfoActivity.java:460)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at android.view.View$1.onClick(View.java:2067)
        at android.view.View.performClick(View.java:2408)
        at android.view.View$PerformClick.run(View.java:8817)
        at android.os.Handler.handleCallback(Handler.java:587)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:143)
        at android.app.ActivityThread.main(ActivityThread.java:4914)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
        at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by Nikita.B...@gmail.com on 21 Jul 2011 at 6:01

GoogleCodeExporter commented 9 years ago
постоянно падает на этом

Original comment by Nikita.B...@gmail.com on 21 Jul 2011 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by Nikita.B...@gmail.com on 22 Jul 2011 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by grigory.kalabin on 22 Jul 2011 at 3:27