Author Topic: Temporary workarounds for bugs  (Read 1505 times)

0 Members and 1 Guest are viewing this topic.

Offline joxy

  • Occasional poster
  • *
  • Posts: 88
    • View Profile
Temporary workarounds for bugs
« on: April 03, 2002, 07:22:06 AM »
Bug in &rq Sometimes, when you delete message in the history, the history gets corrupted.  When this occured, you see the msgbox "history is corrupted, some data is lost" when you push "Show the whole history" button in the bottom of the chat window, or maybe also (I am not sure) even when you just send or receive a message or status change event.

Workaround1: Do not use "history -> right-click menu -> delete" feature.

Workaround2: If your history got damaged, you can repair it using any hex editor application.

History format (sent to me by rejetto):

- history file is a sequence of message records;
- message record starts with 4 bytes of 0xff;
- after these 4 bytes of 0xff there is 1 byte that is the type of the message (e.g. 0x01 for normal message);
- after the message type, there is the uin of the sender;
- and so on.

Instructions to repair the history file:

1. Close &rq application.
- In the hex editor, open the history file for your buddy.
- Scroll to the end of the file.
- Find start of the message.  To do this, find 0xff 0xff 0xff 0xff backwards.
- You can skip several messages.
- Truncate the file at the position of the 0xff 0xff 0xff 0xff sequence (so that this 0xff 0xff 0xff 0xff will get rejected, and the last byte of the file will become not equal to 0xff).
- Launch &rq, open the chat window with the buddy that caused the error.  Hit "Show the whole history" button.  If the history is still corrupted, try removing another several messages.  To do this, repeat this entire procedure from the step 1.

Edited by - joxy on 04/03/2002  09:24:57

Edited by - joxy on 04/03/2002  09:25:52

Edited by - joxy on 04/03/2002  09:26:20