Comments (13)
@kirajhpang From your sample it's quite hard to understand what's going on.
Did you reference the nuget package in your iOS and Android package too?
It should be referenced in PCL, iOS and Android Forms projects.
@daniel-luberda Any idea?
from ffimageloading.
@molinch I follow the description on Github. Add FF library on PCL, Android, iOS project and WP (well, I know it can't work), and called init() on each platform.
I suspect that the image is fail to download so it called MiniLogger to print out message, and somehow the string is null, so it throw null reference exception.
Btw, the try catch exception didn't work, so I assume that's is no exception occur when putting the image. Exception occurs while download the image.
from ffimageloading.
Could you give the URL for the image ?
from ffimageloading.
I can't, it is return by the server, basically is just http URL and company own it.
Currently, maximum picture needed to be download is around 7-8 only, without this library, 4-5 image will crush definitely with java OutOfMemory exception.
Sometimes it work very smooth, but will crush after several action, exception same as above I described.
from ffimageloading.
I know it is corporate stuff but would you be able to send a repro sample by email?
It will be way easier to solve
from ffimageloading.
@kirajhpang You could also try to use alternative http handler (moderhttpclient, add it via nuget) in platform specific project:
FFImageLoading.ImageService.Initialize(httpClient: new HttpClient(new NativeMessageHandler());
BTW: You don't need to cast to ImageSource (Source = (ImageSource)imageSource
) - strings would work just fine!
from ffimageloading.
@molinch can I have your email? I think I able to send you the images.
@daniel-luberda I quite new in Xamarin.Forms and most of my code handle in Xamarin.Forms PCL project, I got try the ImageService
written on Github API page, but I have no idea how to implement it completely. Should I use DependencyService
or Custom Image Render
?
from ffimageloading.
@kirajhpang fabien DOT molinet AT gmail DOT com
from ffimageloading.
@kirajhpang You only need to:
- add nuget https://github.com/paulcbetts/ModernHttpClient
- add
FFImageLoading.ImageService.Initialize(httpClient: new HttpClient(new NativeMessageHandler());
in every platform specific project (MainActivity.cs on Android, AppDelegate.cs on iOS)
from ffimageloading.
@kirajhpang Great I just managed to reproduce it with your code sample & images
from ffimageloading.
Damn that was a hard one to find!
Thanks for reporting it! 👍
from ffimageloading.
ok, I expecting also something similar from your commit. Thanks for fix it!
Are we able to get new version from nuget now ?
from ffimageloading.
@kirajhpang Pushed to nuget.
https://www.nuget.org/packages/Xamarin.FFImageLoading/
Sorry for the delay!
Could you give it a try?
from ffimageloading.
Related Issues (20)
- Check if Image Server side has changed from Cached version
- [Bug]In Xamarin.Forms (Android) throws System.ArgumentException in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask).
- Support for image width/height query in the URL
- Some SVG images are displaying and some are not HOT 3
- CacheKeyFactory used in a CollectionView causes incorrect images to load.
- ReplaceStringMap Question
- Images from URL don't show at all on iOS in Xamarin Forms 5 app HOT 1
- For MAUI see here.... HOT 3
- Image Adjustments in Xamarin
- [ISSUE] [Android] GIF animation weird behavior
- App crashes after calling ImageService.SetTaskForTarget HOT 1
- Guid inside URL is changed
- .Net 6 support HOT 4
- Incomplete downloaded image is cached.
- Images disappear on Android after pressing the (hardware) Back button HOT 1
- .Net 8 support HOT 2
- RotateTransformation does not rotate images on iOS 17 HOT 1
- Image won't load in Maui Windows app
- Inquiry about Data Collection
- On windows image download fails randomly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffimageloading.