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

Fix import URL eating tons of memory on large file downloads #5826

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Nov 17, 2024

This PR introduces the use of a temporary file to progressively save data as a file is being downloaded during the import URL process.

This should prevent QField from crashed caused by running out of memory when downloading large files in this process.

@qfield-fairy
Copy link
Collaborator

qfield-fairy commented Nov 17, 2024

src/core/appinterface.cpp Outdated Show resolved Hide resolved
@m-kuhn
Copy link
Member

m-kuhn commented Nov 17, 2024

good move

Copy link
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! We need to double check whether the QFC integration does the same.

@nirvn nirvn force-pushed the import_url_bigfile_fix branch from 558b678 to 955a9a4 Compare November 18, 2024 02:17
@nirvn nirvn force-pushed the import_url_bigfile_fix branch from 1d2113d to 4f4fc96 Compare November 18, 2024 08:56
@nirvn nirvn merged commit e4f1647 into master Nov 19, 2024
24 checks passed
@nirvn nirvn deleted the import_url_bigfile_fix branch November 19, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants