Coder Social home page Coder Social logo

Comments (13)

molinch avatar molinch commented on August 20, 2024

@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.

kirajhpang avatar kirajhpang commented on August 20, 2024

@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.

molinch avatar molinch commented on August 20, 2024

Could you give the URL for the image ?

from ffimageloading.

kirajhpang avatar kirajhpang commented on August 20, 2024

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.

molinch avatar molinch commented on August 20, 2024

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.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

@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.

kirajhpang avatar kirajhpang commented on August 20, 2024

@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.

molinch avatar molinch commented on August 20, 2024

@kirajhpang fabien DOT molinet AT gmail DOT com

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on August 20, 2024

@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.

molinch avatar molinch commented on August 20, 2024

@kirajhpang Great I just managed to reproduce it with your code sample & images

from ffimageloading.

molinch avatar molinch commented on August 20, 2024

Damn that was a hard one to find!
Thanks for reporting it! 👍

from ffimageloading.

kirajhpang avatar kirajhpang commented on August 20, 2024

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.

molinch avatar molinch commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.