Component buffer size mismatch

From SuperMemopedia
Jump to navigation Jump to search

Question:

I get this error message:

  "Component buffer size mismatch   
  Expected size=25
  Loaded size=28
  Element=0"

Answer:

You might be trying to open a newer collection with an older SuperMemo.

When SuperMemo adds new options, it may add new attributes to a component (e.g. default font in HTML in SuperMemo 2004).

New attributes increase the size of components of a given type. If you try to read a component with older SuperMemo, you might get this message (SuperMemo expects a component of 25 bytes while the collection keeps 28 bytes).

Element=0 may indicate that the problem occurs inside a template.

Theoretically, corrupted collection data could also produce such an error (it is enough to flip one byte in the file to produce this message). Repair collection should be run prophylactically to see if the files are ok. Remember to back up first (in case there is a version mismatch).