Crash when saving
Xma Lab keeps quitting when I try to save my work (mac)
Comments (8)
-
-
Dear Ben, dear Emma,
I have a similar issue, working on Linux. Was it resolved in the meantime?
Whenever I try to save a project (or load one), XMALab crashes with a
Segmentation fault (core dumped)
message.I first thought this was due to my own recordings, but it happens also with the tutorial files.
I am not very experienced in C++, and comments are sparse, but I saw a “_DEBUG” flag in the code. Is it possible to execute the program with more informative output?
Because this seems to happen on Linux and Mac, might it be related to the file path handling? I saw the use of
OS_SEP
, and that in most files it is only used to concatenate folder and file names. Might it be that the wrong separator is present in the folder paths already?
Best,
Falk
Edit: interestingly, saving and loading works on the same machine, in a VirtualBox with Windows 10. However, I noticed that there is something weird with the file paths even on windows (note slashes and backslashes in calibration and grid file paths in the attached screenshot).
Unfortunately it is not an option for me to stay in that virtual environment for real work.
-
Learning C++ on the fly, I was able to track the bug to the
zip.open(QuaZip::mdCreate)
command inProjectFileIO::zipFromFolderToFile
So I think the issue is with QuaZip. I cannot tell yet whether the include is wrong, or why the OS file system plays a role.
Ben, which QuaZip version is used in the compilation of Windows binaries?
I will try more (e.g. minimal QuaZip code example) and keep you updated.
Best,
Falk
-
Hi again,
I managed to solve this on my system.
The problem was that I used “QuaZip5”, which was probably compiled with Qt5.
When instead building XMALab with QuaZip (which can be found here for Qt4), the program will save and load xma project files correctly.
So I’m fine for now with my linux build, but it would certainly be good if someone could confirm that this is the issue with the latest mac OS?
Hope this helps!
Best,
Falk
-
Thanks for the info Falk. But this is not the issue with Mac as the Mac version is precompiled by me and uses Quazip with qt4. It is for sure another issue but without feedback from Emma there is not much i can do unfortunately.
Ben
-
- marked as minor
Lowered priority as no answer and no test files are available
-
Hi Emma,
I uploaded a version which will generate core dumps when XMALab crashes. In that way I can figure out where it crashes on your machine.
For that could you:
- Download https://bitbucket.org/xromm/xmalab/downloads/Debug_XMALab.zip
- extract the zip and run ‘run_debug.bat’
- send me the .dmp file which is created after the crash
Thanks,
Ben
-
- changed status to on hold
put on hold until I receive more debug information from the users. Probably fixed in the newest release
- Log in to comment
Hi Emma, Does this always occur? And do you have enough diskspace free on your drives. XMALab first saves everything in a temporary folder on your system disk and then copies and packs the data to the selected destination. So you need free diskspace on the output drive as well as the system one. Ben