Skip to content

Fix crash while uploading #6091

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

Merged
merged 2 commits into from
Jan 5, 2025
Merged

Conversation

psh
Copy link
Collaborator

@psh psh commented Dec 30, 2024

This potentially fixes #6053
and, relates to #6014

I notice that writing chunks to file was copying byte buffers for each of the chunks it was creating during an upload, rather than re-using the buffer that it had. Although Ive not encountered a crash (Pixel 5 / Pixel 9 Pro XL) this is a likely root cause.

Can someone who's seen the problem also test?

Tested on: Pixel 5, Pixel 9 Pro XL

@nicolas-raoul
Copy link
Member

I am traveling without a computer this week, but will test next week. Thanks! 🙂

@nicolas-raoul
Copy link
Member

Trying it now. :-)

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Not that I was experiencing #6053 very frequently, but at least it has not happened with this branch on a few dozen pictures. :-)

@nicolas-raoul nicolas-raoul merged commit 1d8d1d6 into commons-app:main Jan 5, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

Crash upon uploading a picture
2 participants