Skip to content

Multiple calls to create_scene() throw libc++abi error #5

@violettinged

Description

@violettinged

In my particular application I need to perform many intersections, each with a different mesh. After recreating the scene a few hundred times the programm quits with the error message libc++abi: cannot create thread specific key for __cxa_get_globals(). A MWE would be:

import raybender as rb

points = [[0,0,0],[1,0,0],[0,1,0]]
triangles = [0,1,2]

for i in range(1000):
  scene = rb.create_scene()  
  rb.add_triangle_mesh(scene, points, triangles)
  rb.release_scene(scene)
  print(i)

The code is run in a conda virtual environment on MacOS (M2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions