Kareadita / Kavita

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
http://www.kavitareader.com
GNU General Public License v3.0
6.17k stars 322 forks source link

When using Mihon with a plugin to read a PDF comic from Kavita, the Kavita Docker container loses responsiveness #3278

Open flamesky80 opened 1 day ago

flamesky80 commented 1 day ago

What happened?

Kavita version: canary-0.8.3.7 Mihon: Latest from official websit Kavita Plugin of Mihon: https://raw.githubusercontent.com/Kareadita/tachiyomi-extensions/repo/index.min.json

All the settings are okay, and the PDF can be read in Kavita's web UI, although it takes a bit longer to open. I could upload the PDF if you need it .

What did you expect?

The Pdf can be opened in Mihon quickly and normally.

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

Nightly Testing Branch

What operating system is Kavita being hosted from?

Docker (Dockerhub Container)

If the issue is being seen on Desktop, what OS are you running where you see the issue?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

If the issue is being seen on Mobile, what OS are you running where you see the issue?

Android

If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?

No response

Relevant log output

No response

Additional Notes

No response

majora2007 commented 1 day ago

Please attach Kavita logs when you are starting the read from Mihon. It seems likely that it's putting too much pressure on your server to convert the PDF into images for Mihon (since it doesn't support PDFs).

flamesky80 commented 15 hours ago

[Kavita] [2024-10-14 04:37:59.021 +00:00 53] [Debug] API.Controllers.LibraryController Caching libraries for library_Apollo [Kavita] [2024-10-14 04:37:59.023 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/library/libraries responded 200 in 2.3628 ms [Kavita] [2024-10-14 04:37:59.024 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.8203 ms [Kavita] [2024-10-14 04:37:59.049 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/on-deck?libraryId=0&pageNumber=1&pageSize=20 responded 200 in 6.0545 ms [Kavita] [2024-10-14 04:37:59.060 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/recently-updated-series responded 200 in 10.6723 ms [Kavita] [2024-10-14 04:37:59.067 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/recently-added-v2?pageNumber=1&pageSize=20 responded 200 in 5.5349 ms [Kavita] [2024-10-14 04:38:07.841 +00:00 56] [Information] API.Controllers.ReaderController Fetching Page 0 on Chapter 350 [Kavita] [2024-10-14 04:38:07.842 +00:00 53] [Information] API.Controllers.ReaderController Fetching Page 1 on Chapter 350 [Kavita] [2024-10-14 04:38:07.842 +00:00 50] [Information] API.Controllers.ReaderController Fetching Page 2 on Chapter 350 [Kavita] [2024-10-14 04:38:07.848 +00:00 56] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=0&extractPdf=true&apiKey=**REDACTED**" responded 200 in 68629.8839 ms [Kavita] [2024-10-14 04:38:07.850 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=1&extractPdf=true&apiKey=**REDACTED**" responded 200 in 19304.3069 ms [Kavita] [2024-10-14 04:38:07.859 +00:00 53] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=2&extractPdf=true&apiKey=**REDACTED**" responded 200 in 8618.1044 ms [Kavita] [2024-10-14 04:38:08.008 +00:00 50] [Information] API.Controllers.ReaderController Fetching Page 3 on Chapter 350 [Kavita] [2024-10-14 04:38:08.025 +00:00 56] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=3&extractPdf=true&apiKey=**REDACTED**" responded 200 in 18.1161 ms [Kavita] [2024-10-14 04:38:08.083 +00:00 53] [Information] API.Controllers.ReaderController Fetching Page 4 on Chapter 350 [Kavita] [2024-10-14 04:38:08.100 +00:00 56] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=4&extractPdf=true&apiKey=**REDACTED**" responded 200 in 18.7093 ms [Kavita] [2024-10-14 04:38:08.146 +00:00 50] [Information] API.Controllers.ReaderController Fetching Page 5 on Chapter 350 [Kavita] [2024-10-14 04:38:08.161 +00:00 56] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET "/api/Reader/image?chapterId=350&page=5&extractPdf=true&apiKey=**REDACTED**" responded 200 in 16.7633 ms

here is the PDF: Link: https://pan.baidu.com/s/1W_4y-HCHqapUjEa2YendBw code: xev3

majora2007 commented 2 hours ago

@DieselTech is this something you can debug?

My only thinking is that our PDF renderer is multi-threaded so it may use up more resources than your server has. Can you please give the server specs? Also an image on what to click on the page to download. I'm unable to translate with my browser and the download icon doesn't do anything. You can likewise use wetransfer to give the file.

DieselTech commented 34 minutes ago

I also can not download the file. The download button does nothing. If you want us to test this we need the file uploaded to wetransfer or wormhole.app