Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with non-text files #30

Open
Tilix4 opened this issue Aug 20, 2020 · 6 comments
Open

Crash with non-text files #30

Tilix4 opened this issue Aug 20, 2020 · 6 comments

Comments

@Tilix4
Copy link
Contributor

Tilix4 commented Aug 20, 2020

In the function clean_file if there is a non-text file in the targeted directory, I get a UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte (in my case it's for a .DS_Store OSX file). I also had the issue with image files.

I don't get what this function is supposed to do and if this issue is actually critical.

@douglaskastle
Copy link
Member

I don't understand this. What targeted directory are we talking about here can you show me an example?

@Tilix4
Copy link
Contributor Author

Tilix4 commented Sep 11, 2020

The targeted directory is an addon directory, in OSX, the OS creates a .DS_Store binary file. Maybe the issue could be the same with a binary file, like an executable.

@douglaskastle
Copy link
Member

Are you saying there is a file in the addon directory, .DS_Store, that is a binary file, and it causes a crash?

I don't have access to a osx machine, I'll try and replicate on linux.

@Tilix4
Copy link
Contributor Author

Tilix4 commented Sep 11, 2020

Exactly. Maybe you can reproduce it with any compiled file or a picture.

@semagnum
Copy link

semagnum commented Sep 17, 2021

I got this as well - if I have a non-Unicode or binary file in the addon and the tester tries to read it, it crashes due to the Unicode error. My case is an *.odp file, but there's been leftover pycache's that don't get deleted and also crash.

@Tilix4
Copy link
Contributor Author

Tilix4 commented Sep 20, 2021

I modified the code to skip this check. Maybe we could have an option to skip it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants