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

Media that constantly crash on scanning at startup #1644

Open
5 tasks done
BDeus opened this issue Aug 4, 2024 · 3 comments
Open
5 tasks done

Media that constantly crash on scanning at startup #1644

BDeus opened this issue Aug 4, 2024 · 3 comments

Comments

@BDeus
Copy link

BDeus commented Aug 4, 2024

Steps to reproduce

Hi,
i have a pdf media that constently crash on startup with a java.lang.OutOfMemoryError: Java heap space
I increase the config to variables to -xmx8g but still have an error.
Is not a real issue for me, i don't care about that specific metadata is not available.
The only thing that borrow me is that the scan bar on left top constantly remains active with RefreshBookMetadata: 1

Expected behavior

Is there a way to ignore scanning of specific directory or media ?

Actual behavior

Bar on left top constantly remains active with RefreshBookMetadata: 1

Logs

2024-08-04T09:03:00.026Z  INFO 1 --- [taskProcessor-1] o.g.k.d.service.BookMetadataLifecycle    : Refresh metadata for book: Book(...) with capabilities: [ISBN, THUMBNAILS, LINKS, TITLE, SUMMARY, RELEASE_DATE, NUMBER_SORT, AUTHORS, NUMBER, READ_LISTS, TAGS]
Exception in thread "taskProcessor-1" java.lang.OutOfMemoryError: Java heap space
	at java.desktop/java.awt.image.DataBufferInt.<init>(Unknown Source)
	at java.desktop/java.awt.image.Raster.createPackedRaster(Unknown Source)
	at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
	at java.desktop/java.awt.image.BufferedImage.<init>(Unknown Source)
	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:304)
	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:247)
	at org.gotson.komga.infrastructure.mediacontainer.pdf.PdfExtractor.getPageContentAsImage(PdfExtractor.kt:48)
	at org.gotson.komga.domain.service.BookAnalyzer.getPageContent(BookAnalyzer.kt:242)
	at org.gotson.komga.infrastructure.metadata.barcode.IsbnBarcodeProvider.getBookMetadataFromBook(IsbnBarcodeProvider.kt:51)
	at org.gotson.komga.domain.service.BookMetadataLifecycle.refreshMetadata(BookMetadataLifecycle.kt:51)
	at org.gotson.komga.application.tasks.TaskHandler.handleTask(TaskHandler.kt:100)
	at org.gotson.komga.application.tasks.TaskProcessor.takeAndProcess(TaskProcessor.kt:63)
	at org.gotson.komga.application.tasks.TaskProcessor.processAvailableTask$lambda$1(TaskProcessor.kt:47)
	at org.gotson.komga.application.tasks.TaskProcessor$$Lambda/0x00007f5bf8c29690.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.runWith(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Komga version

1.11.2

Operating system

Linux

Installation method

Docker

Other details

Docker Engine 24.0.6

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.
@BDeus BDeus added the triage label Aug 4, 2024
@gotson
Copy link
Owner

gotson commented Aug 12, 2024

is it only 1 book or all the books ? how much ram does your system has?

@BDeus
Copy link
Author

BDeus commented Aug 16, 2024

It is only 1 book a specific pdf one.
I think it might be corrupt in some kind of way, but i can open and read it.
The system is a docker one but the host as 16GB.

@gotson
Copy link
Owner

gotson commented Aug 19, 2024

I think it might be corrupt in some kind of way, but i can open and read it.

You mean you can open the file with another software/application ?

How big is the file ?

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

No branches or pull requests

2 participants