Skip to content

Resizetizer error at build after upgrading to verison 9.0.70 #29571

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

Closed
FM1973 opened this issue May 19, 2025 · 1 comment
Closed

Resizetizer error at build after upgrading to verison 9.0.70 #29571

FM1973 opened this issue May 19, 2025 · 1 comment
Labels
t/bug Something isn't working

Comments

@FM1973
Copy link

FM1973 commented May 19, 2025

Description

I have a hybrid app using .net maui version 9.0.40. The project isrunning fine and is live at the app store and play store.

I know wanted to update to the latest version 9.0.70.
After updating I can´t build the project anymore.

I get an exception:
"error MAUI0000: System.NullReferenceException: Object reference not set to an instance of an object."
Please have a look at the "relevant log output" section.

I do understand, this is a problem with resizetizer. I did not change anything regarding the splash image or the app icon (both .svg).

When I switch back to version 9.0.40 everything is fine and I can build my project.

Has there been any relevant change to the resizetizer?

Steps to Reproduce

I can reproduce this only with my current project.
When I create a new app and upgrade to version 9.0.70 this does not happen.
Please have a look at the "workaround" section.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.40 SR4

Affected platforms

Android, iOS

Affected platform versions

iOS 14,2+, Android 26+

Did you find any workaround?

The funny thing is, when I replace the buildTransitive of version 9.0.70 at (xxx.nuget\packages\microsoft.maui.resizetizer\9.0.70) with the buildTransitive folder of version 9.0.40 I can build my project and run it as well.

Relevant log output

9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000: System.NullReferenceException: Object reference not set to an instance of an object.
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpSvgTools.DrawUnscaled(SKCanvas canvas, Single scale) in /_/src/SingleProject/Resizetizer/src/SkiaSharpSvgTools.cs:line 50
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpTools.Draw(SKBitmap tempBitmap, Double additionalScale, SKSize originalSize, Single scale, SKSizeI scaledSize) in /_/src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 201
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpTools.Resize(DpiPath dpi, String destination, Double additionalScale, Boolean dpiSizeIsAbsolute) in /_/src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 126
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.Resizer.Resize(DpiPath dpi, String inputsFile) in /_/src/SingleProject/Resizetizer/src/Resizer.cs:line 105
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.GenerateSplashStoryboard.WriteImages(Resizer resizer) in /_/src/SingleProject/Resizetizer/src/GenerateSplashStoryboard.cs:line 60
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(449,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.GenerateSplashStoryboard.Execute() in /_/src/SingleProject/Resizetizer/src/GenerateSplashStoryboard.cs:line 43
9>Done building project "xxx.App.csproj" -- FAILED.
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000: System.NullReferenceException: Object reference not set to an instance of an object.
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpSvgTools.DrawUnscaled(SKCanvas canvas, Single scale) in /_/src/SingleProject/Resizetizer/src/SkiaSharpSvgTools.cs:line 50
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpTools.Draw(SKBitmap tempBitmap, Double additionalScale, SKSize originalSize, Single scale, SKSizeI scaledSize) in /_/src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 201
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.SkiaSharpTools.Resize(DpiPath dpi, String destination, Double additionalScale, Boolean dpiSizeIsAbsolute) in /_/src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 126
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.Resizer.Resize(DpiPath dpi, String inputsFile) in /_/src/SingleProject/Resizetizer/src/Resizer.cs:line 105
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.GenerateSplashAndroidResources.WriteImages(Resizer resizer) in /_/src/SingleProject/Resizetizer/src/GenerateSplashAndroidResources.cs:line 69
9>C:\Users\xxx\.nuget\packages\microsoft.maui.resizetizer\9.0.70\buildTransitive\Microsoft.Maui.Resizetizer.After.targets(423,9): error MAUI0000:    at Microsoft.Maui.Resizetizer.GenerateSplashAndroidResources.Execute() in /_/src/SingleProject/Resizetizer/src/GenerateSplashAndroidResources.cs:line 46
@FM1973 FM1973 added the t/bug Something isn't working label May 19, 2025
@FM1973
Copy link
Author

FM1973 commented May 19, 2025

Sorry, my bad. The splash SVG had a too big size for the new resizetizer.

@FM1973 FM1973 closed this as completed May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant