archive_read_data_block invoked with invalid archive handle during chapter cache generation #1038
Closed
hphof
started this conversation in
Issue Triage
Replies: 2 comments 7 replies
-
|
Can you try with the nightly build or v3.0.3? This should be fixed there. |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
We do not support those JVM options. I am not even sure where they come from, but they missing a lot of important arguments. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What went wrong?
When trying to read a larger (> 100MB) CBR file, Grimmory crashes.
Grimmory fails during chapter cache generation for multiple books/comics.
libarchive reports a programmer error:
This means archive_read_data_block() is being called on an invalid or already-closed archive handle.
The issue occurs consistently for multiple items.
This is not a memory issue anymore (previously it caused a SIGSEGV). After increasing native memory, the underlying logic/state error became visible.
How can we reproduce it?
JAVA_TOOL_OPTIONS=
-XX:MaxDirectMemorySize=1g
-Xss1m
-XX:+UseG1GC
-XX:MaxRAMPercentage=70.0
-XX:InitialRAMPercentage=10.0
What Build of Grimmory are you on?
Stable
Your setup
Docker
Grimmory v3.0.2
Google Chrome
Screenshots or error messages (optional)
2026-05-02T00:54:02.562+02:00 INFO 1 --- [booklore-api] [ cbx-cache-init] o.b.service.reader.ChapterCacheService : Populating disk cache for 23002_1777674358000: 25 pages
PROGRAMMER ERROR: Function archive_read_data_block invoked with invalid archive handle.
Picked up JAVA_TOOL_OPTIONS: -XX:MaxDirectMemorySize=1g -Xss1m -XX:+UseG1GC -XX:MaxRAMPercentage=70.0 -XX:InitialRAMPercentage=10.0
2026-05-02T00:51:44.158+02:00 INFO 1 --- [booklore-api] [ cbx-cache-init] o.b.service.reader.ChapterCacheService : Populating disk cache for 23004_1777674357000: 26 pages
PROGRAMMER ERROR: Function archive_read_data_block invoked with invalid archive handle.
Picked up JAVA_TOOL_OPTIONS: -XX:MaxDirectMemorySize=1g -Xss1m -XX:+UseG1GC -XX:MaxRAMPercentage=70.0 -XX:InitialRAMPercentage=10.0
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions