FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support for net6 by prostopsih · Pull Request #2 · Redth/FFImageLoading.Compat · GitHub

Repository navigation

Support for net6 - #2

Open
prostopsih wants to merge 2 commits into
Redth:mainfrom
prostopsih:main
Open

prostopsih wants to merge 2 commits into
Redth:mainfrom
prostopsih:main

Conversation

Copy link
Copy Markdown

Support for net6

Copy link
Copy Markdown

It's an excellent library, but unfortunately it's crashing when used in a NavigationPage. It's only working in shell. :(

Copy link
Copy Markdown
Author

It's an excellent library, but unfortunately it's crashing when used in a NavigationPage. It's only working in shell. :(

Can't agree, I used it with NavigationPage and it worked as expected

kpijnenburg77 commented Dec 15, 2023 •
edited
Loading

Copy link
Copy Markdown

It's an excellent library, but unfortunately it's crashing when used in a NavigationPage. It's only working in shell. :(

Hi, I'm experiencing the same issue. When I start the app using MainPage = MyMainPage, the whole library isn't working and always crashes. When the first MainPage is run from with the Shell, then everything works.

It's very simple to reproduce, create new maui app, add the library, change mainpage.xaml and add some svg, then change in App.xaml.cs to MainPage = new MainPage(); crashes 10/10 on:
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at FFImageLoading.Maui.CachedImage.SetupOnBeforeImageLoading(TaskParameter& imageLoader, IImageSourceBinding source, IImageSourceBinding loadingPlaceholderSource, IImageSourceBinding errorPlaceholderSource)
at FFImageLoading.Maui.Platform.CachedImageHandler.UpdateImage(UIImageView imageView, CachedImage image, CachedImage previousImage)
at FFImageLoading.Maui.Platform.CachedImageHandler.ConnectHandler(UIImageView platformView)
at Microsoft.Maui.Handlers.ViewHandler`2[[FFImageLoading.Maui.CachedImage, FFImageLoading.Compat.Maui, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIImageView, Microsoft.iOS, Version=17.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].OnConnectHandler(UIView platformView)
at Microsoft.Maui.Handlers.ViewHandler.OnConnectHandler(Object platformView)
at Microsoft.Maui.Handlers.ElementHandler.ConnectHandler(Object platformView)
at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)

When the same situation but in App.xaml.cs -> MainPage = new AppShell() -> the same xaml works without crashing.

Btw. this wasn't any issue in Xamarin Forms 5 and lower, we used it that way, without Shell.

Did you find a solution?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL