Skip to content
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

Cannot load large ULog file (2.5 GB) #672

Open
JacobCrabill opened this issue Jun 21, 2022 · 0 comments
Open

Cannot load large ULog file (2.5 GB) #672

JacobCrabill opened this issue Jun 21, 2022 · 0 comments

Comments

@JacobCrabill
Copy link

Problem description

ULog files larger than ~2.5 GB (not sure the exact limit) fail to open (tested on the latest version of master, in addition to a custom branch from ~1yr ago). The issue is actually within QFile - the call to file.readAll() returns an empty QByteArray, which later causes ULogParser::readFileHeader() to fail, which results in the error message "ULog: wrong header". file.size() shows the proper size after opening the file; it's only the subsequent call to file.readAll() that fails.

Based on the file size, and the fact that I can load a 1.5GB ULog file with no issues, I'm suspecting that the Qt libraries for QFile or QByteArray are using signed 32-bit integers somewhere; I don't know enough about Qt to dig deeper though.

Steps to reproduce (important)

  • Ubuntu 20.04 64-bit, 'vanilla' Qt dependencies installed via apt just last week
  • 2.5GB ULog file capable of being opened with PyULog
  • Adding the following after the call to file.readAll(): qDebug() << "Error Message:" << file.errorString() << endl; shows the error message "Unknown error"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant