Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Memory Leak? How to fix loosing memory with python generator?

    Cinema 4D SDK
    python macos 2024
    3
    5
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mikeudinM
      mikeudin
      last edited by

      Hello guys!
      I using this nice appoach to convert eps text data to spline using AI (Adobe Illustrator) importer. But it seems there is some memory leak because the amount of memory increases every time. How it can be fixed?
      Here is a test file. Thank you!
      gen_eps2.c4d

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      DunhouD 1 Reply Last reply Reply Quote 0
      • DunhouD
        Dunhou @mikeudin
        last edited by

        Hi @mikeudin
        Not an answer but a question, how do you get the Illustrator path and convert to text data?

        Cheers~
        DunHou

        https://boghma.com
        https://github.com/DunHouGo

        mikeudinM 1 Reply Last reply Reply Quote 0
        • mikeudinM
          mikeudin @Dunhou
          last edited by

          @Dunhou You must use text shaping library to get glyphs outlines and convert it to bezier curves.

          Checkout my python tutorials, plugins, scripts, xpresso presets and more
          https://mikeudin.net

          DunhouD 1 Reply Last reply Reply Quote 0
          • DunhouD
            Dunhou @mikeudin
            last edited by

            Thanks @mikeudin , I'll take a look at this, is this means uharfbuzz or something like this?

            https://boghma.com
            https://github.com/DunHouGo

            1 Reply Last reply Reply Quote 0
            • M
              m_adam
              last edited by

              Hi sorry for not answering this topic earlier, I finally found some time to investigate and sadly there is nothing you can do in your side, this memory leak is coming from the Illustrator Importer and can be big, since all the points and tangents of the file are leaking. A fix will be available in the next update.

              Thanks for the report !
              Cheers,
              Maxime.

              MAXON SDK Specialist

              Development Blog, MAXON Registered Developer

              1 Reply Last reply Reply Quote 0
              • First post
                Last post