Author Topic: Miranda crash while db autobackup starts  (Read 4102 times)

0 Members and 1 Guest are viewing this topic.

Offline Myshor

Miranda crash while db autobackup starts
« 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? ;)

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline Goraf

Re: Miranda crash while db autobackup starts
« Reply #1 on: 11 07 2018, 07:39:38 »
Could you please add debug symbols and reproduce that crash after that?
 

Offline Myshor

Re: Miranda crash while db autobackup starts
« Reply #2 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.

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline Myshor

Odp: Miranda crash while db autobackup starts
« Reply #3 on: 11 07 2018, 18:54:36 »
I will take profile from work back home and check it... Maybe my profile blow up.  :(

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline Vulpix

Re: Miranda crash while db autobackup starts
« Reply #4 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.
 

Offline Myshor

Odp: Miranda crash while db autobackup starts
« Reply #5 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...

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline Goraf

Odp: Miranda crash while db autobackup starts
« Reply #6 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
 

Offline dartraiden

Re: Miranda crash while db autobackup starts
« Reply #7 on: 12 07 2018, 11:52:02 »
Maybe this is related?
Compacting bug already fixed.
 

Offline ghazan

Re: Miranda crash while db autobackup starts
« Reply #8 on: 12 07 2018, 17:55:20 »
this bug is already fixed, precisely a day after the crash
 

Offline Vulpix

Re: Miranda crash while db autobackup starts
« Reply #9 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
 

Offline dartraiden

 

Offline Vulpix

Re: Miranda crash while db autobackup starts
« Reply #11 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
« Last Edit: 14 07 2018, 00:21:31 by Vulpix »