Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when disk is full while importing #752

Open
davidak opened this issue Nov 15, 2023 · 1 comment
Open

Crash when disk is full while importing #752

davidak opened this issue Nov 15, 2023 · 1 comment

Comments

@davidak
Copy link

davidak commented Nov 15, 2023

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

@jeremypw
Copy link
Collaborator

jeremypw commented Dec 6, 2024

On OS7.1, Photos does have code that detects "DISK_FULL" io failure. I haven't traced through the labyrinth of Shotwell code to see whether a crash is still possible. I guess as soon as one "DISK_FULL" error is received all subsequent imports should cease immediately. Was Photos running on the full disk? I guess the crash could occur anywhere in the code that is using the disk that fills up...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants