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

Seek stream before loading icon #14830

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Seek stream before loading icon #14830

merged 2 commits into from
Mar 6, 2024

Conversation

hez2010
Copy link
Contributor

@hez2010 hez2010 commented Mar 6, 2024

What does the pull request do?

Seek stream before loading icon.

What is the current behavior?

After bitmap.Save(memoryStream), the position of stream will be set to the end, which leads to System.IO.EndOfStreamException: Unable to read beyond the end of the stream in the following CreateIconImpl call.

What is the updated/expected behavior with this PR?

Seek stream before loading icon to fix this issue.

@maxkatz6 maxkatz6 enabled auto-merge March 6, 2024 01:22
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0045730-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Mar 6, 2024
@maxkatz6 maxkatz6 added this pull request to the merge queue Mar 6, 2024
Merged via the queue into AvaloniaUI:master with commit 0759b3d Mar 6, 2024
6 checks passed
@maxkatz6 maxkatz6 removed the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Apr 6, 2024
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.

3 participants