dividiti / crowdsource-video-experiments-on-android

Crowdsourcing video experiments (such as collaborative benchmarking and optimization of DNN algorithms) using Collective Knowledge Framework across diverse Android devices provided by volunteers. Results are continuously aggregated in the open repository:
http://cKnowledge.org/repo
Other
28 stars 3 forks source link

Fix issue with leaked window alert at the end of the recognition process #26

Closed DVEfremov closed 7 years ago

DVEfremov commented 8 years ago

Some times at the end of the recognition process alert window is not displayed. Case to reproduce 1) Start recognize 2) Let smartphone to turn off the screen (screen auto lock) 3) Unlock the screen
4) Finally dialog should be displayed but in this case it does not because of unhanded error:

 E/WindowManager: android.view.WindowLeaked: Activity openscience.crowdsource.video.experiments.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1e7b6232 V.E..... R....... 0,0-1336,1173} that was originally added here
                     at android.view.ViewRootImpl.<init>(ViewRootImpl.java:475)
                     at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:277)
                     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
                     at android.app.Dialog.show(Dialog.java:312)
                     at openscience.crowdsource.video.experiments.MainActivity$RunCodeAsync$4.run(MainActivity.java:2449)
DVEfremov commented 7 years ago

Looks like issue is not reproduced any more for both versions 1.0 and v2.0