This is a migrated thread and some comments may be shown as answers.

ImageEditor crashs on iOS

1 Answer 88 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 1
Sébastien asked on 13 Feb 2020, 02:04 PM

Hello,

I have this exception when running on iOS : System.EntryPointNotFoundException: 'sk_refcnt_safe_unref'

<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.SKSurface.Dispose (System.Boolean disposing) [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.DisposeInternal () [0x00000] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.SKNativeObject.Dispose () [0x00009] in <bbddcb2c541b425685678410ffe54489>:0 
  at SkiaSharp.Views.iOS.SKCanvasView.Draw (CoreGraphics.CGRect rect) [0x00094] in <b00521b27e7e4333aaef9a8d38e346f1>:0 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.3.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.3.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65 
  at Portwin.iOS.Application.Main (System.String[] args) [0x00001] in C:\PROJETS\XAMARIN\PORTWIN XAMARIN\Portwin\Portwin\Portwin.iOS\Main.cs:17 

 

Actually i'm just trying to run this sample : 

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage 
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:telerikImageEditor="clr-namespace:Telerik.XamarinForms.ImageEditor;assembly=Telerik.XamarinForms.ImageEditor"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Portwin.Tests.CurTestPage">

    <ScrollView
        HorizontalOptions="FillAndExpand"
        VerticalOptions="FillAndExpand"
        >

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <telerikImageEditor:RadImageEditor x:Name="imageEditor" Padding="4"  />
            <telerikImageEditor:RadImageEditorToolbar Grid.Row="1" Padding="4" ImageEditor="{x:Reference imageEditor}" />
        </Grid>
    </ScrollView>

</ContentPage>

 

Xamarin.iOS : 13.8.3.0

Xamarin.Forms : 4.4.0.991640

Telerik : 2020.1.114.1

SkiaSharp : 1.68.1.1

 

 

1 Answer, 1 is accepted

Sort by
0
Sébastien
Top achievements
Rank 1
answered on 13 Feb 2020, 04:45 PM

Ok you can close this post.

Everything related to SkiaSharp was broken. 

Seems fixed with last Xamarin.iOS version. 

Tags
ImageEditor
Asked by
Sébastien
Top achievements
Rank 1
Answers by
Sébastien
Top achievements
Rank 1
Share this question
or