OCP icon indicating copy to clipboard operation
OCP copied to clipboard

Tracing calls into OCP

Open 42sol-eu opened this issue 2 years ago • 3 comments
trafficstars

Hi @adam-urbanczyk, we would like to suggest additional tracing / logging calls in this or another fitting library between CadQuery/Build123d and OCCT. The idea is to catch and investigate strange behaviour in OCCT and getting good examples to either build OCCT fixes or improve the usage of CadQuery and Build123d.

I would be willing to support or contribute the work. I am able to do it in Python or C++ being a Software-Engineer since 20 Year. My opinion is that it would be best done in Python though I am open for other suggestions.

The tracing and logging should be definitively default off and only be used if an error occurs.

What is you take on that?

Thanks for all your great work and contribution Sincerely from Germany Felix

42sol-eu avatar Nov 21 '23 07:11 42sol-eu

Hi there, weird repo for this issue. If you need tracing in Python then use trace from the standard lib or something like this. Am I missing something?

adam-urbanczyk avatar Nov 22 '23 15:11 adam-urbanczyk

Hi Adam, you are right my issue is more a message than an issue.

We are trying to investigate some weird cases in the OCCT library where users reported cases of library failures.

On first glimpse the 'hunter' package could be exactly what we need.

I will investigate this further. Thanks Felix

P.S. if you're interested in some of the details we created a occt channel on the CadQuery discord server

42sol-eu avatar Nov 24 '23 08:11 42sol-eu

BTW: if you find OCCT issues, @lorenzncode has experience with submitting them to the OCCT tracker. AFAIR it is preferred to provide MREs with draw.exe and use .brep files to store the direct inputs.

adam-urbanczyk avatar Nov 26 '23 11:11 adam-urbanczyk