Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

UWP Crashes when restoring points from a property #112

Open
mseamari opened this issue Jan 5, 2018 · 3 comments
Open

UWP Crashes when restoring points from a property #112

mseamari opened this issue Jan 5, 2018 · 3 comments

Comments

@mseamari
Copy link

mseamari commented Jan 5, 2018

When i assign points through the "Points" properties the app crashes with the exception ComTypeMarshalling_MissingInteropData

this happens in UWP Release when you compile the app with the .NET Native Toolchain.

someone else made a post on stackoverflow who has the exact same issue as i do

https://stackoverflow.com/questions/46391416/uwp-app-is-crashing-in-release-mode-when-using-xamarin-controls-signaturepad-for

[Edit 08 jan 2018]

here is a stack trace of the error

   at System.Runtime.InteropServices.__interface_ccw.Allocate(ComCallableObject managedCCW, McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\ComCallableObject.cs:line 112
   at System.Runtime.InteropServices.ComCallableObject.GetComInterfaceForTypeInfo_NoCheck_NoAddRef(McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\ComCallableObject.cs:line 1550
   at System.Runtime.InteropServices.ComCallableObject.GetComInterfaceForTypeInfo_NoCheck(McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\ComCallableObject.cs:line 1574
   at System.Runtime.InteropServices.ComCallableObject.GetComInterfaceForIIDInternal(Guid& iid, McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\ComCallableObject.cs:line 1523
   at System.Runtime.InteropServices.ComCallableObject.GetComInterfaceForIID(Guid& iid, McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\ComCallableObject.cs:line 1303
   at System.Runtime.InteropServices.McgComHelpers.ManagedObjectToComInterfaceInternal(Object obj, Guid& iid, McgTypeInfo itfTypeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgComHelpers.cs:line 845
   at System.Runtime.InteropServices.McgComHelpers.ObjectToComInterfaceInternal(Object obj, McgTypeInfo typeInfo) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgComHelpers.cs:line 801
   at System.Runtime.InteropServices.McgModuleManager.ObjectToComInterface(Object obj, RuntimeTypeHandle typeHnd) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgModuleManager.cs:line 777
   at Windows.UI.Input.Inking.IInkStrokeBuilder2__Impl.StubClass.CreateStrokeFromInkPoints(__ComObject __this, IEnumerable`1 inkPoints, Matrix3x2 transform) in D:\MyApp\obj\x64\Release\ilc\intermediate\MyApp.McgInterop\ImplTypes.g.cs:line 159401
   at Xamarin.Controls.Extensions.<>c__DisplayClass4_0.<AddStrokes>b__1(Point[] s)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() in f:\dd\ndp\fxcore\Open\src\System.Linq\src\System\Linq\Enumerable.cs:line 469
   at System.Runtime.InteropServices.WindowsRuntime.IIteratorOfT_PrivateCCWAdapter`1.MoveNext() in f:\ddSetup\SD\2\setup\msis\x86ret\enu\netfx_ProjectNamd64\TestILC\ExternalFiles\SharedAssemblyPath\ret.intermediate\System.Private.SharedLibrary.Interop.Generated\Adapters.g.cs:line 473
   at System.Runtime.InteropServices.WindowsRuntime.IIteratorOfT_PrivateCCWAdapter`1.get_HasCurrent() in f:\ddSetup\SD\2\setup\msis\x86ret\enu\netfx_ProjectNamd64\TestILC\ExternalFiles\SharedAssemblyPath\ret.intermediate\System.Private.SharedLibrary.Interop.Generated\Adapters.g.cs:line 463
   at McgInterop.Toolbox.IIteratorThunk[T](IIterator`1 it, IIterator_Oper oper, Object& item, Int32 len) in D:\MyApp\obj\x64\Release\ilc\intermediate\MyApp.McgInterop\Helpers.g.cs:line 453
   at System.Runtime.InteropServices.CalliIntrinsics.Call[T](IntPtr pfn, Object iterator, IIterator_Oper oper, Object& data, Int32 len)
   at System.Runtime.InteropServices.SharedCcw_IIterator.get_HasCurrent(IntPtr pComThis, IntPtr pValue) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgHelpers.cs:line 1461
   at McgInterop.McgHelpers.ThrowFailed(Int32 hr, RuntimeTypeHandle typeHnd) in D:\MyApp\obj\x64\Release\ilc\intermediate\MyApp.McgInterop\Helpers.g.cs:line 8497
   at McgInterop.ComCallHelpers.ComCall__HRESULT(__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex, Void* arg0) in D:\MyApp\obj\x64\Release\ilc\intermediate\MyApp.McgInterop\SharedStubs.g.cs:line 9431
   at McgInterop.ForwardComSharedStubs.Proc_TArg0__[TThis,TArg0](__ComObject __this, TArg0 dp, Int32 __targetIndex) in D:\MyApp\obj\x64\Release\ilc\intermediate\MyApp.McgInterop\SharedStubs.g.cs:line 290
   at Xamarin.Controls.Extensions.AddStrokes(InkPresenter inkPresenter, IList`1 strokes, Color color, Single width)
   at Xamarin.Controls.SignaturePadCanvasView.LoadPoints(Point[] loadedPoints)
   at SignaturePad.Forms.SignaturePadCanvasRenderer.OnPointsSpecified(Object sender, PointsEventArgs e)
   at SignaturePad.Forms.SignaturePadCanvasView.SetSignaturePoints(IEnumerable`1 points)
@mattleibow
Copy link
Contributor

Is this still happening? I just want to check your versions of SignaturePad and the version of the native compiler so I can test this issue.

@mseamari
Copy link
Author

mseamari commented May 23, 2018 via email

@mattleibow
Copy link
Contributor

mattleibow commented May 24, 2018

Hmm. This is interesting. Could you try the new preview version?
https://www.nuget.org/packages/Xamarin.Controls.SignaturePad.Forms/3.0.0-preview-77

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants