We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Crash in SfDiagram

Thread ID:

Created:

Updated:

Platform:

Replies:

114092 Oct 28,2013 01:42 PM Nov 6,2013 06:43 AM WinRT 7
loading
Tags: SfDiagram
Nicolas FARCET
Asked On October 28, 2013 01:42 PM

Hello,

I'm using you diagram and encountered a reproductible crash when I "Tap" on the background of the Diagram. The exception doesn't come directly from the control since it is thrown in VisualTreeHelper.GetParent. When I try to use the same method on the Grid and comment the diagram, it doesn't throw.
We are on Windows 8.1 and use the 11.3.0.32 version. I checked and I do not have the problem on a Windows 8 solution.

System.Exception: Défaillance irrémédiable (Exception de HRESULT : 0x8000FFFF (E_UNEXPECTED))
   at Windows.UI.Xaml.Media.VisualTreeHelper.GetParent(DependencyObject reference)
   at Syncfusion.UI.Xaml.Diagram.Utility.VisualTreeExtensions.FindVisualParent[T](DependencyObject dobj)
   at Syncfusion.UI.Xaml.Diagram.Controls.DragProvider.UpdateHandle(RoutedEventArgs e)
   at Syncfusion.UI.Xaml.Diagram.Controls.DragProvider.OnManipulationStarting(Object sender, ManipulationStartingRoutedEventArgs e)

"Défaillance Irrémédiable" is a "Catastrophic Failure" in english.
I created and attached a test app.

PS: I'm french, sorry for any mistakes ;)


SyncfusionTests_b3916c52.zip

Nicolas FARCET
Replied On October 29, 2013 05:15 AM

Another bit of information: I tried to retarget your SampleBrowser project to Windows 8.1 and I have a similar crash except that the exception is a AccessViolationException instead of a catastrophic failure.

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Syncfusion.SfDiagram.WinRT.DLL
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

The stack is the same:
Syncfusion.SfDiagram.WinRT.DLL!Syncfusion.UI.Xaml.Diagram.Utility.VisualTreeExtensions.FindVisualParent(Windows.UI.Xaml.DependencyObject dobj = {unknown}) C#  Syncfusion.SfDiagram.WinRT.DLL!Syncfusion.UI.Xaml.Diagram.Controls.DragProvider.UpdateHandle(Windows.UI.Xaml.RoutedEventArgs e = {unknown}) C#
Syncfusion.SfDiagram.WinRT.DLL!Syncfusion.UI.Xaml.Diagram.Controls.DragProvider.OnManipulationStarting(object sender = {unknown}, Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs e = {unknown}) C#




Ramya Thirugnanam [Syncfusion]
Replied On October 29, 2013 08:33 AM

Hi Nicolas,

Sorry for the inconvience caused.

We are able to repredue the reported issue "SfDiagram throws exeception while clicking on background".we are analyzing the root cause of this issue.we will update you with the status of the issue on October 30, 2013(one Business day).

Please let us know if you have any concerns,
Regards,
Ramya

Ramya Thirugnanam [Syncfusion]
Replied On October 30, 2013 11:31 PM

Hi Nicolas,

We are able to reproduce the reported issue "SfDiagram throws exeception while clicking on background", however it seems to be WinRT framework issue (Exception in VisualTreeHelper), but unable to predict the exact root cause or the scenario. However, we have considered this issue as a defect and we have logged an issue report to fix this. This fix will be available in our future WinRT service pack releases.

Please let us if you have any concerns,
Regards,
Ramya


Nicolas FARCET
Replied On October 31, 2013 03:37 AM

Hi,

Thank you for investigating this bug. I feared that it would not be easily fixed.

I don't think so, but is there any way to disable the DragProvider that launches the exception ? Maybe in a future release ?

Matt Fara
Replied On November 5, 2013 09:59 AM

I'm having the same problem, any workarounds?


Stuart Tresadern
Replied On November 5, 2013 04:59 PM

Hi, 

I have the same issue.
Any update on when it will be fixed ? or a possible workaround. Thanks in advance.

Ramya Thirugnanam [Syncfusion]
Replied On November 6, 2013 06:43 AM

Hi Nicolas,

 

Workaround:
To avoid the defect”SfDiagram throws exception while clicking on background”, Please set ManipulationMode of ScrollViewer inside SfDiagram to ‘None’. We have created a simple sample to resolve the reported issue. Please refer to the sample from the attachment.

Note:

This sample is just to avoid the exception. As an effect of this, zooming and panning operation cannot not be performed on SfDiagram with touch gesture.

 

Defect information:
We have fixed this reported issue by using alternative way to find the Parent of Dependency Object instead of using VisualTreeHelper.GetParent (dobj). This fix will be available in our future WinRT service pack releases.

Please let us know if you have any questions about this.

Regards,

Ramya

 



114092_917c9925.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;