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

Created on 27 Sep 2019  路  42Comments  路  Source: mono/SkiaSharp

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 馃憤

type-bug

Most helpful comment

@mattleibow 153 is working for me! <3

My build server will love you if you put it up on nuget :-)

All 42 comments

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

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.

I have a similar issue on XF / iOS. The app crashes on launch, and I can't find any useful exception information. AppCenter doesn't catch anything either.

I am getting the same crash after upgrading.

@Redth This is a pretty critical problem since 1.68 does not work on Catalina but this beta does (before it crashes)

ERROR: System.EntryPointNotFoundException: sk_refcnt_safe_unref assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) SkiaSharp.SkiaApi.sk_refcnt_safe_unref(intptr)
  at SkiaSharp.SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) [0x00017] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKObject.GetObject[TSkiaObject,TSkiaImplementation] (System.IntPtr handle, System.Boolean owns, System.Boolean unrefExisting, System.Boolean refNew) [0x0003b] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKObject.GetObject[TSkiaObject] (System.IntPtr handle, System.Boolean owns, System.Boolean unrefExisting, System.Boolean refNew) [0x00000] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKTypeface.FromFamilyName (System.String familyName, SkiaSharp.SKFontStyle style) [0x0001a] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKTypeface.FromFamilyName (System.String familyName, System.Int32 weight, System.Int32 width, SkiaSharp.SKFontStyleSlant slant) [0x00009] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKTypeface.FromFamilyName (System.String familyName, SkiaSharp.SKFontStyleWeight weight, SkiaSharp.SKFontStyleWidth width, SkiaSharp.SKFontStyleSlant slant) [0x00000] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at SkiaSharp.SKTypeface.FromFamilyName (System.String familyName, SkiaSharp.SKTypefaceStyle style) [0x00038] in <0dd1f6e452a9498eb4c5ec4fafde30fd>:0 
  at CrossGraphics.Skia.SkiaGraphics.GetFontInfo (CrossGraphics.Font f) [0x00063] in /Users/fak/Dropbox/Projects/Circuit/External/CrossGraphics/src/SkiaGraphics.cs:273 
  at CrossGraphics.Skia.SkiaGraphics.GetFontMetrics () [0x00001] in /Users/fak/Dropbox/Projects/Circuit/External/CrossGraphics/src/SkiaGraphics.cs:252 
  at CrossGraphics.Button.Draw (CrossGraphics.IGraphics g) [0x000d3] in /Users/fak/Dropbox/Projects/Circuit/External/CrossGraphics/src/Canvas.cs:174 
  at Circuit.Scope.Draw (CrossGraphics.IGraphics graphics, Circuit.ScopeTrack[] tracks, System.Drawing.RectangleF wholeFrame, System.Boolean stacked, System.Boolean drawUI, System.Boolean drawAxes, System.Boolean drawCursor) [0x002f0] in /Users/fak/Dropbox/Projects/Circuit/CircuitLib/Scope.cs:821 
  at Circuit.Scope.Draw (CrossGraphics.IGraphics g) [0x00056] in /Users/fak/Dropbox/Projects/Circuit/CircuitLib/Scope.cs:733 
  at Circuit.Mac.ScopeView.OnPaintSurface (SkiaSharp.Views.Mac.SKPaintGLSurfaceEventArgs e) [0x000c2] in /Users/fak/Dropbox/Projects/Circuit/CircuitMac/ScopeView.cs:182 

This function was added in:

https://github.com/mono/SkiaSharp/commit/d5aa34a78786a9e24c13655694760bf3ee4db45a#diff-1aed66166e4845e2a091a4e328bb6a43R101

I've looked over the Skia sources and don't see this function (sk_refcnt_safe_unref) anywhere.

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

Does this also happen with the preview (-rc.153) from the preview feed?
https://nugetized.blob.core.windows.net/skiasharp-eap/index.json

The -rc.147 had some issues with regards to disposing native objects that is why I have this later one where I think I got the memory management fixed. I think I might delist this version as it seems to have this issue for everyone. Not sure how the other folks that were testing this version did not hit any of these issues.

@mattleibow 153 is working for me! <3

My build server will love you if you put it up on nuget :-)

