{"action":"opened","issue":{"url":"https://api.github.com/repos/ccgus/fmdb/issues/414","labels_url":"https://api.github.com/repos/ccgus/fmdb/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/ccgus/fmdb/issues/414/comments","events_url":"https://api.github.com/repos/ccgus/fmdb/issues/414/events","html_url":"https://github.com/ccgus/fmdb/issues/414","id":109719001,"number":414,"title":"crash FMDBBlockSQLiteCallBackFunction","user":{"login":"gongtao","id":1748014,"avatar_url":"https://avatars.githubusercontent.com/u/1748014?v=3","gravatar_id":"","url":"https://api.github.com/users/gongtao","html_url":"https://github.com/gongtao","followers_url":"https://api.github.com/users/gongtao/followers","following_url":"https://api.github.com/users/gongtao/following{/other_user}","gists_url":"https://api.github.com/users/gongtao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongtao/subscriptions","organizations_url":"https://api.github.com/users/gongtao/orgs","repos_url":"https://api.github.com/users/gongtao/repos","events_url":"https://api.github.com/users/gongtao/events{/privacy}","received_events_url":"https://api.github.com/users/gongtao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T01:58:25Z","updated_at":"2015-10-05T01:58:25Z","closed_at":null,"body":"I used FMDB in private dispatch_queue blocks, and received crash logs. I did not use any functions that contain FMDBBlockSQLiteCallBackFunction function. I used [FMDatabaseQueue inDatabase:] function to access database.\r\n\r\nThread : Crashed: com.xiaomi.micloud.sdk.contact.queue\r\n0  libsystem_c.dylib              0x00000001979e96ac strlen + 12\r\n1  MicIOSHelper                   0x00000001001e6f34 FMDBBlockSQLiteCallBackFunction + 213448\r\n2  MicIOSHelper                   0x00000001001e6f34 FMDBBlockSQLiteCallBackFunction + 213448\r\n3  MicIOSHelper                   0x00000001001e97b0 FMDBBlockSQLiteCallBackFunction + 223812\r\n4  MicIOSHelper                   0x00000001001e8604 FMDBBlockSQLiteCallBackFunction + 219288\r\n5  MicIOSHelper                   0x000000010020509c FMDBBlockSQLiteCallBackFunction + 336688\r\n6  CoreFoundation                 0x000000018568d140 __NSArrayEnumerate + 484\r\n7  MicIOSHelper                   0x0000000100204788 FMDBBlockSQLiteCallBackFunction + 334364\r\n8  MicIOSHelper                   0x00000001002052dc FMDBBlockSQLiteCallBackFunction + 337264\r\n9  MicIOSHelper                   0x000000010007e3fc -[MCRootViewController requestMiCloudChangedContacts:source:isEstimate:success:fail:] (MCRootViewController.m:319)\r\n10 MicIOSHelper                   0x000000010007d70c __38-[MCRootViewController viewDidAppear:]_block_invoke (MCRootViewController.m:177)\r\n11 libdispatch.dylib              0x000000019798d994 _dispatch_call_block_and_release + 24\r\n12 libdispatch.dylib              0x000000019798d954 _dispatch_client_callout + 16\r\n13 libdispatch.dylib              0x00000001979980a4 _dispatch_queue_drain + 1448\r\n14 libdispatch.dylib              0x0000000197990a5c _dispatch_queue_invoke + 132\r\n15 libdispatch.dylib              0x000000019799a318 _dispatch_root_queue_drain + 720\r\n16 libdispatch.dylib              0x000000019799bc4c _dispatch_worker_thread3 + 108\r\n17 libsystem_pthread.dylib        0x0000000197b6d22c _pthread_wqthread + 816\r\n18 libsystem_pthread.dylib        0x0000000197b6cef0 start_wqthread + 4"}}