Skip to content

v2.3.1

Choose a tag to compare

@github-actions github-actions released this 20 Apr 18:46
· 1052 commits to main since this release

3dslibris 2.3.1

Stable release — all background workers disabled. This release trades some speed for confirmed reliability on real hardware. All async/deferred rendering and parsing workers are turned off unconditionally; everything runs on the main thread. From here, each previously-problematic area will be re-enabled one at a time as it is proven safe, rather than all at once.

This patch is a stability-focused follow-up to v2.3.0, aimed at the real-hardware regressions reported after the menu and navigation changes in that release. The main goal of v2.3.1 is to make book opening, switching, covers, and fixed-layout rendering behave reliably again on both .3dsx and .cia, especially on new3DS.

Highlights

  • All background workers disabled for this release: fixed-layout rendering (PDF, CBZ), MOBI finalization, and browser warmup all run synchronously on the main thread. The app will feel slightly slower to open large books or navigate zoom levels, but will not crash or hang from worker/heap interactions.
  • Reading direction toggle for fixed-layout documents: PDF, CBZ, and XPS now have a per-book reading direction toggle in BOOK settings. Switch between Left to right (default, western) and Right to left (manga, Arabic, Hebrew) — page turn direction and viewport navigation flip accordingly.
  • Book opening and switching are much harder to break: stale open sessions are gated more carefully, browser-side background work is paused at the right time, and the transition from one book to another no longer relies on timing-sensitive state.
  • Browser and cover behavior are more stable on hardware: the library no longer corrupts selected-title rendering while warming metadata, and entering a book no longer leaves behind browser artifacts in the reading view.
  • PDF and CBZ now render at zoom-correct resolution: in synchronous mode the interactive tile is rendered immediately after the preview, so zoomed-in content is sharp rather than upscaled from the preview bitmap.
  • MOBI crash on reopen is fixed: a large contiguous heap reservation during text merging could std::terminate on a fragmented 3DS heap after a prior book close. The reservation is removed; the string now grows incrementally.

Included fixes and behavior changes

  • Conservative runtime mode: all debug_runtime::Force* flags return true unconditionally in both debug and release builds. Background workers, deferred render pumps, and browser warmup are all bypassed. This is the foundational change for v2.3.1 stability.
  • PDF/CBZ interactive render in sync mode: after the preview bitmap is ready, the zoom-aware interactive tile is rendered immediately on the main thread. Zoom changes clear the tile cache so the next draw re-renders at the correct resolution. Strip worker no longer reloads the page on each strip — bounds and scale are captured once at render start.
  • MOBI reserve() removed from text merge: BuildMergedText no longer calls reserve(text_len) upfront. The prior 1.8 MB contiguous reservation could fail on a fragmented heap and crash via std::terminate. Incremental growth is safe.
  • MOBI page cache save skipped in conservative mode: writing a cache built under the synchronous path would produce stale or mismatched data; the save is now skipped when ForceSynchronousMobiFinalize is true.
  • EPUB inline image metadata retried on zip open failure: if unzOpen fails due to transient memory pressure, metadata_probed is left false so the next frame retries. Previously a failed open would permanently mark the image as unloadable.
  • Book vector capacity released on close: pages and chapters vectors now swap with an empty vector on Book::Close(), actually freeing capacity rather than just clearing size.
  • Opening a book is cancellable and session-safe: opening book ... can now be cancelled with B, Start, or Select, and switching from one book to another no longer depends on stale callbacks or unfinished work from the previous session.
  • Library warmup is better behaved: list-view metadata/title warmup no longer stalls after only a few entries, and gallery-view marquee/title rendering is less prone to corruption while the browser is still active.
  • EPUB parsing is more robust against real-world files: better named-entity coverage, improved TOC fallback behavior, and safer page-cache handling during interrupted opens and closes.
  • MOBI tradeoffs are explicit in this patch: inline MOBI images and the structured TOC/index may be unavailable when the HTML-to-text position map cannot be trusted. This is an intentional stability tradeoff for v2.3.1, not a silent regression.
  • Reader entry/exit is cleaner overall: when a book finally opens, the reading screens are less likely to inherit leftover browser drawing state from the previous mode.

What comes next

Workers will be re-enabled one format at a time as each is verified stable: CBZ interactive preload, then PDF strip worker, then MOBI deferred finalize, then browser warmup. Each re-enablement will ship as a patch or minor release once confirmed on hardware.

Included assets

  • 3dslibris.cia
  • 3dslibris-debug.cia
  • 3dslibris.3dsx
  • 3dslibris-debug.3dsx
  • 3dslibris-sdmc.zip
  • 3dslibris-source.tar.gz