elementary / photos

Photo viewer and organizer designed for elementary OS
https://elementary.io
GNU Lesser General Public License v2.1
107 stars 39 forks source link

Crash when disk is full while importing #752

Open davidak opened 7 months ago

davidak commented 7 months ago

What Happened?

.

Steps to Reproduce

  1. have less storage free (e.g. 2GB) than the media to import (e.g. 13GB)
  2. start photos
  3. start import
  4. crash

Expected Behavior

A program should never crash!

Check if enough space is free before starting the import.

OS Version

6.x (Odin/Jólnir)

Software Version

Latest release (I have run all updates)

Log Output

Terminal:

...
** Message: 17:44:27.299: ImportPage.vala:1723: Skipping import of DSCF6571.RAF: checksum detected in library
** Message: 17:44:27.299: ImportPage.vala:1723: Skipping import of DSCF6578.RAF: checksum detected in library
** Message: 17:44:27.299: ImportPage.vala:1723: Skipping import of DSCF6582.RAF: checksum detected in library

(io.elementary.photos:172599): Gtk-WARNING **: 17:44:27.817: drawing failure for widget 'LibraryWindow': cairo_restore() without matching cairo_save()

** (io.elementary.photos:172599): ERROR **: 17:45:25.090: DatabaseTable.vala:106: add_photo: [13] database or disk is full
Trace/breakpoint trap (core dumped)

Hardware Info

elementary-photos-2.8.0