SkiaSharp: [BUG][macOS] EntryPointNotFoundException after upgrading to 1.68.1-rc.147

Description After upgrading (no other code changes) to the latest pre-release NuGet of SkiaSharp (1.68.1-rc.147) i get the following error:

sk_refcnt_safe_unref assembly:<unknown assembly> type:<unknown type> member:(null)

Screenshot at Sep 27 10-39-18

This happens in a Xamarin.Forms app targeting macOS. On Android and iOS there are no issues.

Code

no other code changes than changing NuGet package versions.

Basic Information

  • Version with issue: 1.68.1-rc.147
  • Last known good version: 1.68.0
  • IDE: Visual Studio for Mac 8.3 (build 1805)
  • Platform Target Frameworks: Xamarin.Forms (4.1.0.618606)
    • macOS: 10.14.6 (18G95)
  • Target Devices: MacBook Pro (13-inch, 2018)

Despite the error thanks for the new version @mattleibow 👍

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 42 (18 by maintainers)

Most upvoted comments

@mattleibow 153 is working for me! ❤️

My build server will love you if you put it up on nuget 😃

@mattleibow Just to double check. Do you think this issue will be fixed in V1.68.2?

I am also seeing this issue with 1.68.1 on an Ipad using Xamarin.iOS.

First spotted in the test cloud using an automated release build (built using VS mac, cleaned and rebuilt)

Has anyone been able to replicate this bug in a sample or is it something to do with the way the build machine is configured?

downgrading to 1.68.0 fixed the error

@john-dalsgaard (that was me on slack) Is it the same exception? The missing sk_refcnt_safe_unref exception?

It is in the source: https://github.com/mono/skia/blob/xamarin-mobile-bindings/src/c/sk_general.cpp#L34

SkiaSharp never calls Skia-API directly it always uses a C-Wrapper

quick update from my side - i have also cleaned and deleted bin/obj. After closing Visual Studio and re-opening the solution with the latest preview version of VS it works fine.

The same on Windows WPF: System.EntryPointNotFoundException: ‘Unable to find an entry point named ‘sk_refcnt_safe_unref’ in DLL ‘libSkiaSharp’.’

I’ve deleted bin/obj, rebuild