johnfactotum / foliate

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

Foliate crashes unexpectedly due to Memory Error #1100

Closed ADV1K closed 12 months ago

ADV1K commented 1 year ago

Describe the bug Unexpected Crash when trying to use the app.

To Reproduce Steps to reproduce the behavior:

  1. Open any E-book
  2. try to change some settings

Expected behavior Should not crash.

Traceback

λ com.github.johnfactotum.Foliate

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/24 of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/32 of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/16@2x of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/22@2x of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/24@2x of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/32@2x of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gtk-WARNING **: 23:53:29.516: Theme directory actions/symbolic of theme Dracula has no size field

(com.github.johnfactotum.Foliate:161495): Gjs-WARNING **: 23:53:30.289: 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/com.github.johnfactotum.Foliate:9:17

***MEMORY-ERROR***: com.github.johnfactotum.Foliate[161495]: GSlice: assertion failed: sinfo->n_allocated > 0
fish: Job 1, 'com.github.johnfactotum.Foliate' terminated by signal SIGABRT (Abort)

Version:

johnfactotum commented 1 year ago

Looks like #1073