InvictusInnovations / keyhotee

Decentralized ID and Communication
54 stars 27 forks source link

Crash entering chinese character in compose window #301

Open dnotestein opened 10 years ago

dnotestein commented 10 years ago

ver 0.5.5 Crashes when I input Chinese character "?" in the compose mail window, popping diagnostic window. But the diagnostic log dumps so much personal information that I don't want to post them here.

UPDATE: It crashes EVERY TIME I input that character in Chinese input method(I've tried 2 sorts of Chinese input method), but not when I compose my mail in notepad.exe ant ctrl-c, ctrl-v to compose mail window.

dnotestein commented 10 years ago

Some more info from coolspeed on this issue: It's Chinese character question mark "?"。 The question mark makes crash EVERY TIME. And the Chinese character comma makes crash occasionally and I don't know when exactly. Considering I can compose in notepad.exe and paste to mail composing window, I personally guess it's not encoding issue, but input method program and inter process communication on windows.

dnotestein commented 10 years ago

Chinese character ':' also causes crash. plus Chinese chracter '(' and ',' (comma) ver 0.5.5 I can hardly compose a mail in keyhotee. I compose in notepad.exe now.

vogel76 commented 10 years ago

We definitely need OS info and how text is entered (using which tool). Maybe we could send debug version to this client to get some memory dump

coolspeed commented 10 years ago

I am the reporter of this issue. I now add some details: My OS: Windows 7 32 bit. keyhtoee version: 0.5.5 & 0.5.6 I've tried these two input method programs:

  1. JiDianWubi Input Method (http://www.freewb.org/) (It has windows version only)
  2. Sogou Pinyin Input Method (http://pinyin.sogou.com) (version for windows) To reproduce this issue, just type the key '?' on keyboard, which is allocated at the same key as '/'. Sorry to report such a hard-to-position issue.

When the application crashes, it pops up a window which contains some debug dumps, which include so much personal that I don't want to post them here before some "mosaic" processing.

I will post the debug dumps here as soon as I can.

If it does not help, then please send me a debug binary then teach me how to save the momory dump (a bin file?), I then would send it to you.

coolspeed commented 10 years ago

I'm not quite sure if I can or should paste the crash diagnostic dumps here. The diagnostic dumps are like the following:

145413ms th_a startup ] . KeyhoteeApplication.cpp:329 145436ms th_a get_profiles ] C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP application.cpp:401 145438ms th_a get_profiles ] profiles ["CSPD_TEMP_NAME"] application.cpp:408 145438ms th_a displayLogin ] . KeyhoteeApplication.cpp:259 146570ms th_a get_profiles ] C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP application.cpp:401 146571ms th_a get_profiles ] profiles ["CSPD_TEMP_NAME"] application.cpp:408 146572ms th_a LoginDialog ] profiles CSPD_TEMP_NAME LoginDialog.cpp:42 154243ms th_a open ] opening profile: C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP profile.cpp:103 154271ms th_a open ] loading master key file:.keyhotee_master.key profile.cpp:116 154669ms th_a open ] opening profile databases profile.cpp:128 155138ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/ADDRES~1/CONTAC~1 is not upgradeable upgrade_leveldb.cpp:24 155361ms th_a open ] loading contact {"public_key":"032514ce62d6199bc205d631cfe5de72e3c29e6b39a8c4eeac2c265830c2e0f9ef","dac_id_hash":9514059908338625230,"dac_id_string":"Jin","properties":[],"wallet_index":0,"privacy_setting":"secret_contact","first_name":"coolspeed","last_name":"Jin","icon_png":"","notes":"PsH1KxiyQVgiHWFrhqpgdvejhiSaLw2fMi","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 155593ms th_a open ] loading contact {"public_key":"031c5b0ff2bea0c17258fb9b02bb6bd13e1d8846e2414a3ecb5e41730ca1220abe","dac_id_hash":0,"dac_id_string":"","properties":[],"wallet_index":1,"privacy_setting":"secret_contact","first_name":"Hexu","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 155614ms th_a open ] loading contact {"public_key":"0266cc955533f2ea3b1a9f89d3c70349128da1f2e3e7b42253c967fa86cb474a31","dac_id_hash":0,"dac_id_string":"","properties":[],"wallet_index":2,"privacy_setting":"secret_contact","first_name":"Keyhotee","last_name":"China","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 155624ms th_a open ] loading contact {"public_key":"038b00158582a52861d82c173530fd08cdaa99628c50864743a99f6a7d22ad89cd","dac_id_hash":0,"dac_id_string":"","properties":[],"wallet_index":3,"privacy_setting":"secret_contact","first_name":"Day","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 155823ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/idents is not upgradeable upgrade_leveldb.cpp:24 156093ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/inbox/index is not upgradeable upgrade_leveldb.cpp:24 156254ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/inbox/DIGEST~1 is not upgradeable upgrade_leveldb.cpp:24 156335ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/draft/index is not upgradeable upgrade_leveldb.cpp:24 156408ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/draft/DIGEST~1 is not upgradeable upgrade_leveldb.cpp:24 156488ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/pending/index is not upgradeable upgrade_leveldb.cpp:24 156549ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/pending/DIGEST~1 is not upgradeable upgrade_leveldb.cpp:24 156670ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/sent/index is not upgradeable upgrade_leveldb.cpp:24 156776ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/mail/sent/DIGEST~1 is not upgradeable upgrade_leveldb.cpp:24 156883ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/chat/index is not upgradeable upgrade_leveldb.cpp:24 156955ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/chat/DIGEST~1 is not upgradeable upgrade_leveldb.cpp:24 156964ms th_a open ] finished opening profile profile.cpp:142 156995ms th_a configure ] application::configure application.cpp:236 157026ms th_a configure ] configuring server application.cpp:268 157052ms th_a configure ] listening for stcp connections on port 0 server.cpp:208 157372ms th_a configure ] configure bitname client application.cpp:274 157633ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPDTEMP/data/bitname/bitname/channel/BLOCK~1 is not upgradeable upgrade_leveldb.cpp:24 157779ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPDTEMP/data/bitname/bitname/channel/BLOCK~2 is not upgradeable upgrade_leveldb.cpp:24 157901ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/NAME_H~1 is not upgradeable upgrade_leveldb.cpp:24 157905ms th_a load_indexes ] load indexes bitname_db.cpp:100 157908ms th_a load_indexes ] load indexes bitname_db.cpp:115 157966ms th_a init_timekeeper ] ...init stats... bitname_db.cpp:170 157969ms th_a init_timekeeper ] ...done init timekeeper... bitname_db.cpp:172 157972ms th_a open ] open name db bitname_db.cpp:222 158259ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/forks/headers is not upgradeable upgrade_leveldb.cpp:24 158413ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/forks/blocks is not upgradeable upgrade_leveldb.cpp:24 158523ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/forks/forks is not upgradeable upgrade_leveldb.cpp:24 158591ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/forks/nexts is not upgradeable upgrade_leveldb.cpp:24 158696ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPD_TEMP/data/bitname/bitname/channel/forks/unknown is not upgradeable upgrade_leveldb.cpp:24 158718ms th_a configure ] configure bitchat client application.cpp:284 158899ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPDTEMP/data/bitchat/channel0/CACHE~1/MESSAG~1/by_id is not upgradeable upgrade_leveldb.cpp:24 159013ms th_a UpgradeDbIfNecessary ] Database C:/Users/COOLSP~1/AppData/Local/KEYHOTEE/profiles/CSPDTEMP/data/bitchat/channel0/CACHE~1/MESSAG~1/AGE_IN~1 is not upgradeable upgrade_leveldb.cpp:24 159023ms th_a configure ] configuring rpc_server application.cpp:288 159025ms th_a configure ] listening for rpc connections on port 0 rpc_server.cpp:245 159035ms th_a configure ] listening for rpc connections on port 49294 rpc_server.cpp:247 159036ms th_a configure ] done configuring rpc_server application.cpp:291 159039ms th_a configure ] end application::configure application.cpp:293 160871ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:306 160874ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:306 160877ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:306 160879ms th_a reloadContacts ] loading contacts... AddressBookModel.cpp:306 162460ms th_a KeyhoteeMainWindow ] idents: [{"public_key":"032514ce62d6199bc205d631cfe5de72e3c29e6b39a8c4eeac2c265830c2e0f9ef","dac_id_hash":9514059908338625230,"dac_id_string":"Jin","properties":[],"wallet_ident":"Jin","mining_effort":1,"first_name":"coolspeed","last_name":"Jin","private_icon_png":""}] KeyhoteeMainWindow.cpp:261 163463ms th_a start_mail_connect_l ] start_mail_connect_loop application.cpp:171 168498ms th_a mail_connect_loop ] mail connect 162.243.67.4:7896 application.cpp:80 168501ms th_a connect ] connect to 162.243.67.4:7896 and resolved ["162.243.67.4:7896"] mail_connection.cpp:211 172133ms th_a connect ] connected to 162.243.67.4:7896 mail_connection.cpp:202 471018ms th_a displayFailureInfo ] Unknown exception caught KeyhoteeApplication.cpp:302 471021ms th_a displayFailureInfo ] fatal error Unknown exception caught KeyhoteeApplication.cpp:304

dnotestein commented 10 years ago

We used latest version of http://pinyin.sogou.com/ in compose mail window of KH, but we couldn't reproduce this error. We tried all the chars that were giving problems, plus some others, and we tried with and without "set LANG=zh_CN" set. At this point, we're looking into integrating "crash report" code so that we can get stack dumps from user systems for these type of problems.

coolspeed commented 10 years ago

At this point, we're looking into integrating "crash report" code so that we can get stack dumps from user systems for these type of problems.

Looking forward to it.