Hello community, here is the log from the commit of package uranium for openSUSE:Factory checked in at 2020-02-18 13:29:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/uranium (Old) and /work/SRC/openSUSE:Factory/.uranium.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "uranium" Tue Feb 18 13:29:31 2020 rev:8 rq:775063 version:4.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/uranium/uranium.changes 2020-01-03 17:36:30.739281126 +0100 +++ /work/SRC/openSUSE:Factory/.uranium.new.26092/uranium.changes 2020-02-18 13:29:34.712722718 +0100 @@ -1,0 +2,6 @@ +Tue Feb 18 00:13:36 UTC 2020 - Stefan BrĂ¼ns <stefan.bru...@rwth-aachen.de> + +- Fix crash with libGeos 3.8.0, https://github.com/Ultimaker/Cura/issues/6771 + Check-validity-of-polygon.patch + +------------------------------------------------------------------- New: ---- Check-validity-of-polygon.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ uranium.spec ++++++ --- /var/tmp/diff_new_pack.skbtdm/_old 2020-02-18 13:29:35.328723916 +0100 +++ /var/tmp/diff_new_pack.skbtdm/_new 2020-02-18 13:29:35.332723924 +0100 @@ -1,7 +1,7 @@ # # spec file for package uranium # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ Source0: Uranium-%{version}.tar.xz # X-OPENSUSE-FIX fix cmake install directory. Patch1: fix-cmake-install.patch +# PATCH-FIX-UPSTREAM -- https://github.com/Ultimaker/Uranium/commit/78fa9ab2dd8ab117.patch +Patch2: Check-validity-of-polygon.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libArcus-devel @@ -48,6 +50,7 @@ %prep %setup -q -n Uranium-%version %patch1 -p1 +%patch2 -p1 %build # Hack, remove LIB_SUFFIX for 64bit, which is correct as uranium is pure python (i.e. noarch) ++++++ Check-validity-of-polygon.patch ++++++ >From 78fa9ab2dd8ab117a512e0ae3ce9d8cb93dc89d4 Mon Sep 17 00:00:00 2001 From: Ghostkeeper <rub...@tutanota.com> Date: Mon, 16 Dec 2019 15:27:13 +0100 Subject: [PATCH] Also check validity of polygon before using it Apparently this was going wrong with the libGeos version they are using with Python 3.8 (perhaps a newer version of Geos?) Fixes Ultimaker/Cura#6771. --- UM/Math/Polygon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UM/Math/Polygon.py b/UM/Math/Polygon.py index c7f3aef3d..6ac599f9c 100644 --- a/UM/Math/Polygon.py +++ b/UM/Math/Polygon.py @@ -183,7 +183,7 @@ def intersectsPolygon(self, other: "Polygon") -> Optional[Tuple[float, float]]: polygon_intersection = polygon_me.intersection(polygon_other) ret_size = None - if polygon_intersection: + if polygon_intersection and polygon_intersection.area > 0: ret_size = (polygon_intersection.bounds[2] - polygon_intersection.bounds[0], polygon_intersection.bounds[3] - polygon_intersection.bounds[1], )