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. Image for the cookie policy date

Crash while cropping

I have an ImageEditor in an sfRibbon. When I programmatically activate the cropping tool, and then (without finishing the cropping) click on "file" on the ribbon, the app crashes:

System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: height
   at Windows.Foundation.Rect..ctor(Double x, Double y, Double width, Double height)
   at Syncfusion.UI.Xaml.ImageEditor.CroppingPanel.MeasureOverride(Size availableSize)

To reproduce the error, start the uploaded code and click "Facebook post". Then click on "file".

Is there a solution to this?
I tried to programatically close the cropping tool - that does not seem possible.

Thanks in advance.
The Syncfusion team was always very helpful.

Attachment: ImageEditor_e4084373.zip

2 Replies

MK Muneesh Kumar G Syncfusion Team March 4, 2019 12:46 PM UTC

Hi Christian,  
Greetings from Syncfusion, 
We were able to reproduce the issue “ArgumentOutOfRangeException thrown when changing the view with cropping handles” and we confirm this as a bug and logged a defect report. You can keep track of the bug from the feedback portal below. 
The fix for the reported issue will be available on 13th March ,2019. 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
Muneesh Kumar G. 

SA Santhiya Arulsamy Syncfusion Team March 14, 2019 03:56 AM UTC

 Hi Christian,  
Thanks for your patience.  
We have fixed the reported issue “ArgumentOutOfRangeException thrown when changing the view with cropping handles.” and the patch for the same can be downloaded from the below link.  
Please find the patch setup from the below location.  
Please find the patch assemblies from the below location.  
Please find the NuGet from the below location.  
Assembly Version: 
Please note that we have created this patch for version specifically to resolve the issue reported in the forum 143063. If you have received other patches for the same version for other products, please apply all patches in the order received. This fix will be included in our upcoming Volume 1 release which is scheduled to be roll out on mid of March 2019.  
Santhiya  A

Live Chat Icon For mobile
Up arrow icon