Cannot load recent .mdat files

Discussion in 'Official REW (Room EQ Wizard) Support Forum' started by grimrian, Nov 28, 2018.

  1. grimrian

    grimrian New Member
    Thread Starter

    Joined:
    Nov 28, 2018
    Messages:
    3
    Likes Received:
    0
    Folks,

    Trying to reopen my latest .mdat files with a bunch of recent measurements, I get this error sometime during the loading process:
    "File is not in a Room EQ V5.19 compatible format"
    "Exception java.io.EOFException"
    Some times a few measurements are loaded, sometimes none.

    It happens both on PC and Mac.
    It happens with both v5.19 and v5.20.

    Older (2017) .mdat files open OK.

    Any ideas?

    Regards
     
  2. John Mulcahy

    John Mulcahy REW Author

    Joined:
    Apr 3, 2017
    Messages:
    990
    Likes Received:
    160
    Can you attach an example file that has that problem?
     
  3. grimrian

    grimrian New Member
    Thread Starter

    Joined:
    Nov 28, 2018
    Messages:
    3
    Likes Received:
    0
    Thanks for your interest. REW reports the error with this file.

    Regards,
     

    Attached Files:

    #3 grimrian, Nov 29, 2018
    Last edited: Nov 29, 2018
  4. John Mulcahy

    John Mulcahy REW Author

    Joined:
    Apr 3, 2017
    Messages:
    990
    Likes Received:
    160
    Some data is missing from the end of the file, as if it hasn't been fully written to disc when saved - hence the end of file exception, REW is reaching the end of the file before it has found all the data it is expecting.

    Very noisy impedance measurements by the way, something not working as it should on those.
     
  5. grimrian

    grimrian New Member
    Thread Starter

    Joined:
    Nov 28, 2018
    Messages:
    3
    Likes Received:
    0
    Thanks, what probably happened then, is that I saved to a (slow) network drive and exited REW while it was still saving, truncating the file on the network. If that was the problem, it can probably be easily fixed in an update, as it is unfortunate loosing one´s work.
    Re. the noise, not sure what those glitches are - a transformer is used on the measuring side to avoid shorts, maybe some 50 hz hum plus multiple harmonics.
    Thanks again
     
  6. John Mulcahy

    John Mulcahy REW Author

    Joined:
    Apr 3, 2017
    Messages:
    990
    Likes Received:
    160
    Shouldn't really be possible from the Java side, the file writes are in try-with-resources blocks that automatically flush and close the streams. Ultimately OS-level code handles the actual writes to the file system, but the JVM's job is done at that point. If the native code fails to follow through if the JVM exits I'm not sure how the JVM could be made aware of that.
     

Share This Page