Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Bug reports => Topic started by: Myshor on 10 07 2018, 21:07:05

Title: Miranda crash while db autobackup starts
Post by: Myshor on 10 07 2018, 21:07:05
After today's upgrade my Miranda crashes every time db autobackup starts...

Crashlog in attachments.

Again I can work if I disable autobackup, but why should I? ;)
Title: Re: Miranda crash while db autobackup starts
Post by: Goraf on 11 07 2018, 07:39:38
Could you please add debug symbols and reproduce that crash after that?
Title: Re: Miranda crash while db autobackup starts
Post by: Myshor on 11 07 2018, 18:29:00
I changed Miranda to symbols and I don't see any difference.

Maybe it's a profile file problem 'cause it's huge...  :o
almost 32MB.
Title: Odp: Miranda crash while db autobackup starts
Post by: Myshor on 11 07 2018, 18:54:36
I will take profile from work back home and check it... Maybe my profile blow up.  :(
Title: Re: Miranda crash while db autobackup starts
Post by: Vulpix on 11 07 2018, 19:20:15
I wouldn't worry about that; my profile is 450MB now and it works fine :D

I don't know much about miranda code but I see some compact messages there:

https://github.com/miranda-ng/miranda-ng/commit/0ab599895f91e7ff61d69e7d4de8dcf90d12bce1

Maybe this is related? :o I dunno. This will need Ghazan I think.
Title: Odp: Miranda crash while db autobackup starts
Post by: Myshor on 11 07 2018, 20:04:22
I found some older backup of miranda on pendrive. imported profile from there and everything is working fine.

And I f**ked up. I didn't store broken profile as backup. Sorry...
Title: Odp: Miranda crash while db autobackup starts
Post by: Goraf on 11 07 2018, 20:14:21
The difference with symbols is that they help to produce useful crashlogs.

About problem itself we will see
https://github.com/miranda-ng/miranda-ng/issues/1462
Title: Re: Miranda crash while db autobackup starts
Post by: dartraiden on 12 07 2018, 11:52:02
Maybe this is related?
Compacting bug already fixed.
Title: Re: Miranda crash while db autobackup starts
Post by: ghazan on 12 07 2018, 17:55:20
this bug is already fixed, precisely a day after the crash
Title: Re: Miranda crash while db autobackup starts
Post by: Vulpix on 13 07 2018, 22:01:39
Well I just foolishly tried compacting my profile with the latest miranda.

Profile got truncated to 1MB, everything lost :D

So I was like, you know, no problem. I got a bunch of backups via autobackup.

Turns out they're all dead. All of the autobackup profiles are faulty.

I'm pretty sad right now
Title: Re: Miranda crash while db autobackup starts
Post by: dartraiden on 13 07 2018, 22:25:40
Ticket created
https://github.com/miranda-ng/miranda-ng/issues/1489
Title: Re: Miranda crash while db autobackup starts
Post by: Vulpix on 13 07 2018, 23:41:20
Thanks.

Also, I managed to recover my data because I had a backup from a week ago when it worked for the last time, and I also keep message export enabled by default and I'm exporting into text files. I managed to do a diff of the current data vs the data in my profile, trim the exported text files and import them.. I may have lost some avatar change history since it doesn't get imported there I think, but at the same time I lost no history as far as text goes.

There you have it. Not awesome libmdbx, not autobackups but good ol' ImportTXT and messageexport saved my history...

This is why I'm reluctant to allow their deprecation until something that works "the same way" exists , @Ghazan :D

DB autobackups does not work properly either since a few days ago as well which I didn't notice (the db size is about 10-15 MB less than the actual db I'm using and when you try opening it, it just gets truncated to 1MB on open. Trying to use importer just says error.

EDIT:

Since I had to troubleshoot and repair the ImportTXT template for "MsgExport" data format, I'm submitting it as a pull request on github in case anyone else wants to use it; so they don't have to debug a gigantic regex too :p