Skip to content

Revert "fix(imagebrush): downscaling images was very blurry" - #17033

Closed
Youssef1313 wants to merge 1 commit into
unoplatform:masterfrom
Youssef1313:revert-16816
Closed

Youssef1313 wants to merge 1 commit into
unoplatform:masterfrom
Youssef1313:revert-16816

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

Since the merge of this PR, we noticed failures in the new added test and it was skipped. Now, noticed the same failure for other tests that existed before this PR, so it's a regression.

info: Uno.UI.Samples.Tests.UnitTestsControl[0]
      Running test When_Stretch(Uniform, False)
GLIB UNHANDLED EXCEPTIONSystem.ArgumentNullException: Value cannot be null. (Parameter 'bitmap')
   at SkiaSharp.SKImage.FromBitmap(SKBitmap bitmap)
   at Microsoft.UI.Composition.CompositionSurfaceBrush.UpdatePaint(SKPaint fillPaint, SKRect bounds) in C:\a\1\s\src\Uno.UI.Composition\Composition\CompositionSurfaceBrush.skia.cs:line 91
   at Microsoft.UI.Composition.CompositionSpriteShape.Paint(PaintingSession& session) in C:\a\1\s\src\Uno.UI.Composition\Composition\CompositionSpriteShape.skia.cs:line 19
   at Microsoft.UI.Composition.BorderVisual.Paint(PaintingSession& session) in C:\a\1\s\src\Uno.UI.Composition\Composition\BorderVisual.skia.cs:line 127
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 222
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 232
   at Microsoft.UI.Composition.Visual.RenderRootVisual(SKSurface surface, Nullable`1 offsetOverride, Boolean isPopupSurface) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 182

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@github-actions github-actions Bot added the area/skia ✏️ Categorizes an issue or PR as relevant to Skia label Jun 7, 2024
@unodevops

Copy link
Copy Markdown
Contributor

@ramezgerges

ramezgerges commented Jun 7, 2024 •

Copy link
Copy Markdown
Contributor

I would advice against this. It seems to be a very CI-specific problem that we can't reproduce anywhere else. We can skip problematic tests until a more visible problem shows up. Without the PR, any decent-resolution image rendered in a small rectangle will look very terrible.cc. @jeromelaban

@Youssef1313

Copy link
Copy Markdown
Member Author

Yes, we can't yet repro it outside of CI. Still, it's a regression. We'll need to investigate why it happens to get the fix back. I'll let @jeromelaban do the final call here.

@ramezgerges

Copy link
Copy Markdown
Contributor

Let's see if #17035 does the trick first.

@Youssef1313

Copy link
Copy Markdown
Member Author

Closing as #17035 is merged. Let's see if we encountered that error again in CI.

@Youssef1313
Youssef1313 deleted the revert-16816 branch June 10, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants