Skip to content

Draft: [import] handle bad_alloc exceptions during the data import

Alexander Semke requested to merge work/handle-bad-alloc-during-import into master

Description

Handle out-of-memory situations during the data import - in case there is not enough memory available on the system, show an appropriate message in the import dialog instead of crashing.

To reproduce such a crash, try to import a bigger file with a reduced amount of memory. For example, the import of the BLF files is very expensive at the moment (will be addressed in another MR) and can be used to easily reproduce the issues. For this, just import Matlab's demo file for BLF with after having started labplot with

prlimit --as=2000000000 ./labplot2

This MR will also allow to propagate other errors happening during the import, not necessarily related to the out of memory situations, to the ImportDialog and to show appropriate messages to the user directly in the dialog - right now only some debug output is written to the console.

Conformity

When external dependencies are removed

  • Reporting to ...
Edited by Alexander Semke

Merge request reports