-
Notifications
You must be signed in to change notification settings - Fork 46
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
LabRecorder crashed while closing the file; saved XDF cannot be read by load_xdf #107
Comments
Here is where LabRecorder writes the footer: App-LabRecorder/src/recording.cpp Lines 258 to 270 in becc09e
You can see that it's writing offset_lists_ , which are important for synchronizing streams from different originating PCs.
However, LabRecorder also has a thread that writes offsets continuously throughout the recording, here: App-LabRecorder/src/recording.cpp Line 314 in becc09e
As long as your XDF importer is capable of grabbing the clock offsets distributed throughout the file, and it does not rely on the footer, then the footer loading is optional and that can be fixed in the XDF loader. |
I had the same error after getting an .xdf from LabRecorder 1.12 who crashed during the "stop recording" process. The recording was related to one of many experimental trials that had all the same recording structure. If you are lucky enough to have an openable file with the same recording structure (let's call it the "good" file), you can solve the issue and save your data by changing the extension of both the corrupted and the good file to .txt. Then you go to the last line of both file, you will see that they look almost identical, but the one of the corrupted file is suddenly interrupted. If you copypaste the missing piece from the good file into the corrupted one, then convert it back do xdf, you will then be able to open it. |
Hello, I am using load_xdf for Matlab to import some XDF files. It of course works well, but I noticed that my LabRecorder was crashing when writing files sometimes (conditions to replicate unknown; Windows 11). On the console window, I believe it crashed before the usual "Closing the file" message; rather, it would get stuck at one of the "Wrote footer for... " lines. But I don't see/have any crash logs. When this crash happens, the XDF file still gets saved, and it has data (filesize appears normal), but it cannot be read by load_xdf. It throws the following error:
LabRecorder version info:
I was wondering if this is a known issue, and if there is a way to recover any data from these XDF files. It appears that it contains data but was not formatted properly for load_xdf to read. I have attached an example corrupted XDF file.
004.zip
The text was updated successfully, but these errors were encountered: