https://bugs.winehq.org/show_bug.cgi?id=31350
--- Comment #6 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 62927 --> https://bugs.winehq.org/attachment.cgi?id=62927 patch
this app has a more or less similar crash: http://www.valil.com/winfx/RTM/Chess/APP/Valil.Chess.WinFX.bin.zip
The attached patch fixes this. Tests are difficult as win7 on testbot and (>win7) and my ''real'' win7 laptop return different things, but i see if i can fix up a useful test
crash log:
0009:fixme:ntdll:NtSecureConnectPort (0x32b418,L"\BaseNamedObjects\FontCachePort3.0.0.0",0x32b400,(nil),0x1b3430,(nil),0x32b414,0x930364,0x32b40c),stub! 0009:fixme:dwmapi:DwmGetTransportAttributes (0x32d1fc, 0x32d204, 0x32d200) stub 0009:fixme:wer:WerRegisterMemoryBlock (0x5418ebf0 6144) stub 0009:fixme:wer:WerRegisterMemoryBlock (0x5418ebe8 4) stub 0009:fixme:dwmapi:DwmGetTransportAttributes (0x32ddb8, 0x32ddc0, 0x32ddbc) stub
Unhandled Exception: System.Windows.Markup.XamlParseException: 'Canvas' object cannot be added to 'Viewbox'. Exception has been thrown by the target of an inv ocation. Error at object 'System.Windows.Controls.Canvas' in markup file 'Valil.Chess.WinFX;component/MainPage.xaml' Line 126 Position 6. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The method or operation is not implemented. at System.Windows.Media.MediaSystem.Startup(MediaContext mc) at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher) at System.Windows.Media.MediaContext.From(Dispatcher dispatcher) at System.Windows.Media.Visual.VerifyAPIReadWrite() at System.Windows.Media.VisualCollection.VerifyAPIReadWrite(Visual other) at System.Windows.Media.VisualCollection.Add(Visual visual) at System.Windows.Controls.Viewbox.set_InternalChild(UIElement value) at System.Windows.Controls.Viewbox.set_Child(UIElement value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Windows.Markup.XamlTypeMapper.SetInternalPropertyValue(ParserContext pc, Object rootElement, PropertyInfo pi, Object target, Object value) at System.Windows.Markup.BamlRecordReader.AddToContentProperty(Object container, Object contentProperty, Object value) --- End of inner exception stack trace --- at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)