We are just waiting a week or so to make sure that it does not break the world. But what I think is happening is that nobody really uses the private feed. I suppose that is what the preview for NuGet really is for...

Yeah, I didn't even know you had a private feed. Just upload to Nuget, Microsoft is paying ;-)

Also, I'll be testing on some older macOS's and will let you know if I run into anymore problems.

@praeclarum you could just create a nuget config and add the url: https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file CI will pick it up :)

@mattleibow Unfortunately 153 isn't working on OS X 10.11.4 (El Capitan).

I get the error "Could not initialize an instance of the type 'AppKit.NSOpenGLPixelFormat': the native 'init*' method returned nil.". Bug filed: https://github.com/mono/SkiaSharp/issues/977

@jamesmontemagno This is why I always test :-)

I've upgraded all nugets, deleted bin & obj, but no luck.
VS2019 16.3 PReview 2
SkiaSharp 1.68.1-rc.153
Windows WPF:

System.EntryPointNotFoundException: 'Unable to find an entry point named 'sk_refcnt_safe_unref' in DLL 'libSkiaSharp'.'

I am using 1.68.1-rc.153 without any issues. Also on CI this works for multiple platforms. (MacOS, Linux, Windows)

Sorry guys, ignore my comments about this exception in WPF. I had a custom build step which replaced libraries and with wrong ones.

Now everything works with r 153!

(one thing had to be fixed: shaping text now need setting Utf8 encoding to paint before shaping string text and setting to glyph when drawing text)

@michaldobrodenka Can you give me an example how you are drawing the text?

@Gillibald To draw a text is not easy. Without HarfBuzz its more like a debug or something, not really useful in real app - only basic english alphabet is rendered correctly (so no localization), RTL/LTR is not observed, rendering text using harfbuzz results in much crisper result etc.

So you have to use Harfbuzz, split text into RTL/LTR/Neutral segments and each segment render separately using harfbuzz. My simplified version is 780 lines long and it is tied in my more complex framework which I wrote to create SkiaSharp multiplatform UI controls. Text drawing was one of most complex chalenges in this framework, really unexpected, at beginning it seemed so simple, just draw text usinng Canvas.DrawText. I started with Canvas.DrawText, then with extension DrawShapedText and now I wrote my own methods with RTL/LTR segments etc.

Another challenge is font fallback (useful when you combine more fonts - emoticons with latin script, arabic - you probably need 3 fonts) I cheated and merged used fonts into one.

I don't know If I'm doing it correctly, but seems to be working

@michaldobrodenka I am the maintainer of HarfBuzzSharp 馃榾
I just wanted to investigate what is happening when you have to set TextEncoding to UTF8

Haha, sorry :D Thank you for work!

There is a change in getting Buffer from string, which requires setting encoding in paint. In previous versions getting harfbuzz Buffer from string was done always in Utf8 I think. I can share more details tomorrow.

Updated to 1.68.1 last night. It crashes the app instantly... Downgrading to 1.68.0 works. I'll need to publish a version that works - and then I can add the stacktrace here if you want?

I'm on MacOS Catalina, VS 2019 Version 8.3.10 (build 2), Xamarin.Forms 4.3.0.991211

Well, I seem to be wrong - downgrading _doesn't_ fix it....

In AppCenter I still get these errors (using 1.68.0):

image

Ideas??

My fault - I had not downgraded the plugin in the iOS project... Doing that seems to make it work...

Let me know if you need any information from trying to use version 1.68.1?

This is because there appears to be some issue with the packaging process not copying the new native binaries/frameworks into the app package.

A rebuild of the app will fix it.

I have opened an issue: https://github.com/xamarin/xamarin-macios/issues/7514

Well, I tried to upgrade again (after discussing this with someone from Microsoft on Slack) - clean, build and upload to appstore again. And this time it worked... 馃憤

Ahhhh... I was wrong - it doesn't work! I have removed that build for the external testers again 馃憥

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

Yep, it looks the same:
SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) SKObject.DisposeNative () SKNativeObject.Dispose (System.Boolean disposing) SKObject.Dispose (System.Boolean disposing) SKPicture.Dispose (System.Boolean disposing) SKNativeObject.Finalize ()

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

@JKennedy24 Is it also an EntryPointNotFoundException exception? Also, could you just add your stack trace so I can see if it is exactly the same?

I tested on a simulator - everything worked fine.

I tested on an iPad air (2019) running 13.1.3 and this was the error it threw:

System.EntryPointNotFoundException has been thrown
sk_refcnt_safe_unref
at SkiaSharp.SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) [0x00017] in :0 \n at SkiaSharp.SKObject.DisposeNative () [0x0000a] in :0 \n at SkiaSharp.SKNativeObject.Dispose (System.Boolean disposing) [0x0002a] in :0 \n at SkiaSharp.SKObject.Dispose (System.Boolean disposing) [0x00000] in :0 \n at SkiaSharp.SKSurface.Dispose (System.Boolean disposing) [0x00000] in :0 \n at SkiaSharp.SKNativeObject.DisposeInternal () [0x00000] in :0 \n at SkiaSharp.SKNativeObject.Dispose () [0x00009] in :0 \n at SkiaSharp.Views.iOS.SKCanvasView.Draw (CoreGraphics.CGRect rect) [0x00094] in <6fc7fece3bdb478390d6db867ea7bd11>:0 \n at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)\n at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:86 \n at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/UIKit/UIApplication.cs:65 \n at FieldStrikeMove.iOS.Application.Main (System.String[] args) [0x00001] in /Users/chrisjohn/Documents/TFS/FieldStrike/FieldStrikeMove-dev/FieldStrikeMove.iOS/Main.cs:29 "

I use:
iOS proj
Skiasharp 1.68.1

Forms project:
Skiasharp.Views.Forms 1.68.1
Skiasharp.SVG 1.60.0
Skiasharp.extended 1.60.0

Scratch all this

Ok so I don't know whether this is related, because I don't fully understand what's causing the issue but I'll post some information here anyway

I noticed at the top of Mac VS it said "Install missing Xcode command line tools" (I guess Xcode automatically updated and Mac vs is checking whether command line tools exist?) After doing this I upgraded back to 1.68.1 and it seems to build and doesn't throw any runtime exceptions.

Unfortunately another third party package does throw errors which prevents me doing a UI test to 100% confirm whether this has fixed the issue.

As soon as the third party has fixed their issue I will run my UI test and confirm.

Is it also an EntryPointNotFoundException exception

It was definitely the EntryPointNotFoundException I was getting this morning

Interestingly my third party bug I said about has the following stacktrace:

Could not create provider from the specified file
at CoreGraphics.CGDataProvider..ctor (System.String file) [0x0003d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.6.0.12/src/Xamarin.iOS/CoreGraphics/CGDataProvider.cs:106
at Syncfusion.SfDataGrid.XForms.iOS.FontIconHelper.SetFontIcon (System.String font) [0x00000] in <8603d9919dd740d399be22bdbd54ebfa>:0

I see this looks like a similar stack trace to:

https://github.com/mono/SkiaSharp/issues/968#issuecomment-541241747

are the two linked?

SkiaSharp.SVG and SkiaSharp.extended are not directly referencing the new version. Might that be an issue?

Ok, so I tried to release another test version today. This time it does not work with version 1.68.0... it crashes instantly with:

SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) SKObject.DisposeNative () SKNativeObject.Dispose (System.Boolean disposing) SKPicture.Dispose (System.Boolean disposing) SKNativeObject.Finalize ()
If I run the same project in debug mode on the same device it works fine...

Not sure how to fix that right now.... :-(

Ok, it turned out that disabling LLVM optimization made it work again....

This is very interesting as LLVM _may_ be removing things, but shouldn't as it is used by the p/invokes. I will investigate.

Because I was using Debug builds when I tested, LLVM optimiser isn't even enabled for me, so I would be skeptical of that as a cause

So, I have been looking at this and it is a result of https://github.com/xamarin/xamarin-macios/issues/7514. When the framework is extracted, it is not actually deployed to the device.

The best way to make all this work is to just delete the bin and obj folders after updating the NuGet. Then a restore and build should make everything work again.

This is a bit of a pain, but I hope to try out some new buttons mentioned in that issue to permanently fix this issue. But, in order to get out a release soon - and avoid any changes that may cause issues - this will have to wait for v1.68.2.

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

I tried to update to 1.68.1.1 - but this error seems still to be relevant (if it is exactly the same?). This happens on launch of my app (in debugger):

2020-01-09 20:08:41.345316+0100 Angler.iOS[33939:2277356] [AppCenterCrashes] ERROR: +[MSWrapperLogger MSWrapperLog:tag:level:]/10 Unhandled Exception:
System.EntryPointNotFoundException: sk_refcnt_safe_unref assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) SkiaSharp.SkiaApi.sk_refcnt_safe_unref(intptr)
  at SkiaSharp.SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) [0x00017] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKObject.DisposeNative () [0x0000a] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.Dispose (System.Boolean disposing) [0x0002a] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKObject.Dispose (System.Boolean disposing) [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKPicture.Dispose (System.Boolean disposing) [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.Finalize () [0x00000] in <bbddcb2c541b425685678410ffe54489>:0
2020-01-09 20:08:41.355942+0100 Angler.iOS[33939:2277356] Unhandled managed exception: sk_refcnt_safe_unref assembly:<unknown assembly> type:<unknown type> member:(null) (System.EntryPointNotFoundException)
  at (wrapper managed-to-native) SkiaSharp.SkiaApi.sk_refcnt_safe_unref(intptr)
  at SkiaSharp.SKObjectExtensions.SafeUnRef (SkiaSharp.ISKReferenceCounted obj) [0x00017] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKObject.DisposeNative () [0x0000a] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.Dispose (System.Boolean disposing) [0x0002a] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKObject.Dispose (System.Boolean disposing) [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKPicture.Dispose (System.Boolean disposing) [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.Finalize () [0x00000] in <bbddcb2c541b425685678410ffe54489>:0
CalabashServer | XTC_SKIP_LPSERVER_TOKEN is not in the app environment
CalabashServer | Will start LPServer with identifier: e8754b3cd4c478021b7b5f5654606d3a9bc25485
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b68796e
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b68796e
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x112de198b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x112de198b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x112ddf71b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x112ddf71b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3ee0
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3ee0
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_frame_ptr:86: Stack growing in wrong direction, terminating stack walk
[PLCrashReport] plcrash_writer_write_thread:984: Terminated stack walking early: Corrupted frame
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b68796e
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b68796e
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x112de198b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x112de198b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x112ddf71b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x112ddf71b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3ee0
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3ee0
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1120e3313
[PLCrashReport] MSplframe_cursor_read_frame_ptr:86: Stack growing in wrong direction, terminating stack walk
[PLCrashReport] plcrash_writer_write_thread:984: Terminated stack walking early: Corrupted frame
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26f5e0
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26f5e0
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26ec43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26ec43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26ce26
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26ce26
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26f5e0
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26f5e0
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26ec43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26ec43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26ce26
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26ce26
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11293737b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11293737b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1129340eb
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1129340eb
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11293269b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11293269b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277dc5c
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277dc5c
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277d49d
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277d49d
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b32230b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b32230b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b320e4b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b320e4b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277a9b3
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277a9b3
[PLCrashReport] MSplframe_cursor_read_frame_ptr:86: Stack growing in wrong direction, terminating stack walk
[PLCrashReport] plcrash_writer_write_thread:984: Terminated stack walking early: Corrupted frame
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11293737b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11293737b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x1129340eb
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x1129340eb
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11293269b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11293269b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277dc5c
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277dc5c
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b26af43
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277d49d
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277d49d
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b32230b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b32230b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x10b320e4b
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x10b320e4b
[PLCrashReport] MSplframe_cursor_read_compact_unwind:67: Could not find a loaded image for the current frame pc: 0x11277a9b3
[PLCrashReport] MSplframe_cursor_read_dwarf_unwind:236: Could not find a loaded image for the current frame pc: 0x11277a9b3
[PLCrashReport] MSplframe_cursor_read_frame_ptr:86: Stack growing in wrong direction, terminating stack walk
[PLCrashReport] plcrash_writer_write_thread:984: Terminated stack walking early: Corrupted frame

Downgrading to 1.68.0 - restore NuGet packages and cleaning the project fixed the issue for now ;-)

This is my environment:

=== Visual Studio Professional 2019 for Mac ===

Version 8.4 (build 2657)
Installation UUID: 0e93c0c9-35a7-4964-a385-abee678b36e8
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 5.16.1.25 (issue-7441-d16-3-vsmac / 881172e73)

    Package version: 606000155

=== Mono Framework MDK ===

Runtime:
    Mono 6.6.0.155 (2019-08/296a9afdb24) (64-bit)
    Package version: 606000155

=== Roslyn (Language Service) ===

3.4.0-beta4-19562-05+ff930dec4565e2bc424ad3bf3e22ecb20542c87d

=== NuGet ===

Version: 5.3.0.6192

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/3.1.100/Sdks
SDK Versions:
    3.1.100
    3.0.101
    3.0.100
    2.2.401
    2.1.701
    2.1.700
    2.1.505
    2.1.504
    2.1.503
    2.1.401
    2.1.302
    2.1.301
    2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/mono/msbuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    3.1.0
    3.0.1
    3.0.0
    3.0.0-rc1-19456-20
    3.0.0-preview9-19423-09
    2.2.6
    2.1.14
    2.1.13
    2.1.12
    2.1.11
    2.1.9
    2.1.8
    2.1.7
    2.1.3
    2.1.2
    2.1.1
    2.0.5

=== Xamarin.Profiler ===

Version: 1.6.12.29
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 11.2.1 (15526.1)
Build 11B53

=== Xamarin.Mac ===

Version: 6.8.3.0 (Visual Studio Professional)
Hash: 0d8fe219c
Branch: d16-4
Build date: 2019-12-04 13:06:40-0500

=== Xamarin.iOS ===

Version: 13.8.3.0 (Visual Studio Professional)
Hash: 0d8fe219c
Branch: d16-4
Build date: 2019-12-04 13:06:41-0500

=== Xamarin Designer ===

Version: 16.4.0.468
Hash: 519082ea8
Branch: remotes/origin/d16-4
Build date: 2019-12-04 16:21:00 UTC

=== Xamarin.Android ===

Version: 10.1.1.0 (Visual Studio Professional)
Commit: xamarin-android/d16-4/f2c9364
Android SDK: /Users/jda/Library/Android/sdk
    Supported Android versions:
        4.4 (API level 19)
        5.1 (API level 22)
        6.0 (API level 23)
        7.1 (API level 25)
        8.0 (API level 26)
        8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.2
SDK Build Tools Version: 28.0.3

Build Information: 
Mono: bef1e63
Java.Interop: xamarin/java.interop/d16-4@c4e569f
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.28.0@46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools/master@9f4ed4b

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/jda/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.4.0.9
Hash: 3f7256f
Branch: remotes/origin/d16-4
Build date: 2019-12-19 18:59:12 UTC

=== Android Device Manager ===

Version: 16.4.0.28
Hash: 68e9956
Branch: remotes/origin/d16-4
Build date: 2019-12-19 18:59:32 UTC

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 804002657
Git revision: 4c6723413e884e024466fc93ff10e938bca7f721
Build date: 2020-01-06 18:20:13+00
Build branch: release-8.4
Xamarin extensions: 0f572cad12fd3886cd8e21a8b93b86e29ceaf111

=== Operating System ===

Mac OS X 10.15.2
Darwin 19.2.0 Darwin Kernel Version 19.2.0
    Sat Nov  9 03:47:04 PST 2019
    root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64

... and also latest Xamarin.Forms (4.4.0.991265)

Experienced crashing with a very similar stacktrace (sk_refcnt_safe_unref) as @john-dalsgaard on SkiaSharp 1.68.1.1. Hovewer cleaning the solution and rebuilding the project fixed it.

@mbalous Good catch! I _should_ have done a clean before reporting this... (but I had issues with other packages so just saw the same issue as with 1.68.1).

But... upgrading _and_ cleaning seems to make it work.

Thanks!

_I really prefer to have all of the latest versions installed - much easier to admin :-)_

That's good to hear. It is a combination of a few things, but it appears to have been fixed and merge a few days ago: https://github.com/xamarin/xamarin-macios/issues/7514

Right now, the fix is just a clean and rebuild. But, hopefully the next release makes all the things go away.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaldobrodenka picture michaldobrodenka  路  3Comments

NotOfficer picture NotOfficer  路  3Comments

PieroCastillo picture PieroCastillo  路  3Comments

loketha picture loketha  路  4Comments

corliss picture corliss  路  4Comments