{"action":"created","issue":{"url":"https://api.github.com/repos/Tencent/wcdb/issues/21","repository_url":"https://api.github.com/repos/Tencent/wcdb","labels_url":"https://api.github.com/repos/Tencent/wcdb/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/wcdb/issues/21/comments","events_url":"https://api.github.com/repos/Tencent/wcdb/issues/21/events","html_url":"https://github.com/Tencent/wcdb/issues/21","id":235453471,"number":21,"title":"当我尝试加密数据库的时候遇到这个bug","user":{"login":"liner02","id":23724085,"avatar_url":"https://avatars1.githubusercontent.com/u/23724085?v=3","gravatar_id":"","url":"https://api.github.com/users/liner02","html_url":"https://github.com/liner02","followers_url":"https://api.github.com/users/liner02/followers","following_url":"https://api.github.com/users/liner02/following{/other_user}","gists_url":"https://api.github.com/users/liner02/gists{/gist_id}","starred_url":"https://api.github.com/users/liner02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liner02/subscriptions","organizations_url":"https://api.github.com/users/liner02/orgs","repos_url":"https://api.github.com/users/liner02/repos","events_url":"https://api.github.com/users/liner02/events{/privacy}","received_events_url":"https://api.github.com/users/liner02/received_events","type":"User","site_admin":false},"labels":[{"id":625532066,"url":"https://api.github.com/repos/Tencent/wcdb/labels/android","name":"android","color":"78C059","default":false},{"id":602831110,"url":"https://api.github.com/repos/Tencent/wcdb/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":{"login":"John-He-928","id":7530627,"avatar_url":"https://avatars3.githubusercontent.com/u/7530627?v=3","gravatar_id":"","url":"https://api.github.com/users/John-He-928","html_url":"https://github.com/John-He-928","followers_url":"https://api.github.com/users/John-He-928/followers","following_url":"https://api.github.com/users/John-He-928/following{/other_user}","gists_url":"https://api.github.com/users/John-He-928/gists{/gist_id}","starred_url":"https://api.github.com/users/John-He-928/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-He-928/subscriptions","organizations_url":"https://api.github.com/users/John-He-928/orgs","repos_url":"https://api.github.com/users/John-He-928/repos","events_url":"https://api.github.com/users/John-He-928/events{/privacy}","received_events_url":"https://api.github.com/users/John-He-928/received_events","type":"User","site_admin":false},"assignees":[{"login":"John-He-928","id":7530627,"avatar_url":"https://avatars3.githubusercontent.com/u/7530627?v=3","gravatar_id":"","url":"https://api.github.com/users/John-He-928","html_url":"https://github.com/John-He-928","followers_url":"https://api.github.com/users/John-He-928/followers","following_url":"https://api.github.com/users/John-He-928/following{/other_user}","gists_url":"https://api.github.com/users/John-He-928/gists{/gist_id}","starred_url":"https://api.github.com/users/John-He-928/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-He-928/subscriptions","organizations_url":"https://api.github.com/users/John-He-928/orgs","repos_url":"https://api.github.com/users/John-He-928/repos","events_url":"https://api.github.com/users/John-He-928/events{/privacy}","received_events_url":"https://api.github.com/users/John-He-928/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2017-06-13T06:55:32Z","updated_at":"2017-06-15T10:41:17Z","closed_at":null,"body":"buglog:attempt to re-open an already-closed object\r\n并且导致应用崩溃。\r\n是否是我在不同的线程中打开了相同的数据库引起的。"},"comment":{"url":"https://api.github.com/repos/Tencent/wcdb/issues/comments/308695342","html_url":"https://github.com/Tencent/wcdb/issues/21#issuecomment-308695342","issue_url":"https://api.github.com/repos/Tencent/wcdb/issues/21","id":308695342,"user":{"login":"zhangkehu","id":9359883,"avatar_url":"https://avatars0.githubusercontent.com/u/9359883?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangkehu","html_url":"https://github.com/zhangkehu","followers_url":"https://api.github.com/users/zhangkehu/followers","following_url":"https://api.github.com/users/zhangkehu/following{/other_user}","gists_url":"https://api.github.com/users/zhangkehu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangkehu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangkehu/subscriptions","organizations_url":"https://api.github.com/users/zhangkehu/orgs","repos_url":"https://api.github.com/users/zhangkehu/repos","events_url":"https://api.github.com/users/zhangkehu/events{/privacy}","received_events_url":"https://api.github.com/users/zhangkehu/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T10:41:17Z","updated_at":"2017-06-15T10:41:17Z","body":"我做升级的时候一直这个错误，是哪里操作不对吗？\r\n\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (1/11) CursorWindow...\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/CursorWindow natives\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (2/11) FileUtils...\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/FileUtils natives\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (3/11) ChunkedCursorWindow...\r\n06-15 18:31:18.374 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/ChunkedCursorWindow natives\r\n06-15 18:31:18.375 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/SQLiteAsyncQuery natives\r\n06-15 18:31:18.375 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (4/11) SQLiteConnection...\r\n06-15 18:31:18.375 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/SQLiteConnection natives\r\n06-15 18:31:18.376 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (5/11) SQLiteDebug...\r\n06-15 18:31:18.376 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/SQLiteDebug natives\r\n06-15 18:31:18.376 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (6/11) SQLiteDirectCursor...\r\n06-15 18:31:18.376 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/SQLiteDirectQuery natives\r\n06-15 18:31:18.377 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (7/11) SQLiteGlobal...\r\n06-15 18:31:18.377 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/database/SQLiteGlobal natives\r\n06-15 18:31:18.377 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (8/11) DBBackup...\r\n06-15 18:31:18.377 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/repair/BackupKit natives\r\n06-15 18:31:18.377 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/repair/RecoverKit natives\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (9/11) DBDumpUtil...\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/repair/DBDumpUtil natives\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (10/11) DBRepair...\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/repair/RepairKit natives\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov I/WCDB: Initialize JNI module (11/11) Log...\r\n06-15 18:31:18.378 22379-22575/com.view.asim.gov V/WCDB.JNIHelp: Registering com/tencent/wcdb/support/Log natives\r\n06-15 18:31:18.462 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnectionPool: Max connection pool size is 5.\r\n06-15 18:31:18.468 22379-22661/com.view.asim.gov I/WCDB: Initialize SQLite connection module 'MMFTS'...\r\n06-15 18:31:18.477 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnection: Opened connection 0xba173e50 with label '/storage/emulated/0/Android/data/com.view.asim.gov/.asim/data/enterprise-f59fd8bc10ea073c10817339c0709c2e/dc2069c4b88506f9dc23b3553bba1126/database/dc2069c4b88506f9dc23b3553bba1126-encrypted.db'\r\n06-15 18:31:18.479 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnection: sqlite3_key verification passed.\r\n06-15 18:31:18.491 22379-22661/com.view.asim.gov I/WCDB: Initialize SQLite connection module 'MMFTS'...\r\n06-15 18:31:18.491 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnection: Opened connection 0xba185fe0 with label '/storage/emulated/0/Android/data/com.view.asim.gov/.asim/data/enterprise-f59fd8bc10ea073c10817339c0709c2e/dc2069c4b88506f9dc23b3553bba1126/database/dc2069c4b88506f9dc23b3553bba1126-encrypted.db'\r\n06-15 18:31:18.492 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnection: sqlite3_key verification passed.\r\n06-15 18:31:18.556 22379-22661/com.view.asim.gov W/WCDB.SQLite: [SQLite ErrCode: 1] no such table: old.sqlite_master\r\n06-15 18:31:18.556 22379-22661/com.view.asim.gov W/WCDB.SQLite: [SQLite ErrCode: 1] statement aborts at 1: [SELECT sqlcipher_export('main', 'old');] SQL logic error or missing database\r\n06-15 18:31:18.559 22379-22661/com.view.asim.gov I/WCDB.SQLiteConnection: executeForString took 1ms - failed, sql=\"SELECT sqlcipher_export('main', 'old');\", exception=\"SQL logic error or missing database (code 1, errno 0): \"\r\n06-15 18:31:18.598 22379-22661/com.view.asim.gov W/System.err: com.tencent.wcdb.database.SQLiteException: SQL logic error or missing database (code 1, errno 0): \r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteConnection.nativeExecuteForString(Native Method)\r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteConnection.executeForString(SQLiteConnection.java:729)\r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteSession.executeForString(SQLiteSession.java:674)\r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteStatement.simpleQueryForString(SQLiteStatement.java:126)\r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.DatabaseUtils.stringForQuery(DatabaseUtils.java:886)\r\n06-15 18:31:18.601 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.DatabaseUtils.stringForQuery(DatabaseUtils.java:874)\r\n06-15 18:31:18.602 22379-22661/com.view.asim.gov V/WCDB.SQLiteConnection: Closing connection 0xba185fe0\r\n06-15 18:31:18.604 22379-22661/com.view.asim.gov V/WCDB.SQLiteConnection: Closing connection 0xba173e50\r\n06-15 18:31:18.606 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteClosable.acquireReference(SQLiteClosable.java:55)\r\n06-15 18:31:18.606 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1501)\r\n06-15 18:31:18.606 22379-22661/com.view.asim.gov W/System.err:     at com.tencent.wcdb.database.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1444)"}}
{"actor":{"display_login":"zhangkehu"}}