kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
112 stars 28 forks source link

SQLlite connection leaked on Android #333

Closed kelson42 closed 8 years ago

kelson42 commented 8 years ago

I get this kind of message in my logcat:

D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/A/index.htm
D/kiwix   ( 3465): reading  A/index.htm(mime: text/html, size: 25750) finished.
D/kiwix   ( 3465): Loading article finished.
D/kiwix   ( 3465): Loaded URL: content://org.kiwix.zim.mwikimed/A/index.htm
D/kiwix   ( 3465): onPause Save currentzimfile to preferences:/storage/emulated/0/Android/obb/org.kiwix.kiwixcustomwikimed/main.7.org.kiwix.kiwixcustomwikimed.obb
I/kiwix   ( 3465): Intent data: Intent { (has extras) }
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/A/Tuaminoheptane.html
D/kiwix   ( 3465): reading  A/Tuaminoheptane.html(mime: text/html, size: 72020) finished.
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/I/m/Tuaminoheptane.png
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/I/m/Yes_check.svg.png
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/I/m/GHS-pictogram-flamme.svg.png
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/I/m/GHS-pictogram-exclam.svg.png
D/kiwix   ( 3465): Retrieving: content://org.kiwix.zim.mwikimed/I/m/Hazard_X.svg.png
D/kiwix   ( 3465): reading  I/m/Tuaminoheptane.png(mime: image/png, size: 2253) finished.
D/kiwix   ( 3465): reading  I/m/Yes_check.svg.png(mime: image/png, size: 530) finished.
D/kiwix   ( 3465): reading  I/m/GHS-pictogram-flamme.svg.png(mime: image/png, size: 960) finished.
D/kiwix   ( 3465): reading  I/m/GHS-pictogram-exclam.svg.png(mime: image/png, size: 743) finished.
D/kiwix   ( 3465): reading  I/m/Hazard_X.svg.png(mime: image/png, size: 468) finished.
D/kiwix   ( 3465): Loading article finished.
D/kiwix   ( 3465): Loaded URL: content://org.kiwix.zim.mwikimed/A/Tuaminoheptane.html
W/SQLiteConnectionPool( 3465): A SQLiteConnection object for database '+data+data+org_kiwix_kiwixcustomwikimed+databases+Kiwix_db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
EladKeyshawn commented 8 years ago

@kelson42 Does this warning fires only on custom apps? Anyways, can you give me steps to reproduce this warning?

kelson42 commented 8 years ago

Thx, I will check this today but fix looks good. I'wll re-open the issue if the problem still occurs.

EladKeyshawn commented 8 years ago

@kelson42 No problem tell me if the issue comes up again