j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

The connection pool for database has been unable to grant a connection in ORMLite 5.1 #116

Open KursX opened 4 years ago

KursX commented 4 years ago

The connection pool for database '/data/user/0/package/databases/database.sqlite' has been unable to grant a connection to thread 2 (main) with flags 0x5 for 30.002 seconds. Connections: 0 active, 1 idle, 0 available.

Appears in different applications and only in 5.1

It appears after several calls TransactionManager.callInTransaction().

With 5.0 works good

bomiyr commented 4 years ago

Same here

fengqingyun2008 commented 4 years ago

5.1.same bugs +1. Then I downgraded the version to 5.0 and it worked normally.

j256 commented 3 years ago

I've fixed some issues around handling of exceptions when using the TransactionManager in both 5.2 and 5.3. I'd love to know if they resolve your issues.

j256 commented 2 years ago

Any update on 5.2 and 5.3 @fengqingyun2008 or @bomiyr or @KursX ?

bomiyr commented 2 years ago

Sorry, don't work on the project anymore and can't test again. But I tried to update ormlite before I quit. It works definitely better. On version 5.1 database was freezing on application start. On 5.3 application was usable, but had issues in some cases. But I'm not really sure if it was issue in ormlite or not, because we used it with modified ormlite-android with support for sqlcipher. Did not have time to investigate