johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.93k stars 273 forks source link

Keeps crashing (built from source ubuntu 22.04) #1171

Closed iconoclasthero closed 8 months ago

iconoclasthero commented 8 months ago

Describe the bug Randomly crashes with a segmentation fault (within minutes of being launched). To Reproduce Steps to reproduce the behavior:

  1. Launch program
  2. Do nothing with it
  3. It crashes
  4. See error.

Screenshots "MEMORY-ERROR: com.github.johnfactotum.Foliate[381833]: GSlice: assertion failed: sinfo->n_allocated > 0" "Segmentation fault (core dumped)"

Version:

Additional context it seems to have something to do with gjs because i've seen some ephemeral messages (i think in a gui window) about the gsj console having an issue. didn't capture them because they weren't in the

iconoclasthero commented 8 months ago

$ foliate Book\ (2012).epub

(com.github.johnfactotum.Foliate:384455): Gjs-WARNING **: 12:11:48.794: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise: main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24 run@resource:///org/gnome/gjs/modules/script/package.js:206:19 @/usr/bin/foliate:9:17

Segmentation fault (core dumped)

johnfactotum commented 8 months ago

Duplicate of #1073