arnodelorme / mffmatlabio

MFF Matlab file importer and exporter
GNU General Public License v3.0
11 stars 15 forks source link

Java issue #11

Closed arnodelorme closed 2 months ago

arnodelorme commented 4 years ago

We get the following error in the EEGLAB command line window:

[Fatal Error] :-1:-1: Premature end of file. MFFRootDoc: error: org.xml.sax.SAXParseException; Premature end of file. Make sure you call this function with the full MFF ressource path name **

unnamed (1) unnamed

arnodelorme commented 4 years ago

Followed up with Fiona. We will see if she responds.

elannon commented 3 years ago

What was the solution to this problem? I am getting the same error code

Bysmuth commented 2 years ago

Just encountered this problem with two files (using MFFMatlabIO v. 3.6; n.b. this is no longer the current version). In both cases it was due to the existence of an empty (0 bytes) "Events_User_Events.xml" within the .mff container file. Deleting that empty .xml file fixed the problem.

I can provide a sample data file and/or retest with the most current version if it is useful.

arnodelorme commented 2 years ago

Yes, please provide a data file for testing purposes. Thank you.

Bysmuth commented 2 years ago

I've uploaded a sample data file here. You can produce the error by calling pop_mffimport and selecting the unzipped .mff file. On a Mac, the error can be resolved by right-clicking on the file in the Finder, clicking Show Package Contents, and deleting Events_User_Events.xml (which is zero bytes), then re-importing.

arnodelorme commented 1 year ago

Would you mind posting the data file again?

Bysmuth commented 1 year ago

Sure! I just made it accessible again at the same URL I linked to above.

arnodelorme commented 1 year ago

Thank you.

arnodelorme commented 9 months ago

See folder bugs/mff11

arnodelorme commented 2 months ago

Problem fixed. There was an empty event file. Now, these files are detected and skipped.