InvictusInnovations / keyhotee

Decentralized ID and Communication
54 stars 27 forks source link

Request authorization sent when network connection is down leads to crash #375

Closed yuvarajgogoi closed 10 years ago

yuvarajgogoi commented 10 years ago

1) start KH. 2) make network connection down 3) send a request authorization

crash is seen

Tested in Debain and is always reproducible.

log:
3070037ms th_a startup ] . KeyhoteeApplication.cpp:442 3070038ms th_a get_profiles ] /home/yuvaraj/.local/share/Keyhotee/profiles/Y G application.cpp:461 3070038ms th_a get_profiles ] /home/yuvaraj/.local/share/Keyhotee/profiles/J G application.cpp:461 3070038ms th_a get_profiles ] profiles ["Y G","J G"] application.cpp:468 3070039ms th_a displayLogin ] . KeyhoteeApplication.cpp:376 3070062ms th_a get_profiles ] /home/yuvaraj/.local/share/Keyhotee/profiles/Y G application.cpp:461 3070062ms th_a get_profiles ] /home/yuvaraj/.local/share/Keyhotee/profiles/J G application.cpp:461 3070062ms th_a get_profiles ] profiles ["Y G","J G"] application.cpp:468 3070062ms th_a LoginDialog ] profiles Y G LoginDialog.cpp:42 3070062ms th_a LoginDialog ] profiles J G LoginDialog.cpp:42 3073065ms th_a open ] opening profile: /home/yuvaraj/.local/share/Keyhotee/profiles/Y G profile.cpp:119 3073065ms th_a open ] loading master key file:.keyhotee_master.key profile.cpp:135 3073066ms th_a open ] opening profile databases profile.cpp:147 3073198ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/addressbook/contact_db is not upgradeable upgrade_leveldb.cpp:24 3073198ms th_a open ] loading contact {"public_key":"03a994f71ef5125d6195a14421f70194b034ce748dfa295ea65d322f5801ebcecb","dac_id_hash":9871701508635294881,"dac_id_string":"y","properties":[],"wallet_index":0,"auth_status":"unauthorized","privacy_setting":"secret_contact","first_name":"","last_name":"","icon_png":"","notes":"","next_send_trx_id":0,"send_trx_address":{"pub_key":"000000000000000000000000000000000000000000000000000000000000000000","chain_code":"0000000000000000000000000000000000000000000000000000000000000000"},"bitchat_recv_channels":[],"bitchat_broadcast_channels":[],"bitchat_recv_broadcast_key":"0000000000000000000000000000000000000000000000000000000000000000"} addressbook.cpp:59 3073220ms th_a open ] loading contact {"public_key":"02734ae5f9a3ceb83c2678d19fb8fcbb81d1672a2b085b447dab6e8e48e2086c13","dac_id_hash":0,"dac_id_string":"","properties":[],"wallet_index":1,"auth_status":"unauthorized","privacy_setting":"secret_contact","first_name":"","last_name":"","icon_png":"89504e470d0a1a0a0000000d4948445200000020000000200806000000737a7af4000000097048597300000ec400000ec401952b0e1b00000392494441545885c5565d685c45183ddf7767eedd9b266977d3ba9a606ab0d522be2885405bd0a850a48a2fcd922294f8d2580a0505695f24e44d057df1a969f1af08765350b10f0afe2315a38896a0fd71355ada1a4d03d5cdeebd77ef9dcf871aec9add6476b3a51fcccb70e69c33e7ce7c77801b5cd4cca23d3f84f7926090c46c0200213e2d8489f1bbbc6fafab81c7cf4aa71704e34cc8d5582b46900f53a93d6fde417fb5dcc0e049f15dbffc0913fa97c219c15751d91f98d842651b5eb63500af381619d31f24064b8dc8987e78c5315b5aab04b67cf1674797eb5d24a0dd062f40f17214769fdcb6eeefe5b0ca86d067bd358c8d95f8bfd5eeb3de0ae0fd96188812e9214803fa80807a6c705606ca1553646ecc80212ab6cc40548926855988c8eacc88889071276db0d6d770e307331f12f0a09501e0a373dbb30fd960ad1200803049f6433009a2554babcb3c08fb6d791bea84d977cf3f00e2091032b5c531073183338fddfaf1753100006d277eb9d98b9d0302de49909eabba7481608e872a79bef448dfef8df0597f82852a7d3d3d5beaee7e0bc06952b40102124101b139052e5e6e94cf3e81c3852c91799a140f43d34d60fa8f41001801123327091d95927911fb369e6f99013e7c762f7bce73e43a9d6000f56ea3082080c4a68404a371e1f5973036669a37909f72dd79ff35f29d5d70c83eaf85442ae6bd707e6e08239b4b8d1b38f48d4ef999b739e5ec80d3d4bb05108144c9a7e5901ec6137d412d48dddf719b9f7e59fb6a87a3180e51738319ca53f7b7b7f1abf5746a6e6dd5d19f73da57c748513d4843254620b119b9925b3fbeac81f4a1c26aa4f519c7e3ec8a95ab4d5c2957e24da55c759f58d40738ad9f511e678957bef36a625aed907ab604ecbb76ba4aa5ebc88f1deeda8edf58f19ad6aa5f2d01ca89a6db66b6dff2c7c25c5502a9b59d434ad39abaf77ca5068cf81c9861002fd434a05df52b1b131053aa0567efffe2a844663a367cecdaf94532ebdfb934a0148e2b4519cbf7c7d2c20be241f27d18941ebdb8abba45d754e8cd4ff779befb86d2ce3676a8a9300400441057c444417c2498a5a72e8df42cea88f5b9474779c33d4f0e6b4da35a732f3160958800228224164491f9322a570e4e0ff57e5e0fbe3c637ecabd53a7776acdbbd9e1fb1c4529225a744e4500930892d8ccc5b19ca88495577ecaf57eb61c7d43e9aecb4fb56774d766877137446e274627091901cd9a44ce4562be2b64ba4f6180e246786f68fd0376596dac58d6da930000000049454e44ae426082","notes":"","next_send_trx_id":0,"send_trx_address":{"pub_key":"000000000000000000000000000000000000000000000000000000000000000000","chain_code":"0000000000000000000000000000000000000000000000000000000000000000"},"bitchat_recv_channels":[],"bitchat_broadcast_channels":[],"bitchat_recv_broadcast_key":"0000000000000000000000000000000000000000000000000000000000000000"} addressbook.cpp:59 3073310ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/idents is not upgradeable upgrade_leveldb.cpp:24 3073400ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/inbox/index is not upgradeable upgrade_leveldb.cpp:24 3073501ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/inbox/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3073602ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/inbox/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3073703ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/draft/index is not upgradeable upgrade_leveldb.cpp:24 3073815ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/draft/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3073927ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/draft/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3074023ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/pending/index is not upgradeable upgrade_leveldb.cpp:24 3074119ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/pending/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3074197ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/pending/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3074287ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/sent/index is not upgradeable upgrade_leveldb.cpp:24 3074377ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/sent/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3074466ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/sent/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3074556ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/spam/index is not upgradeable upgrade_leveldb.cpp:24 3074645ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/spam/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3074757ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/mail/spam/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3074847ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/chat/index is not upgradeable upgrade_leveldb.cpp:24 3074948ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/chat/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3075153ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/chat/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3075262ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/request/index is not upgradeable upgrade_leveldb.cpp:24 3075352ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/request/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3075442ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/request/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3075531ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/authorization/index is not upgradeable upgrade_leveldb.cpp:24 3075621ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/authorization/digest_to_data is not upgradeable upgrade_leveldb.cpp:24 3075711ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/authorization/digest_to_header is not upgradeable upgrade_leveldb.cpp:24 3075711ms th_a open ] loaded last_sync_time = 20140508T114114.719343 profile.cpp:166 3075711ms th_a open ] finished opening profile profile.cpp:167 3075711ms th_a configure ] application::configure application.cpp:296 3075711ms th_a configure ] configuring server application.cpp:328 3075711ms th_a configure ] listening for stcp connections on port 9876 server.cpp:208 3075712ms th_a configure ] configure bitname client application.cpp:334 3075811ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/block_num_to_header is not upgradeable upgrade_leveldb.cpp:24 3075901ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/block_num_to_name_trxs is not upgradeable upgrade_leveldb.cpp:24 3075991ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/name_hash_to_locs is not upgradeable upgrade_leveldb.cpp:24 3075991ms th_a load_indexes ] load indexes bitname_db.cpp:100 3075991ms th_a load_indexes ] load indexes bitname_db.cpp:115 3075993ms th_a init_timekeeper ] ...init stats... bitname_db.cpp:170 3075993ms th_a init_timekeeper ] ...done init timekeeper... bitname_db.cpp:172 3075993ms th_a open ] open name db bitname_db.cpp:222 3076159ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/forks/headers is not upgradeable upgrade_leveldb.cpp:24 3076316ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/forks/blocks is not upgradeable upgrade_leveldb.cpp:24 3076463ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/forks/forks is not upgradeable upgrade_leveldb.cpp:24 3076553ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/forks/nexts is not upgradeable upgrade_leveldb.cpp:24 3076643ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitname/bitname/channel/forks/unknown is not upgradeable upgrade_leveldb.cpp:24 3076645ms th_a configure ] configure bitchat client application.cpp:344 3076743ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitchat/channel0/cache_chan_2/message_cache/by_id is not upgradeable upgrade_leveldb.cpp:24 3076833ms th_a UpgradeDbIfNecessary ] Database /home/yuvaraj/.local/share/Keyhotee/profiles/Y G/data/bitchat/channel0/cache_chan_2/message_cache/age_index1 is not upgradeable upgrade_leveldb.cpp:24 3076834ms th_a configure ] configuring rpc_server application.cpp:348 3076834ms th_a configure ] listening for rpc connections on port 9877 rpc_server.cpp:245 3076834ms th_a configure ] listening for rpc connections on port 9877 rpc_server.cpp:247 3076834ms th_a configure ] done configuring rpc_server application.cpp:351 3076834ms th_a configure ] end application::configure application.cpp:353 3076948ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:310 3076949ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:310 3076965ms th_a KeyhoteeMainWindow ] idents: [{"public_key":"03a994f71ef5125d6195a14421f70194b034ce748dfa295ea65d322f5801ebcecb","dac_id_hash":9871701508635294881,"dac_id_string":"y","properties":[],"wallet_ident":"y","mining_effort":25,"first_name":"","last_name":"","private_icon_png":""}] KeyhoteeMainWindow.cpp:257 3076990ms th_a start_mail_connect_l ] start_mail_connect_loop application.cpp:203 3076991ms th_a operator() ] Closing the mail connection (which may not be open) application.cpp:207 3076991ms th_a operator() ] Done closing the mail connection application.cpp:209 3079312ms asio error_handler ] Network is unreachable asio.cpp:54 3079313ms th_a display_founderkey ] Founder Key Status exception: exception(unspecified) Network is unreachable NewIdentityDialog.cpp:148 3079316ms asio error_handler ] Network is unreachable asio.cpp:54 3079316ms th_a display_founderkey ] Founder Key Status exception: exception(unspecified) Network is unreachable NewIdentityDialog.cpp:148 3079319ms asio error_handler ] Network is unreachable asio.cpp:54 3079319ms th_a display_founderkey ] Founder Key Status exception: exception(unspecified) Network is unreachable NewIdentityDialog.cpp:148 3081992ms th_a mail_connect_loop ] mail connect 162.243.67.4:7896, send sync_time=20140508T114114.719343 application.cpp:82 3081992ms th_a connect ] connect to 162.243.67.4:7896 and resolved ["162.243.67.4:7896"] mail_connection.cpp:211 3081993ms asio error_handler ] Network is unreachable asio.cpp:54 3081993ms th_a connect ] attempt to connect to 162.243.67.4:7896 failed. mail_connection.cpp:221 3081993ms th_a mail_connect_loop ] unspecified unable to connect to 162.243.67.4:7896 {"host_port":"162.243.67.4:7896"} th_a mail_connection.cpp:224 connect application.cpp:95 3084631ms th_a send_contact_request ] send_contact_request at 20140513T115124.631046 application.cpp:591 3084631ms th_a displayFailureInfo ] std

{"len":304}
th_a  stcp_socket.cpp:86 writesome

unable to send message {} th_a mail_connection.cpp:238 send

{}
th_a  application.cpp:594 send_contact_request          KeyhoteeApplication.cpp:421

3084631ms th_a displayFailureInfo ] fatal error std

{"len":304}
th_a  stcp_socket.cpp:86 writesome

unable to send message {} th_a mail_connection.cpp:238 send

{}
th_a  application.cpp:594 send_contact_request          KeyhoteeApplication.cpp:423