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 Report] Unable to scan library. #339

Open
tr7zw opened this issue Sep 29, 2022 · 3 comments
Open

[Bug Report] Unable to scan library. #339

tr7zw opened this issue Sep 29, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@tr7zw
Copy link
Contributor

tr7zw commented Sep 29, 2022

Describe the bug
Exception during the server start:

Mango - Manga Server and Web Reader. Version 0.27.0
Unhandled exception in spawn: Arithmetic overflow (OverflowError)
  from usr/share/crystal/src/string.cr:5200:7 in 'new'
  from Mango/src/library/title.cr:57:19 in 'initialize'
  from usr/share/crystal/src/pointer.cr:130:6 in 'scan'
  from Mango/src/library/library.cr:101:17 in '->'
  from usr/share/crystal/src/primitives.cr:255:3 in 'run'
  from ???
[ERROR]   2022/09/29 20:30:42 | Nil assertion failed

And trying to trigger a scan just shows Failed to trigger a scan. Error: [object Object] with an "500 Internal Server Error" in the browser log. No entries show up.

Environment (please complete the following information):

  • OS: Docker image
  • Mango Version 0.27.0 (latest from docker hub and built dev branch)
@tr7zw tr7zw added the bug Something isn't working label Sep 29, 2022
@hkalexling
Copy link
Member

That's strange I've never seen this message before. Just to check - does removing the cache file ~/mango/library.yml.gz help?

@tr7zw
Copy link
Contributor Author

tr7zw commented Oct 10, 2022

Kept getting this error on a clean install(deleted database). Was able to pinpoint it to a few flat file folders that do contain files with emojis and other unusual characters in the filename, which hasn't caused an issue in the past. Next time I'm tinkering on the mango instance, I'll try it again. (Currently have the stuff outside of the lib folder)

@xinyazhang
Copy link

@tr7zw This is due to an integer overflow at

size_sum = 0

Change size_sum = 0 to size_sum = 0_i64 will fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants