๐ CPR-vCodex Steroids โ Release Notes 1.6.0.38-fix
๐ฆ Range: 2957619 โ 2ab0ed65 ยท 21 commits ยท 35 files ยท +1,064 / โ178
๐ ๏ธ Verified build: 1.6.0.38.dev2-2ab0ed65-cpr-vcodex-steroids (X4 / X3)
โจ Highlights
- ๐ Reading Stats completed: deferred loading, V2 journal, badges and summary always up to date.
- ๐ EPUB more stable: images pre-extracted during indexing and streaming HTML scan (no reboot).
- ๐ด Sleep/Screensaver: first image is correct even when starting from the reader; grayscale shading preserved.
- ๐ Home/Carousel: correct progress, complete shortcut icons, regenerated frame cache.
- ๐ X3: RTC, IMU and fuel gauge restored thanks to the I2C fix.
- ๐ค Includes BrunoYDev fixes (#114) for Reading Stats, Carousel, Library icon and Sleep cover.
๐ Reading Stats
- โณ Deferred loading: heap guard reduced from 80 KB to 40 KB; the book list now materializes even with a fragmented heap.
- ๐ V2 journal: 48-byte records with
RSJ2magic and the full 32-byte KOReader bookId; backward compatible with legacy 32-byte V1 records. - ๐งฎ Badges and summary: exact/prefix/path matching,
checkDayChange()for day rollover,todayReadingMsand streak updated. - ๐ Home always fresh: panels refreshed from
summary.jsonafter every session, no stale data. - ๐ Carousel: correct progress (no more 0%), v8 frame cache regenerated, completed badges fixed.
- ๐ช Reader exit: no
std::bad_alloccrash (24 KB guard) and no empty popup; fast-restart fallback. - โฑ๏ธ Short sessions: minimum threshold reduced from 3 to 1 min; best-effort timestamp for devices without RTC.
- ๐ Statistics: store materialized in ReadingStats/Extended, 750 ms retry, heatmap/profile/detail with
ensureLoaded().
๐ EPUB and reading
- ๐ผ๏ธ Image pre-extraction during section build (
prewarmImagesForSpine, 32 KB guard): no more "Failed to allocate memory" at render time. - ๐งน Streaming HTML scan (1 KB buffer + carry): fixed the reboot during indexing (
std::bad_allocโabort()); bail-out below 8 KB and[EBP] prewarm ...log. - ๐ Unchanged
<img>tag handling, cache namingimg_<spine>_<n>_<ext>and skip of already-cached files.
๐ด Sleep & Screensaver
- ๐ First image from reader: no more negative effect; the BW frame is re-rendered after the grayscale pass and the controller baseline is resynced.
- ๐จ Grayscale shading preserved: the grayscale pass is no longer disabled when the BW store fails.
- ๐ฅ๏ธ Sleep cover: no ghosting on X4 UltraChip panels (HALF_REFRESH before the grayscale pass).
- ๐
FORCE_REFRESHno longer repaints the screensaver/sleep screen right after the render.
๐ Home, themes and shortcuts
- ๐งฉ Complete
LyraCarouselTheme::iconForName(): added 20+ shortcut icons (Library, ReadingStats, Heatmap, Profile, Achievements, RecentBooks, Bookmarks, Flashcards, Dictionary, FileTransfer, Plugins, Sleepโฆ). - ๐ Carousel frame cache: invalidated when the summary is fresh, no stale frames.
- ๐ Home stats panels: fresh data after every session.
๐ Hardware and SDK
- ๐ X3: RTC (DS3231), IMU (QMI8658) and fuel gauge (BQ27220) restored thanks to the
XteinkDetectI2C fix (no moreESP_ERR_INVALID_STATE). - ๐ฆ freeink-sdk: pin
bccc745on branchfix/xteink-i2c-probeof themarcoand75/freeink-sdkfork;.gitmodulesupdated (no Free-Ink access required). - โ X4: unchanged (no I2C peripherals in its board profile).
๐ ๏ธ Documentation and build
- ๐ README, USER_GUIDE, RELEASE-NOTES and STEROIDS-* aligned: 1.6.0.38 release,
reading_stats_summary.json, 48-byte V2 journal,-steroidsartifacts, 40 KB gate, 24 languages, Auto Flash/Stats Editor links to this fork, X4 Pro withdrawal. - ๐งช
defaultbuild (X3+X4) verified; artifact1.6.0.38.dev2-2ab0ed65-cpr-vcodex-steroids.
โ ๏ธ Notes
- X4 Pro: no changes, distribution withdrawn.
freeink-sdkstays on branchfix/xteink-i2c-probe(notmain): the fork'smaindoes not containe57b1202, the base of the current pin.