Tonfotos 1.11.4 crashes during startup/scanning on Debian 13 at the very first run after installing
Environment
Debian GNU/Linux 13 (trixie), 13.4
Kernel: 6.12.74+deb13+1-amd64
Session: Wayland
Observed behavior
Tonfotos starts normally.
Then the log shows an obviously wrong count:
estimating 1774792558198 Pictures
scanning 1774792558198 Pictures
After that it aborts with:
ERROR:/home/andrey/Documents/tonfotos/node_modules/sharp/node_modules/@img/sharp-libvips-dev/include/vips/VImage8.h:134:vips::VObject& vips::VObject::operator=(const vips::VObject&): assertion failed: (!a.vobject VIPS_IS_OBJECT(a.vobject))
Bail out! ERROR:/home/andrey/Documents/tonfotos/node_modules/sharp/node_modules/@img/sharp-libvips-dev/include/vips/VImage8.h:134:vips::VObject& vips::VObject::operator=(const vips::VObject&): assertion failed: (!a.vobject VIPS_IS_OBJECT(a.vobject))
Aborted
Other suspicious lines before the crash
get_parent_node PANIC!!! ( [ 'Pictures' ] )
Warning: "Screenshots" does not exist in the tree anymore (1): [ 'Pictures' ]
The absurd picture count may indicate corrupted internal state or an overflow before the sharp/libvips crash.
The second run gives
checkpoint config: 4 ms
checkpoint app ready: 116 ms
Database unused space: 0.01Mb, 43%, no compacting needed at this moment
scanning 1774792558198 Pictures
Auto update URL: https://tonfotos.com/distribution/tonfotos/release/linux/x64
G_SLICE= undefined
**
ERROR:/home/andrey/Documents/tonfotos/node_modules/sharp/node_modules/@img/sharp-libvips-dev/include/vips/VImage8.h:134:vips::VObject& vips::VObject::operator=(const vips::VObject&): assertion failed: (!a.vobject VIPS_IS_OBJECT(a.vobject))
Bail out! ERROR:/home/andrey/Documents/tonfotos/node_modules/sharp/node_modules/@img/sharp-libvips-dev/include/vips/VImage8.h:134:vips::VObject& vips::VObject::operator=(const vips::VObject&): assertion failed: (!a.vobject VIPS_IS_OBJECT(a.vobject))
Aborted