You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: