SlackLogViewer icon indicating copy to clipboard operation
SlackLogViewer copied to clipboard

Version 1.2 crashes almost all the times

Open santi-ifontana opened this issue 1 year ago • 10 comments

Hello.

I am working on a project trying to visualize the export from Slack. The .Zip file is around 300 MB zipped. The version 1.1 works fine most of the time but only has Channels while 1.2 has DM and other messages.

The last version 1.2 Alpha-2 won't even open complaining about missing users in users.json while the other ones crash while opening the .Zip or if it opens, while navigating.

How can I help you fix those bugs? Please let me know.

Thanks.

santi-ifontana avatar Jun 24 '24 13:06 santi-ifontana

Hi, @santi-infontana. Thank you for your report. To determine if the issue is caused by corruption in users.json, please confirm that "missing users" IDs are listed in users.json. Additionally, please let me know how you exported the zip file (e.g., slackdump, Slack's official functionality, etc.). Based on your report, it is difficult to say whether the crash is due to bugs in SlackLogViewer.

thayakawa-gh avatar Jun 26 '24 15:06 thayakawa-gh

@thayakawa-gh Hey. Thank you for your reply. Yes, sorry for my vague description.

So, the Slack export is directly from Slack support (Slack's official functionality).

Trying to open the same folder or zip file, with the different versions:

SlackLogViewer ver 1.2.Alpha-2 image

SlackLogViewer ver 1.2.Alpha-0 and Alpha-1 do not show that error, although I never managed to get Alpha-1 to open and not crash before. Alpha-0 after trying a few times is able to open, but very unstable and ends up crashing.

santi-ifontana avatar Jun 26 '24 17:06 santi-ifontana

The uncompressed .zip is pretty huge regarding size and number of files as shown: Screenshot 2024-06-26 at 19 25 34

santi-ifontana avatar Jun 26 '24 17:06 santi-ifontana

i'm experiencing similar issue with export from slackdump v2.5.10

upon opening slackdump zip & folders with following outcomes v1.2.Alpha-2 = crashes with the user id not found v1.2.Alpha-1 & v1.2.Alpha-0 = crashes with no error v1.1.0 = works fine

export is greater than 2GB but mostly media files

euphorah avatar Aug 25 '24 07:08 euphorah

Sorry for my late reply. Please try this test build for windows (or macOS).

thayakawa-gh avatar Aug 25 '24 16:08 thayakawa-gh

Sorry for my late reply. Please try this test build for windows (or macOS).

Hey! This version does the trick, no crashing! Although the app really seems to struggle with the big backup file, but that is ok.

I saw the changes you made to the code, basically, there are some users in the .json that are missing and on that error, you were throwing a fatal error and now instead just giving a fake user back, isn't it?

santi-ifontana avatar Aug 29 '24 13:08 santi-ifontana

You are correct. The changes simply make SlackLogViewer tolerate missing user information. Slack export files often have missing data that should be present. Your report revealed that even user information could be missing, so I fixed the code to handle it.

thayakawa-gh avatar Aug 30 '24 16:08 thayakawa-gh

Thanks for the fix and the explanation. For me, this issue could be closed. I don't know about @euphorah if that fixed it for him too.

Regards

santi-ifontana avatar Aug 31 '24 16:08 santi-ifontana

Thanks for the fix and the explanation. For me, this issue could be closed. I don't know about @euphorah if that fixed it for him too.

Regards

my apologies i've got a lot of cognitive issues so might not be able to keep up with things

the test build resolves this issue however am unable to load some channels due to

"Error : Loading of the export files was interrupted due to some formatting errors. See errorlog.txt for details.

key "bot_id" not found in the 18th message of "channel3/2024-06-19.json". key "bot_id" not found in the 0th message of "channel3/2024-06-20.json".

i've attached deidentified sections of those files that error with X for letters and 0 for numbers hopefully it's still useful

18th-message_channel3_2024-06-19.json.txt

0th-message_channel3_2024-06-20.json.txt

both messages display fine in v1.1.0

Screenshot 2024-09-01 032457

euphorah avatar Aug 31 '24 17:08 euphorah

Thank you for your attachments, they were very helpful for me. The format of the Slack export files is as inconsistent as ever. Could you try this one for windows or macOS?

thayakawa-gh avatar Sep 01 '24 15:09 thayakawa-gh