Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2022-03-04 12:11:11 +0300
committerGhostkeeper <rubend@tutanota.com>2022-03-04 12:11:11 +0300
commit6cb637ed77205bb9603c969d987944b302958e8f (patch)
tree646e7b17552278cb89531b98e34bf2f63fc73bdf
parent40996550045ee690592549716ec43e0b69738756 (diff)
Add debug print statements around imports of Sip packagesCURA-8640_add_debug_prints
These seem to crash on MacOS. I want to know which of them causes the crash. And to verify that it's indeed these. However at this stage we're not getting any log output yet because the logger hasn't been imported yet. We also don't get normal prints. Print to stderr, because that works. Do not merge to master.
-rw-r--r--cura/Arranging/Nest2DArrange.py3
-rwxr-xr-xplugins/3MFReader/ThreeMFReader.py3
-rw-r--r--plugins/3MFWriter/ThreeMFWriter.py3
-rwxr-xr-xplugins/CuraEngineBackend/CuraEngineBackend.py3
-rw-r--r--plugins/CuraEngineBackend/StartSliceJob.py3
5 files changed, 15 insertions, 0 deletions
diff --git a/cura/Arranging/Nest2DArrange.py b/cura/Arranging/Nest2DArrange.py
index 43d4d7f8a8..df79cc528b 100644
--- a/cura/Arranging/Nest2DArrange.py
+++ b/cura/Arranging/Nest2DArrange.py
@@ -2,7 +2,10 @@
# Cura is released under the terms of the LGPLv3 or higher.
import numpy
+import sys
+print("About to import pynest2d", file = sys.stderr)
from pynest2d import Point, Box, Item, NfpConfig, nest
+print("Completed importing pynest2d", file = sys.stderr)
from typing import List, TYPE_CHECKING, Optional, Tuple
from UM.Application import Application
diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py
index e8b6a54e46..66307c3671 100755
--- a/plugins/3MFReader/ThreeMFReader.py
+++ b/plugins/3MFReader/ThreeMFReader.py
@@ -5,7 +5,10 @@ import os.path
import zipfile
from typing import List, Optional, Union, TYPE_CHECKING, cast
+import sys
+print("About to import pySavitar", file = sys.stderr)
import pySavitar as Savitar
+print("Completed importing pySavitar", file = sys.stderr)
import numpy
from UM.Logger import Logger
diff --git a/plugins/3MFWriter/ThreeMFWriter.py b/plugins/3MFWriter/ThreeMFWriter.py
index a1eb969338..bb119048fe 100644
--- a/plugins/3MFWriter/ThreeMFWriter.py
+++ b/plugins/3MFWriter/ThreeMFWriter.py
@@ -15,7 +15,10 @@ from cura.Snapshot import Snapshot
from PyQt6.QtCore import QBuffer
+import sys
+print("About to import pySavitar", file = sys.stderr)
import pySavitar as Savitar
+print("Completed importing pySavitar", file = sys.stderr)
import numpy
import datetime
diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py
index d7ed5fac21..a679062147 100755
--- a/plugins/CuraEngineBackend/CuraEngineBackend.py
+++ b/plugins/CuraEngineBackend/CuraEngineBackend.py
@@ -31,7 +31,10 @@ from cura.Utils.Threading import call_on_qt_thread
from .ProcessSlicedLayersJob import ProcessSlicedLayersJob
from .StartSliceJob import StartSliceJob, StartJobResult
+import sys
+print("About to import pyArcus", file = sys.stderr)
import pyArcus as Arcus
+print("Completed importing pyArcus", file = sys.stderr)
if TYPE_CHECKING:
from cura.Machines.Models.MultiBuildPlateModel import MultiBuildPlateModel
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py
index 4c38c16f28..af1e6522d1 100644
--- a/plugins/CuraEngineBackend/StartSliceJob.py
+++ b/plugins/CuraEngineBackend/StartSliceJob.py
@@ -7,7 +7,10 @@ from enum import IntEnum
import time
from typing import Any, cast, Dict, List, Optional, Set
import re
+import sys
+print("About to import pyArcus", file = sys.stderr)
import pyArcus as Arcus # For typing.
+print("Completed importing pyArcus", file = sys.stderr)
from PyQt6.QtCore import QCoreApplication
from UM.Job import Job