andreas-mausch / whatsapp-viewer

Small tool to display chats from the Android msgstore.db database (crypt12)
https://andreas-mausch.de/whatsapp-viewer/
MIT License
1.24k stars 381 forks source link

Runtime Error when trying to decrypt .crypt12 database #46

Closed ziyadss closed 3 years ago

ziyadss commented 6 years ago

After I load the database and key files and press OK, I get runtime error, of which a screenshot is attached image

I tried using another laptop and the same error showed, so it could be related to my own files? I'm not sure & I don't have other files to try.

andreas-mausch commented 6 years ago

Uh! Could you provide me sample files to andreas.mausch@gmail.com?

ziyadss commented 6 years ago

I've used another application to decrypt the file, and the now decrypted .db file actually works with WhatsApp Viewer, so I guess the files weren't corrupted. If the files would still be of use to you, let me know, I'm okay with giving you them if it'd help you for anything.

andreas-mausch commented 6 years ago

Yes please, my applications should never crash. :)

colgat commented 6 years ago

failed

доброго дня , что можете сказать , почему так вышло ? тесты на других делал , всё выходило а тут не как а информация очень нужная в файле, возможно помочь ?

noise3 commented 6 years ago

When I try with a small database, the error does not appear. With a 200MB database, I get the same error

avihaiamar1 commented 6 years ago

Hi Andreas, same issue with ~240MB Database..

image

harshadmehta001 commented 6 years ago

Hi Buddy, You have done a great job, I wanted to know if this application has any limitations related to the size of file. It is giving me run time error while decrypting file size of 133 mb. Thanks

andreas-mausch commented 6 years ago

Hi @harshadmehta001, are you willing to share the database? I would take a look at it immediately then. Currently decryption/uncompressing is done completely in memory, which is probably a bad idea regarding the growing file sizes.

dwightyy commented 6 years ago

@andreas-mausch I had the same problem. With me it happens when i go "file > decrypt.crypt12 > input the 2 files", then i recieved this error. I found a workround doing via command line and worked fine with the same 2 files. I gonna try to make a video later if necessary.

Khiago commented 6 years ago

Hello @andreas-mausch :)

I got the same Runtime error above with a 400mb Database. I don't find another way to decrypt it. Can you help me? I can send you the files, if you need them

Thanks in advance


EDIT: its a crypt12 database with key

andreas-mausch commented 6 years ago

@Khiago Yes, please send the files via wetransfer or dropsend to andreas.mausch@gmail.com

Thanks!

Khiago commented 6 years ago

Hello @andreas-mausch . Sorry to take long to anwser. I tried to open my files with "my SQL" and got the same error, so i concluded that my files are corrupted. I used SQLite to dump to another .db and with the health archive, your software worked great and i was able to read my almost 1gb decrypted database :)

Thanks

nico89s commented 5 years ago

I can confirm that runtime error happen when I try to decrypt db.crypt12 larger than 90MB. I try my october 2017 backup with 85MB and 86MB success decrypted. But when I try my December 2017 backup with 96MB file size it start to fail with runtime error message. Of course my newest 144MB database can't decrypted.

javiersh2000 commented 4 years ago

Hi, runtime error in 150 and 200mb any help? Thank you.

andreas-mausch commented 3 years ago

Thanks to whoever gave me the 400mb crypt12 file. I was able to reproduce the bug finally.

image

I'm gonna enjoy the rest of the sun for today and come back to this in the evening.

andreas-mausch commented 3 years ago

Fixed in v1.13

andreas-mausch commented 3 years ago

Sorry for the short delay of three years for such a major bug. 🤦

Thank you to everyone who sent me test data.

Hope this is now fixed for all possible database files.