Skip to content

Instantly share code, notes, and snippets.

View mattleibow's full-sized avatar
🏠
Working from home

Matthew Leibowitz mattleibow

🏠
Working from home
View GitHub Profile

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\generator.exe obj\Release\monoandroid90\api.xml --codegen-target=XAJavaInterop1 --csdir=obj\Release\monoandroid90\generated\src --enumdir=obj\Release\monoandroid90\generated\enums --enummetadata=obj\Release\monoandroid90\generated\metadata --assembly=Xamarin.AndroidX.Leanback.Preference --ref="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" --ref="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll" --ref="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\Mono.Android.dll" --ref="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" --ref="C:\Program Files (x86)

System.NotSupportedException: Unable to activate instance of type SkiaSharp.Views.Forms.SKCanvasViewRenderer from native handle 0xffc8386c (key_handle 0xf5d58bf). ---> System.MissingMethodException: No constructor found for SkiaSharp.Views.Forms.SKCanvasViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
--- End of inner exception stack trace ---
at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x000b5] in <bf995bc83cf844998720216d8171be13>:0
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00111] in <bf995bc83cf844998720216d8171be13>:0
--- End of inner exception stack trace ---
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type tar
using System;
using System.Runtime.InteropServices;
namespace ConsoleApp1
{
unsafe class Program
{
private static readonly IntPtr libSkiaSharp;
static Program()
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
namespace SkiaSharp.Benchmarks
{
//[SimpleJob(RuntimeMoniker.CoreRt31)]
[SimpleJob(RuntimeMoniker.Mono)]
[SimpleJob(RuntimeMoniker.Net472)]
[SimpleJob(RuntimeMoniker.NetCoreApp31)]
public class FrameCounter
{
private readonly int sampleCount;
private int index;
private int sum;
private readonly int[] samples;
private int lastTick;
public FrameCounter(int sampleCount = 100)
Mono log profiler data
Profiler version: 3.0
Data version: 17
Arguments: log:calls,output=/data/user/0/com.companyname.skiasharpsample/files/.__override__/profile.mlpd
Architecture: armv8
Operating system: linux
Mean timer overhead: 176 nanoseconds
Program startup: Wed Jul 22 03:03:10 2020
Program ID: 21041
dotnet.js:2413 L: GC_MAJOR_SWEEP: major size: 34864K in use: 60350K
dotnet.js:2413 L: GC_MAJOR: (LOS overflow) time 120.31ms, stw 120.32ms los size: 1024K in use: 139K
dotnet.js:1855 Stacktrace:
dotnet.js:1855 Error
at 2242 (dotnet.js:1855)
at _emscripten_asm_const_iii (dotnet.js:1864)
at :63559/<anonymous>:wasm-function[448]:0xfcc8
at :63559/<anonymous>:wasm-function[20099]:0x558739
at :63559/<anonymous>:wasm-function[20605]:0x56897d
using System;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using SkiaSharp;
using SkiaSharp.Views.UWP;
using Windows.Graphics.Display;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
=== Visual Studio Community 2019 for Mac ===
Version 8.6.5 (build 23)
Installation UUID: 3f35a65c-55b3-47ea-8af2-82f13c147479
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 610000104
=== Mono Framework MDK ===