If I change the above code to this
Qt Code:
  1. Vector2i WzConfig::vector2i(const QString &name)
  2. {
  3. Vector2i r;
  4. ASSERT_OR_RETURN(r, contains(name), "Missing %s", name.toUtf8().constData());
  5. QStringList v = value(name).toStringList();
  6. ASSERT(v.size() == 2, "Bad list of %s", name.toUtf8().constData());
  7. r.x = v[0].toInt();
  8. r.y = v[1].toInt();
  9. return r;
  10. }
To copy to clipboard, switch view to plain text mode 
Then I don't get any crashes.

So it is a problem with QVariantList for some reason.