Source code to omnibus edition of _The Busy Coder's Guide to Android Development_
sqlcipher/android-database-sqlcipher 2240
Android SQLite API based on SQLCipher
Source Code to _The Busy Coder's Guide To Advanced Android Development_
Source Code to _The Busy Coder's Guide To Android Development_
CommonsWare Android Components: MergeAdapter
CWAC-SafeRoom: A Room<->SQLCipher for Android Bridge
CWAC RichEditText component
CWAC-Security: Helping You Help Your Users Defend Their Data
commonsguy/cwac-netsecurity 239
CWAC-NetSecurity: Simplifying Secure Internet Access
CWAC AndDown: Markdown Utility Library
startedcommonsguy/cw-omnibus
started time in 9 hours
startedbellard/quickjs
started time in 13 hours
Source code to omnibus edition of _The Busy Coder's Guide to Android Development_
http://commonsware.com/Android
fork in 21 hours
startedcommonsguy/cw-omnibus
started time in 2 days
startedcommonsguy/cw-omnibus
started time in 2 days
startedcommonsguy/cw-advandroid
started time in 3 days
fork JakeWharton/warp
A super-easy, composable, web server framework for warp speeds.
https://seanmonstar.com/post/176530511587/warp
fork in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
I was unable to checkout @oleksandr-semenov's branch so instead i just cloned this repo and copied / pasted the two file changes from this pull request.
I then made a new emulator with API 24.
Then clicked "Run Behavior Test Suite" in the app after it built with that one new file (SQLCompileStatementFinalizeTest.java
) and the edited file (TestSuiteRunner.java
).
Those are all the steps I took to replicate.
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
I don't even know what else can be different.
Emulator version is
I can reproduce this 100% times on Mac and Windows.
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
Hi @oleksandr-semenov
Puzzling, my emulator details appear to mirror your almost identically (I've only removed the extraneous newlines below).
Name: api-24-x86
CPU/ABI: Google Play Intel Atom (x86)
Path: /Users/nparker/.android/avd/api-24-x86.avd
Target: google_apis_playstore [Google Play] (API level 24)
Skin: pixel_4
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_4
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 24
tag.id: google_apis_playstore
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: api-24-x86
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: true
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2280
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images/android-24/google_apis_playstore/x86/
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: api-24-x86
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google Play
runtime.network.latency: none
disk.dataPartition.size: 6442450944
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
I am also able to replicate the test crash.
2021-03-03 10:35:21.761 4997-5007/net.zetetic.sqlcipher.test E/AndroidRuntime: FATAL EXCEPTION: FinalizerWatchdogDaemon
Process: net.zetetic.sqlcipher.test, PID: 4997
java.util.concurrent.TimeoutException: net.sqlcipher.database.SQLiteCompiledSql.finalize() timed out after 10 seconds
at java.lang.Object.wait(Native Method)
at java.lang.Thread.parkFor$(Thread.java:2127)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:161)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:840)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:873)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
at java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:200)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
at net.sqlcipher.database.SQLiteDatabase.lock(SQLiteDatabase.java:570)
at net.sqlcipher.database.SQLiteCompiledSql.releaseSqlStatement(SQLiteCompiledSql.java:104)
at net.sqlcipher.database.SQLiteCompiledSql.finalize(SQLiteCompiledSql.java:146)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
at java.lang.Thread.run(Thread.java:761)
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
And on another image it also crashes
Name: Pixel_4_XL_API_24_3
CPU/ABI: Google APIs Intel Atom (x86_64)
Target: google_apis [Google APIs] (API level 24)
Skin: pixel_4_xl
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_4_xl
hw.lcd.width: 1440
hw.initialOrientation: Portrait
image.androidVersion.api: 24
tag.id: google_apis
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 4 XL API 24 3
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: false
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 3040
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images\android-24\google_apis\x86_64\
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_4_XL_API_24_3
hw.lcd.density: 560
hw.arc: false
hw.device.hash2: MD5:80326cf5b53c08af25d4243cb231faa9
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google APIs
runtime.network.latency: none
disk.dataPartition.size: 800M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
Hi @developernotes
I double-checked my test case and it's still crashing.
Emulator configuration is
Name: Pixel_4_API_24
CPU/ABI: Google Play Intel Atom (x86)
Target: google_apis_playstore [Google Play] (API level 24)
Skin: pixel_4
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_4
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 24
tag.id: google_apis_playstore
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 4 API 24
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: true
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2280
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images\android-24\google_apis_playstore\x86\
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_4_API_24
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google Play
runtime.network.latency: none
disk.dataPartition.size: 6442450944
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
Hi @oleksandr-semenov
I have tried running this test repeatedly on an emulator using API 24, it is always successful for me. What ABI are you using for an emulator?
comment created time in 3 days
push eventsqlcipher/sqlcipher-android-tests
commit sha 3492b1a9df46fa10ff6c36e86394ddfbca3a40a0
Update test suite to ref. 4.4.3 release
push time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
SQLCompileStatement crash DEMO
Hi @developernotes were you able to reproduce the issue using an emulator? Is there anything else I can help you with?
comment created time in 3 days
pull request commentsqlcipher/sqlcipher-android-tests
Nested transactions withn listener issue
Hello @oleksandr-semenov
Please see further comments here.
comment created time in 3 days
issue commentsqlcipher/android-database-sqlcipher
Transaction listener is not called properly with nested transactions
Hello @oleksandr-semenov
Unfortunately, the current Java implementation used within SQLCipher for Android does not allow nesting SQLiteTransactionListener
instances (i.e., it only allows for tracking a single listener, however, nested transactions are allowed). The current Google implementation of android.database.sqlite
appears to support this via embedding the listener into a transaction object managed via a session connection pool. This may be something we revisit in a future release.
We will leave this ticket open for for review and further discussion in the future.
comment created time in 3 days
issue commentsqlcipher/android-database-sqlcipher
Transaction listener is not called properly with nested transactions
Android tests: https://github.com/sqlcipher/sqlcipher-android-tests/pull/39
comment created time in 3 days
issue openedsqlcipher/android-database-sqlcipher
Transaction listener is not called properly with nested transactions
Expected Behavior
When using nested transactions listener is called each time when the outer or inner transaction starts and ends/rolls back
Actual Behavior
The listener is not called in an expected way
Steps to Reproduce
Launch code with the nested transaction and observe the behavior https://github.com/sqlcipher/sqlcipher-android-tests/pull/39
SQLCipher version (can be identified by executing PRAGMA cipher_version;): 4.4.2 community
SQLCipher for Android version: 4.4.2
Note: AndroidX SQLite database works as expected and dispatches all callbacks for nested and outer transactions.
created time in 3 days
PR opened sqlcipher/sqlcipher-android-tests
I'm seeing the issue with SQLiteTransactionListener
not being called when using nested DB transactions via database.beginTransactionWithListener
I've added 2 test cases to demo the issue
pr created time in 3 days
issue commentsqlcipher/android-database-sqlcipher
I see this crash issue happening, when inserting 15000 rows CSV files data.
Thanks
comment created time in 3 days
fork shevavm/cw-omnibus
Source code to omnibus edition of _The Busy Coder's Guide to Android Development_
http://commonsware.com/Android
fork in 3 days
startedcommonsguy/cw-omnibus
started time in 3 days
startedcommonsguy/cw-omnibus
started time in 3 days
created tagsqlcipher/android-database-sqlcipher
Android SQLite API based on SQLCipher
created time in 4 days
startedcommonsguy/cw-omnibus
started time in 4 days
fork MS-Jahan/cw-omnibus
Source code to omnibus edition of _The Busy Coder's Guide to Android Development_
http://commonsware.com/Android
fork in 4 days
startedcommonsguy/cw-omnibus
started time in 4 days
fork suada-hj/cw-omnibus
Source code to omnibus edition of _The Busy Coder's Guide to Android Development_
http://commonsware.com/Android
fork in 5 days