Author Topic: Base update stopped to work after today's update  (Read 11401 times)

0 Members and 1 Guest are viewing this topic.

Offline Smiling Spectre

  • Jr. Member
  • **
  • Posts: 66
  • Country: 00
Re: Base update stopped to work after today's update
« Reply #15 on: 30 09 2018, 17:35:55 »
If you install MsgExport, then go into miranda settings->History->Message Export, you can (on the contacts tab)
Ah! It's _there_! Thank you, found it.

Broken with the same "Assertion failed" though. It seems, some contacts are broken... Well, at least I can try to experiment with it.
---------
Later
---------
Yes, it's per contact, and I can see the place of error in History++ (Message export keep to export data just to this place, then broke). Theoretically speaking, I can circumvent it somehow...
...But there is other problem appeared: if I have the same contact in the several protocols, it exports everything into the same one file, with header of one, first protocol. I can circumvent it by renaming contacts manually - but I think it worth to fix it in future plugin releases. :)
« Last Edit: 30 09 2018, 17:59:04 by Smiling Spectre »
 

Offline Vulpix

Re: Base update stopped to work after today's update
« Reply #16 on: 30 09 2018, 19:13:07 »
Actually the plugin is fairly sophisticated and indispensable. It already offers this functionality - you can specify it using the variables.

 
The following users thanked this post: Smiling Spectre

Offline Smiling Spectre

  • Jr. Member
  • **
  • Posts: 66
  • Country: 00
Re: Base update stopped to work after today's update
« Reply #17 on: 01 10 2018, 06:59:44 »
Actually the plugin is fairly sophisticated and indispensable. It already offers this functionality - you can specify it using the variables.


My fault. :( I totally could find it myself.

Thank you for explanation!

Just in case I missed something else: what "clear" in context menu means? And is there way to un-tick everything? (So far I use mouse selection - export, but with ticks it would be slightly more transparent... if I could select needed contacts between three hundreds).
« Last Edit: 01 10 2018, 07:02:03 by Smiling Spectre »
 

Offline dartraiden

Re: Base update stopped to work after today's update
« Reply #18 on: 04 10 2018, 20:05:41 »
Also you can try our new mdbx_dump and mdbx_load tools

Just update to development version, open command promt in Miranda folder and use:

Code: [Select]
mdbx_dump.exe -n -a -f 1.tmp "path/to/corrupted.dat"
mdbx_load.exe -n -f 1.tmp repaired.dat
del 1.tmp

This extract as much data as possible from the corrupted.dat to text file and build repaired.dat
 
The following users thanked this post: Smiling Spectre

Offline Smiling Spectre

  • Jr. Member
  • **
  • Posts: 66
  • Country: 00
Re: Base update stopped to work after today's update
« Reply #19 on: 04 10 2018, 20:35:54 »
I will try that, thank you!
 

Offline Vulpix

Re: Base update stopped to work after today's update
« Reply #20 on: 06 10 2018, 12:45:55 »
So today miranda randomly corrupted my DB like has been the case lately, so I had a chance to test these tools. I noticed my DB had been corrupted when I typed something in a discord chat and it did not appear in the chat window despite being sent.

-> mdbx_dump.exe: D:\Temp\Vulpix.dat: MDBX_CORRUPTED: Database is corrupted

Not sure if it knows the db is corrupted or if it says this by default; I believe we are using mdbx sort of against its spec or something, so it'll always think it's corrupted. Maybe @Ghazan can comment.

-> mdbx_load.exe: took incredibly long to run. I guess about 20 minutes on a 473MB DB (well it was ~680MB when "dumped") with somewhat high disk activity. Get your tea and sit back for this one.

Recovered DB -> on startup, appears as completely empty, some settings lost. No accounts or protocols or users. History++ shows "ACCOUNT UNLOADED" for every contact, but contacts are present there. Still..

Trying to import this DB instead of using the recovery tool, it shows "Skipping contacts with no protocol" and imports nothing.

Instead, trying to import the corrupted db with miranda by creating clean db and importing it via import.dll produced better results, actually preserving all of the data up till when the failure occurred apparently. Well, not all. It deleted "duplicates" which were not duplicates but events with identical second timestamps. So data is lost in this case. @ghazan can you please disable this checking on db import?

And well for the mdbx tool introduced, what is the use case of the recovery tool?

Also @unsane, how is the sqlite db coming along? :p I'll host it on raid0'd SSD if it's stable and simply slow.

Oh also the best thing ever. The repaired profile actually loaded some default settings I guess, and what that did is it deleted all of the old backups in the autobackup folder :D so now I have no backups other than exported jsons + from past week when I do my actual offline backups.

I can recover everything but damn. This fell through even my expectations.
« Last Edit: 06 10 2018, 12:59:34 by Vulpix »
 

Offline ghazan

Re: Base update stopped to work after today's update
« Reply #21 on: 08 10 2018, 11:29:40 »
Smiling Spectre,

the original problem with
=========== 8< ===========  >8 ===========
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!
=========== 8< ===========  >8 ===========

should have been fixed in the development version. would you please check it?
 

Offline Smiling Spectre

  • Jr. Member
  • **
  • Posts: 66
  • Country: 00
Re: Base update stopped to work after today's update
« Reply #22 on: 16 10 2018, 21:18:36 »
Sorry, I am slightly distracted by other activities, but I'll try to check it somewhere at weekend.
 

Offline Smiling Spectre

  • Jr. Member
  • **
  • Posts: 66
  • Country: 00
Re: Base update stopped to work after today's update
« Reply #23 on: 01 12 2018, 20:10:58 »
And sorry again, there was too many different events that delayed everything. :(

Ok, so results are:

1. Import now works! Too bad that it excluded mostly all my newer database history.  :'( Seems, broken history is lost forever. But old one, that was broken before, loaded just right. Thank you!

2. After I made sequential import from march to december, I got mostly everything back. Except gaps here and there where base went crazy and lost history. :| Well, will do.

3. New fix and export tools doesn't work, and I have no idea why. It gives me errors, but it looks like Russian in bad codepage. See attachments.

Otherwise, it works at last. Thank you! :)