Xamarin.forms: [Android] FFImageLoading Crashes on Calling Init Method

Created on 14 Nov 2018  ·  9Comments  ·  Source: xamarin/Xamarin.Forms

Description

After updating Xamarin Forms to 3.4.0 pre-2 or later, FFImageLoading crashes when you call its initialization method on Android.

Basic Information

  • Version with issue: Xamarin Forms 3.4.0.987044-pre2 and later
  • Last known good version: Xamarin Forms 3.4.0.925479-pre1
  • IDE: Visual Studio for Mac

Screenshots

screen shot 2018-11-14 at 12 48 45 pm

Reproduction Link

FFImageLoading_CrashOnInit.zip

needs-info ❓

Most helpful comment

It should be fixed in newest stable.

All 9 comments

Having the same issue, exactly the same scenario as @zekeinferno. I appreciate though that this may legitimately be a problem with FFImageLoading instead (such as relying on something XF now considers to be a bug which has been fixed since 3.4.0.925479-pre1)...

Error occurred while restoring NuGet packages: The local source 'C:\Users\Chris\Downloads\FFImageLoading_CrashOnInit\Example\LocalPackages' doesn't exist.
1>------ Build started: Project: Example.Common, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\2.1.500\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5): error NETSDK1004: Assets file 'C:\Users\Chris\Downloads\FFImageLoading_CrashOnInit\Example\Example.Common\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
1>Done building project "Example.Common.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.1837786
========== Finished ==========

Error occurred while restoring NuGet packages: The local source 'C:\Users\Chris\Downloads\FFImageLoading_CrashOnInit\Example\LocalPackages' doesn't exist.

If possible, start with the VS template project and add only what you need there.

@kingces95 I've created a reproduction project from one of the VS template projects per your request and have reuploaded it to the original comment. I've also updated it to use the latest XF release from a few hours ago, 3.4.0.1008975.

Same here … VS 15.9.1; XF 3.4 Stable Error while init of FFImageloading -

https://github.com/luberda-molinet/FFImageLoading/issues/1154

It should be fixed in newest stable.

Can confirm this is now fixed for me using latest XF 3.4.0 stable and latest FFImageLoading package, thanks @daniel-luberda :)

I have confirmed that the issue has been resolved with the reproduction project I provided originally, I'll be closing this issue. Thanks for the help everyone!

Was this page helpful?
0 / 5 - 0 ratings