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

[Bug]: On Windows 10 Filename causes a JSON error #297

Closed
1 task done
brianxyi opened this issue Nov 21, 2024 · 2 comments
Closed
1 task done

[Bug]: On Windows 10 Filename causes a JSON error #297

brianxyi opened this issue Nov 21, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@brianxyi
Copy link

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

OpenComic Version

1.3.1

Operating System

Windows 10

Installed via

.portable.exe

Steps to reproduce

This is a specific edge case but may cause an issue eventually down the road.

To reproduce create a file path with this name
Reborn as a Scholar (2021-2024) (Digital) (4str0)\Reborn as a Scholar 143 (2022) (Digital) (4str0).cbz

This only happens to this specific file.
If I change the folder name or the file name it works fine. Something about this naming is causing it to error out.

Expected Behavior

It should load the file regardless of the file name.

Actual Behavior

Errors out causing the previous chapter as well as the next chapter from opening because of the dependency between files previous and next.

Error message

SyntaxError: Unexpected end of JSON input

Additional Information

No response

Sample file

No response

@brianxyi brianxyi added the bug label Nov 21, 2024
@brianxyi brianxyi changed the title [Bug]: On Windows 1.3.1 Filename causes a JSON error [Bug]: On Windows 10 Filename causes a JSON error Nov 21, 2024
@ollm ollm self-assigned this Nov 22, 2024
@ollm ollm added this to the v1.3.2 milestone Nov 22, 2024
@ollm
Copy link
Owner

ollm commented Nov 22, 2024

I think the error is because the associated JSON file in the cache is corrupted, when you rename it, the associated file changes and that's why it doesn't give an error.

You can try clearing the cache from OpenComic settings.

Also, you can try this master portable build, It only has bug fixes and some minor new features, so you can use it without worries.

https://mega.nz/file/LTxy0B4J#NefKrz5iW8MCTZHM9l6bt0WAcn4qG04cXi3OG9lrT6s

@brianxyi
Copy link
Author

Thank you that did indeed fix it.

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

No branches or pull requests

2 participants