Skip to content

Crash if harddrive with database disconnects #23

@tifuchs

Description

@tifuchs
  File "C:\Users\timof\anaconda3\Lib\site-packages\orgui\app\database.py", line 424, in onNewDatabase
    self.createNewDBFile(filename)
  File "C:\Users\timof\anaconda3\Lib\site-packages\orgui\app\database.py", line 475, in createNewDBFile
    self.close()
  File "C:\Users\timof\anaconda3\Lib\site-packages\orgui\app\database.py", line 580, in close
    self.hdf5model.removeH5pyObject(self.nxfile)
  File "C:\Users\timof\anaconda3\Lib\site-packages\silx\gui\hdf5\Hdf5TreeModel.py", line 667, in removeH5pyObject
    self.removeIndex(qindex)
  File "C:\Users\timof\anaconda3\Lib\site-packages\silx\gui\hdf5\Hdf5TreeModel.py", line 649, in removeIndex
    self._closeFileIfOwned(node)
  File "C:\Users\timof\anaconda3\Lib\site-packages\silx\gui\hdf5\Hdf5TreeModel.py", line 579, in _closeFileIfOwned
    obj.close()
  File "C:\Users\timof\anaconda3\Lib\site-packages\h5py\_hl\files.py", line 580, in close
    self.id._close_open_objects(h5f.OBJ_LOCAL | h5f.OBJ_FILE)
  File "h5py\\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\\h5f.pyx", line 355, in h5py.h5f.FileID._close_open_objects

RuntimeError: Can't decrement id ref count (file write failed: time = Sat Aug 23 15:36:32 2025
, filename = './24/RuO2_LM240614A_24_5.0_1.0.h5', file descriptor = 43, errno = 22, error message = 'Invalid argument', buf = 00000247344A0B10, total write size = 4096, bytes this sub-write = 4096, offset = 2048)

expected behavior

Should notify the user of the corrupted or non-existing database. Request the creation of a new database and continue operating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions