bepaald / signalbackup-tools

Tool to work with Signal Backup files.
GNU General Public License v3.0
755 stars 36 forks source link

Missing index in HTML report #192

Closed denyzkoo closed 6 months ago

denyzkoo commented 6 months ago

Hi

in new version i miss index.html (Signal conversation list).

bepaald commented 6 months ago

I can not reproduce this. could you please show the exact command you are using (leave out the passphrase) and the full output of the program?

Thanks!

denyzkoo commented 6 months ago

comand is:

signalbackup-tools_win.exe signal-2024-02-29-13-47-17.backup 8****7 --exporthtml Report --includecalllog --themeswitching

Inside Report folder are only uses chats. no index.html file

bepaald commented 6 months ago

Thank you for reporting back. This is very strange. I assume there is also no calllog.html in the Report folder?

Could you show me the output of the command? When I do it on a Windows machine, I get:

C:\Users\User\Desktop\SIGNALBACKUP-TOOLS>signalbackup-tools_win.exe DEV2signal-2024-02-15-15-54-17.backup 7****************************7 --exporthtml Report --includecalllog --themeswitching
 *** Starting log:   ***
signalbackup-tools (signalbackup-tools_win.exe) source version 20240228.165934 (Win)
BACKUPFILE VERSION: 1
BACKUPFILE SIZE: 127467570
COUNTER: 3820351285
Reading backup file...
FRAME 1294 (100.0%)...
Read entire backup file...
done!
Database version: 219
Dealing with thread 2
Dealing with thread 3
Dealing with thread 5
Dealing with thread 6
Dealing with thread 7
Writing index.html...
Writing calllog.html...
All done!

Note the Writing index.html (and calllog.html) in there. After it's done, the Report folder contains:

C:\Users\User\Desktop\SIGNALBACKUP-TOOLS>dir Report\index.html
 Volume in drive C has no label.
 Volume Serial Number is C6A9-58C7

 Directory of C:\Users\User\Desktop\SIGNALBACKUP-TOOLS\Report

01-03-2024  09:24            15.459 index.html
               1 File(s)         15.459 bytes
               0 Dir(s)  23.576.518.656 bytes free

Could you show me your output? Maybe some error is printed. If you look at the chats that are exported, do you think they are complete, or are some missing?

Thanks!

denyzkoo commented 6 months ago

Hi here is log from cmd, i delete all folders except one from dir output.

T:\JAN\New>signalbackup-tools_win.exe signal-2024-02-29-13-47-17.backup 8**7 --exporthtml Report --includecalllog --themeswitching ** Starting log: signalbackup-tools (signalbackup-tools_win.exe) source version 20240228.165934 (Win) BACKUPFILE VERSION: 1 BACKUPFILE SIZE: 136167289 COUNTER: 3729850364 Reading backup file... FRAME 19045 (100.0%)... Read entire backup file... done! Database version: 215 Dealing with thread 3 Dealing with thread 4 Dealing with thread 5 Dealing with thread 6 Dealing with thread 8 Dealing with thread 9 Dealing with thread 11 Dealing with thread 12 Dealing with thread 14 Dealing with thread 15 Dealing with thread 16 Dealing with thread 18 Dealing with thread 19 Dealing with thread 20 Dealing with thread 21 Dealing with thread 24 Dealing with thread 26 Dealing with thread 28 Dealing with thread 29 Dealing with thread 31 Dealing with thread 32 Dealing with thread 33 Dealing with thread 35 Dealing with thread 37 Dealing with thread 38 Dealing with thread 41 Dealing with thread 44 Dealing with thread 45 Dealing with thread 46 Dealing with thread 47 Dealing with thread 48 Dealing with thread 49 Dealing with thread 50 Dealing with thread 51 Dealing with thread 52 Dealing with thread 53 Dealing with thread 54 Dealing with thread 55 Dealing with thread 56 Dealing with thread 57 Dealing with thread 58 Dealing with thread 59 Dealing with thread 60 Dealing with thread 61 Dealing with thread 62 Dealing with thread 63 Dealing with thread 64 Dealing with thread 65 Dealing with thread 66 Dealing with thread 67 Dealing with thread 68 Dealing with thread 69 Dealing with thread 70 Dealing with thread 71 Dealing with thread 72 Dealing with thread 73 Dealing with thread 74 Dealing with thread 75 Dealing with thread 76 Dealing with thread 77 Dealing with thread 78 Dealing with thread 79 Dealing with thread 80 Dealing with thread 81 Dealing with thread 82 Dealing with thread 83 Dealing with thread 84 Dealing with thread 85 Dealing with thread 86 Dealing with thread 87

T:\JAN\New>cd Report && dir Volume in drive T has no label. Volume Serial Number is E012-7FE1

Directory of T:\JAN\New\Report

    1. 2024 10:07 .
    1. 2024 10:07 ..
    1. 2024 10:07 iba ja (_id60) 0 File(s) 0 bytes 65 Dir(s) 5 152 392 658 944 bytes free
bepaald commented 6 months ago

Thanks again. It looks indeed like there is something going wrong here. I'm afraid debugging is always pretty difficult as I do not have access to your backup file. So I hope you understand I will have to ask you to help me if you can. I hope that's OK.

It is currently my guess that there is some specific message in thread 87 that is causing the program to crash. Could you please test the same command again, first by adding --limittothreads 87, and then again with --limittothreads 85 and let me know the results. My guess is that in the first case, the results are the same (no 'index.html'), but in the second the program succeeds.

Thank you!

denyzkoo commented 6 months ago

T:\JAN\New>signalbackup-tools_win.exe signal-2024-02-29-13-47-17.backup 8**7 --exporthtml Report87 --includecalllog --themeswitching --limittothreads 87 ** Starting log: signalbackup-tools (signalbackup-tools_win.exe) source version 20240228.165934 (Win) BACKUPFILE VERSION: 1 BACKUPFILE SIZE: 136167289 COUNTER: 3729850364 Reading backup file... FRAME 19045 (100.0%)... Read entire backup file... done! Database version: 215 Dealing with thread 87

T:\JAN\New>signalbackup-tools_win.exe signal-2024-02-29-13-47-17.backup 8**7 --exporthtml Report85 --includecalllog --themeswitching --limittothreads 85 ** Starting log: signalbackup-tools (signalbackup-tools_win.exe) source version 20240228.165934 (Win) BACKUPFILE VERSION: 1 BACKUPFILE SIZE: 136167289 COUNTER: 3729850364 Reading backup file... FRAME 19045 (100.0%)... Read entire backup file... done! Database version: 215 Dealing with thread 85 Writing index.html... Writing calllog.html... All done!

report 85 - have index and callog as well. report 87 - blank html, 0 B

bepaald commented 6 months ago

Thanks again. I have created a special version of the program which shows some more output. Here: signalbackup-tools_win.zip. This will not fix the problem, it is only to help me find where the problem is.

Could you please use this version and run again, with --limittothreads 87? I would be interested in the output starting with Dealing with thread 87. Thank you so much for your help!

denyzkoo commented 6 months ago

I thank you

T:\JAN\New>signalbackup-tools_win-t.exe signal-2024-02-29-13-47-17.backup 865861948462076533711860831347 --exporthtml Report87test --includecalllog --themeswitching --limittothreads 87 Starting log: signalbackup-tools (signalbackup-tools_win-t.exe) source version 20240228.165934 (Win) BACKUPFILE VERSION: 1 BACKUPFILE SIZE: 136167289 COUNTER: 3729850364 Reading backup file... FRAME 19045 (100.0%)... Read entire backup file... done! Database version: 215 Dealing with thread 87 [DEBUG] : thread_id: 87 isgroup: 1 [DEBUG] : Got 3 messages to import (thread 87) [DEBUG] : Creating directory: 'Report87test/Blava (_id87)' [DEBUG] : Split: -1 msgs: 3 msg/page: 3 npages: 1 [DEBUG] : Opening output: 'Report87test/Blava (_id87)/Blava.html' [DEBUG] : HTMLwriteStart() [DEBUG] : isgroup 1 [DEBUG] : isgroup 2 [DEBUG] : getGroupInfo()

bepaald commented 6 months ago

Thanks again, we're getting close. One more time please, with this new version: signalbackup-tools_win.zip.

I'm expecting a new last line [DEBUG] : GROUP INFO: ........ I hope with that line I can find the problem and fix it.

denyzkoo commented 6 months ago

T:\JAN\New>signalbackup-tools_win-t.exe signal-2024-02-29-13-47-17.backup 8**7 --exporthtml Report87test --includecalllog --themeswitching --limittothreads 87 ** Starting log: signalbackup-tools (signalbackup-tools_win-t.exe) source version 20240228.165934 (Win) BACKUPFILE VERSION: 1 BACKUPFILE SIZE: 136167289 COUNTER: 3729850364 Reading backup file... FRAME 19045 (100.0%)... Read entire backup file... done! Database version: 215 Dealing with thread 87 [DEBUG] : thread_id: 87 isgroup: 1 [DEBUG] : Got 3 messages to import (thread 87) [DEBUG] : Creating directory: 'Report87test/Blava (_id87)' [DEBUG] : Split: -1 msgs: 3 msg/page: 3 npages: 1 [DEBUG] : Opening output: 'Report87test/Blava (_id87)/Blava.html' [DEBUG] : HTMLwriteStart() [DEBUG] : isgroup 1 [DEBUG] : isgroup 2 [DEBUG] : getGroupInfo() [DEBUG] : GROUP INFO: EgVCbGF2Y0Z3YFVlQpLhYzk7JTARdqYNTFdmF7sI64aDwU2Iw78KAKbqbdPzTEMDOoeuZNazemLuuwXP3g2wxlAMJUM1HFC8BE01K+5Sg923BaJVLjaQo9TbicsDG4FesUBftZmUa3IkbQy9X+Lg/5ZveJHTXgNRgNwWYaAJ12PpEmR8LhrlxNO8/BtmS0goqlBGtokK4WAC

bepaald commented 6 months ago

Thank you so much. I think I fixed it (it was a stupid copy-paste mistake I made). Please update (from the releases page) and try again. Let me know if it works now.

bepaald commented 6 months ago

I believe this issue was fixed in one of my previous commits. Please let me know if you are still running into this or a new issue. This can always be re-opened if necessary.

Thank you so much for all your help with this one, it was invaluable!

denyzkoo commented 6 months ago

It worked very well. Thank you for fast support.