BLKSerene / Wordless

An Integrated Corpus Tool With Multilingual Support for the Study of Language, Literature, and Translation
GNU General Public License v3.0
686 stars 90 forks source link

A bug to my Mac M1 #24

Closed lamhuytran closed 1 year ago

lamhuytran commented 1 year ago

Describe the bug i just want to upload a file in order to run the app but it said it has fatal error and freeze immediately

To Reproduce Steps to reproduce the behavior:

  1. Go to file
  2. Click on open file
  3. Scroll down to add file
  4. See error

Expected behavior please fix it as soon as possible

Screenshots

Screen Shot 2022-12-13 at 00 38 36

Environment information

Additional context Add any other context about the problem here.

BLKSerene commented 1 year ago

Which version of Wordless do you use? And what are the error messages (please paste them here)?

lamhuytran commented 1 year ago

I’m currently launching on that version right now, unfortunately it still occurs

On Tue, 13 Dec 2022 at 00:47 Ye Lei (叶磊) @.***> wrote:

Please try version 3.0.0. The bug might have been fixed in the latest version.

— Reply to this email directly, view it on GitHub https://github.com/BLKSerene/Wordless/issues/24#issuecomment-1346947313, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4WUYGAZV2TAW32OZEYXZYLWM5QJ7ANCNFSM6AAAAAAS4G7IXE . You are receiving this because you authored the thread.Message ID: @.***>

BLKSerene commented 1 year ago

Please copy and paste the error messages here.

lamhuytran commented 1 year ago

https://drive.google.com/file/d/1iurZAiBBdgbAvQhs-qJC0J1erUPvM1Lx/view?usp=sharing

I did record it here, hope it might help

BLKSerene commented 1 year ago

When a fatal error occurred, there should be a dialog prompted out which would tell you where the problem is. Maybe that dialog is not raised to top on macOS for some reasons and is put under other windows, try switching through the Wordless icon on the taskbar. Or, would you mind sending me your corpus file for analysis? For example, through Google drive link.

BLKSerene commented 1 year ago

And I noticed that you are trying to import a .docx Word document file, then there is a high chance that the problem is related to the 3rd-party library python-docx which is used by Wordless to process .docx files. I've received similar feedbacks from other users, but unfortunately, this library has been unmaintained for a long time, which means that this bug is highly unlikely to be fixed even if I raise the issue on its repository.

Anyway, importing non-txt files (.docx, .xlsx, .pdf) is only provided as a convenient function to users, but it is NOT RECOMMENDED to directly import .docx or .pdf files. Under the hood, Wordless would try converting these rich texts and removing unrelated formatting things for you, which, of course, would not work as you expect sometimes.

So, the recommended way is that you convert the .docx file to .txt file (simply using Microsoft Word for example) and decide by yourself which part of the .docx should be discarded (e.g. headers, footers, pictures, tables) and then import the .txt file into Wordless. Then everything should be OK.

lamhuytran commented 1 year ago

Unfortunately, it still happens the same when i converted it into .txt file, i will send the file right here to you to check, hope it would help! https://drive.google.com/file/d/1UxXluMAIppk1SU-8PI4zvCzHZQZeHu_V/view?usp=sharing

BLKSerene commented 1 year ago

By using Wordless 3.0.0, the file you've sent me could be successfully added and opened (tested on Windows 11 / OS X 10.9 / macOS 12). So, I could not reproduce this issue, could you please re-verify and check again? (e.g. The file you sent me is encoded in UTF-8 without BOM, which is good for compatibility, but what about your original corpus file?)

If the issue still exists, you need to provide the detailed error messages for me to look into it.

lamhuytran commented 1 year ago

I reopened it today and eventually it works great! thank you for your support, love your app!

BLKSerene commented 1 year ago

Just a note here: Wordless 3.3.0 has been released. It fixes a problem that some dialogs (e.g. the fatal error dialog) do not stay on top of the main window of Wordless so that the user could not see the error message or close the window on macOS (so it looks like that program just freezes or hangs forever).