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

FixThumbnailsWithoutMetadata generate error on separated cover #1287

Closed
5 tasks done
kingvall opened this issue Nov 7, 2023 · 3 comments
Closed
5 tasks done

FixThumbnailsWithoutMetadata generate error on separated cover #1287

kingvall opened this issue Nov 7, 2023 · 3 comments
Labels
bug Something isn't working released

Comments

@kingvall
Copy link

kingvall commented Nov 7, 2023

Steps to reproduce

Just start the komga 😄

Komga directly run the task "FixThumbnailsWithoutMetadata" and the problem begin.

Expected behavior

Komga start and task "FixThumbnailsWithoutMetadata" completed successfully.

Actual behavior

I have a large quantity of jxl ebooks but as my komga runs on ARM/Docker it doesn't have the support.

So far it's never been a problem because I've had jpg covers positioned in each folder.
image

However, since a few komga updates (I can't remember when it started), I've had this task (FixThumbnailsWithoutMetadata) run on every separated jpg cover, generating errors. Impossible to kill the task in the interface and komga becomes excessively slow due to lack of RAM (5GB max).
image.

In my case i think the best is a way for disable this task in library level (all jxl ebook so all separated cover is centralised) or maybe a tweak for not execute this task when the cover is already present in the folder and not generated by komga ?

You can find log in appropriate section

Logs

2023-11-07T17:48:44.412Z ERROR 1 --- [Processor-20589] o.g.k.domain.service.ThumbnailLifecycle  : Could not fix thumbnail: ThumbnailBook(thumbnail=null, url=file:/BD/Animaux%20marins%20en%20bande%20dessin%C3%A9e%20(Les)/Animaux%20marins%20en%20bande%20dessin%C3%A9e%20(Les)%20-%2004.jpg, selected=true, type=SIDECAR, mediaType=, fileSize=0, dimension=Dimension(width=0, height=0), id=0A2J3ABTJ7YCC, bookId=0A2J397N67M65, createdDate=2022-09-29T04:14:44, lastModifiedDate=2022-09-29T04:14:44)
java.io.IOException: mark/reset not supported
	at java.base/java.io.InputStream.reset(Unknown Source) ~[na:na]
	at org.apache.tika.mime.MimeTypes.detect(MimeTypes.java:526) ~[tika-core-2.9.1.jar:2.9.1]
	at org.apache.tika.detect.CompositeDetector.detect(CompositeDetector.java:84) ~[tika-core-2.9.1.jar:2.9.1]
	at org.gotson.komga.infrastructure.mediacontainer.ContentDetector.detectMediaType(ContentDetector.kt:35) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle.getMetadata(ThumbnailLifecycle.kt:156) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle.access$getMetadata(ThumbnailLifecycle.kt:28) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle$fixThumbnailMetadataBook$2.invoke(ThumbnailLifecycle.kt:53) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle$fixThumbnailMetadataBook$2.invoke(ThumbnailLifecycle.kt:47) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle.fixThumbnailMetadata(ThumbnailLifecycle.kt:131) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle.fixThumbnailMetadataBook(ThumbnailLifecycle.kt:47) ~[classes/:1.7.1]
	at org.gotson.komga.domain.service.ThumbnailLifecycle.fixThumbnailsMetadata(ThumbnailLifecycle.kt:44) ~[classes/:1.7.1]
	at org.gotson.komga.application.tasks.TaskHandler.handleTask(TaskHandler.kt:177) ~[classes/:1.7.1]
	at org.gotson.komga.application.tasks.TaskProcessor.takeAndProcess(TaskProcessor.kt:60) ~[classes/:1.7.1]
	at org.gotson.komga.application.tasks.TaskProcessor.processAvailableTask$lambda$2(TaskProcessor.kt:49) ~[classes/:1.7.1]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
	at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

komga.log

Komga version

1.7.1

Operating system

QNAP QTS

Installation method

Docker

Other details

No response

Acknowledgements

  • I have searched the existing issues (open AND closed) and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have checked the FAQ.
  • I have updated the app to the latest version.
  • I will fill out all of the requested information in this form.
@kingvall kingvall added the triage label Nov 7, 2023
@gotson gotson added bug Something isn't working and removed triage labels Nov 8, 2023
@gotson gotson closed this as completed in 9d2d007 Nov 8, 2023
Copy link
Contributor

github-actions bot commented Nov 9, 2023

🎉 This issue has been resolved in 1.7.2 (Release Notes)

@giuanpadan74
Copy link

Same problems with 1.8.3 version
87gb jxl files
System crash

@gotson
Copy link
Owner

gotson commented Dec 3, 2023

Same problems with 1.8.3 version 87gb jxl files System crash

Open a new issue an provide logs

Repository owner locked as resolved and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

3 participants