codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

First run wizard caused leaked window in Account activity. "android.v… #627

Closed pnemonic78 closed 7 years ago

pnemonic78 commented 7 years ago
12-13 10:55:29.770 10002-10010/? W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/org.gnucash.android.devel/databases/e856083fef8d482eb5266be7ac3542b6' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
12-13 10:55:29.891 10002-10002/? E/WindowManager: android.view.WindowLeaked: Activity org.gnucash.android.ui.account.AccountsActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{ce3bc0a V.E...... R.....ID 0,0-1026,1088} that was originally added here
                                                      at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368)
                                                      at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
                                                      at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
                                                      at android.app.Dialog.show(Dialog.java:319)
                                                      at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
                                                      at org.gnucash.android.ui.account.AccountsActivity.showWhatsNewDialog(AccountsActivity.java:449)
                                                      at org.gnucash.android.ui.account.AccountsActivity.init(AccountsActivity.java:393)
                                                      at org.gnucash.android.ui.account.AccountsActivity.onCreate(AccountsActivity.java:234)
                                                      at android.app.Activity.performCreate(Activity.java:6237)
                                                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
                                                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
                                                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                      at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                      at android.os.Handler.dispatchMessage(Handler.java:102)
                                                      at android.os.Looper.loop(Looper.java:148)
                                                      at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                      at java.lang.reflect.Method.invoke(Native Method)
                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
rivaldi8 commented 7 years ago

Thanks for the fix!