GithubHelp home page GithubHelp logo

Comments (2)

bandang0 avatar bandang0 commented on June 14, 2024

Hi,
According to the thread 0 stack the crash occured upon loading of the FreeCAD module, right when theia imports it (lines 106-7 of theia.main.py). This also occurs on FreeCAD 0.16 if you do:

>>> import Part
>>> import FreeCAD

instead of importing FreeCAD before Part.

On FreeCAD 0.16, the segfaults are avoided by importing in the right order.

It is thus possible that, theia having been designed and tested with FreeCAD 0.16, it be (import-wise in the case of this segfault) incompatible with 0.17.

Furthermore, in FreeCAD 0.17 the release notes state important changes to the Python API:

A word of caution to users of v0.16: there has been tremendous changes to the PartDesign workbench, with the introduction of the Part and Body containers. A Body is now mandatory to create PartDesign features. When trying to edit a document made in v0.16, you will be prompted to migrate it automatically. If your model was done with a mix of PartDesign features and Part objects, the migration process will most certainly leave your model in a broken state! So if you are not willing to migrate it manually (expect having to delete some stuff and recreate it), it would be best to keep a working version of v0.16 on the side to edit your old documents

Thus it is possible that the overall approach of writing a fcstd file with the FreeCAD API is broken by this new 0.17 release, as suggested by @philippeg-ligo in another discussion.

Until further attention can be given to how to make theia compatible (import-wise and cad-interface-wise) with 0.17, I suggest you roll back to 0.16 and give it a try.

from theia.

jinbeyamamoto avatar jinbeyamamoto commented on June 14, 2024

Raphael

Which Linux did you use to develop theia? I want to try out theia first.
Is anybody working on theia now? I.e., will theia be updated to work with newer version of FreeCAD?

Thank you very much

from theia.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.