-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell crash #207
Comments
version: cadquery-2.0RC1 py3.6 on macOS |
|
It is similar to the following issue: CadQuery/CQ-editor#94 I checked you code in linux and I get a
Regarding (1) I don't have access to a mac to debug this, so I will rely on the community help. It would be a good start if you could paste a backtrace from a debugger. Regarding (2) you'll have to wait till we wrap a newer CAD kernel (OCCT 7.3 or 7.4 - it is slowly coming). |
Similar issue: tpaviot/pythonocc-core#655 |
@adam-urbanczyk Does this help? From faulthandler with macOS 10.14.6 / python 3.6:
As is already suspected, it is yet another example of OCCT 6.9 crashing. I am all too familiar with these scenarios and often have to "outsource" the same operation to FreeCAD to perform without crashing (with its OCCT 7.x based CAD kernel) |
@adam-urbanczyk As a follow up here's the lldb backtrace with greater detail...
|
Thanks @michaelgale this is definitely helpful. |
@michaelgale I changed the pythonocc conda recipe and added a testcase triggering some random exception. Could you check if this solves the issue? It does seem to work on azure-ci . https://anaconda.org/CadQuery/pythonocc-core/0.18.2/download/osx-64/pythonocc-core-0.18.2-py37h39e3cac_0.tar.bz2 |
@l4u could you maybe check if the new builds solve the issue? |
@adam-urbanczyk I've not been able to build the Conda recipe above--even after editing the hardcoded Xcode v.9.4 in build.sh. I'm not terribly familiar with Conda build workflows--so it could be my own fault. Transcript below:
|
@michaelgale no need to build, just |
Any luck with further testing @l4u @michaelgale ? I don't have a mac so I need to rely on your help with closing this issue. |
I ran And I couldn't start cq-editor or import cadquery |
Thanks for trying @l4u . This is super weird, not sure how to continue. Could you share the output of In the meantime I will add more tests to the conda package and see how a new build goes. |
@adam-urbanczyk I installed your conda recipe above (python 3.6). The resulting conda environment works fine (can import cadquery, etc.) When executing the OP's code, it fails differently in that it drives the CPU 100% for around 2 minutes and then crashes with the following:
The lldb trace is as follows:
|
We had a very similar issue in TiGL: DLR-SC/tigl#651 It happened only on macOS together with the conda packages. We got the same error
The reason seemed to be mixing the conda compiler with the local macOS compiler. When I rebuild OCCT with the macOS compiler (not the conda one), the problem was fixed. The error happens only, when you try to catch an exception, which does not seem to work between the two different compilers. |
Thanks @rainman110 ! Which compiler version did you use in the end? |
I used the command line tools that macos installs automatically. |
Are any MacOS users from the community able to confirm if this issue has been fixed now that we're using the OCP bindings and running on OCCT 7.4.0+? |
example code
The text was updated successfully, but these errors were encountered: