Skip to content

[BUG] nanobind messages #2024

Open
Open
@yurivict

Description

@yurivict

Environment

**Operating System: FreeBSD 14.2
**Version / Commit SHA: 12.0.1
**Other: nanobind-2.4.0

Describe the bug

The first example from this page prints nanobind messages:

$ python3.11 x.py 
nanobind: leaked 1 instances!
 - leaked instance 0x10dc3cf17e90 of type "openvdb.Transform"
nanobind: leaked 1 keep_alive records!
nanobind: leaked 2 types!
 - leaked type "Axis"
 - leaked type "openvdb.Transform"
nanobind: leaked 23 functions!
 - leaked function "postTranslate"
 - leaked function "preRotate"
 - leaked function "preTranslate"
 - leaked function "worldToIndex"
 - leaked function "__init__"
 - leaked function "postShear"
 - leaked function "__getstate__"
 - leaked function "voxelSize"
 - leaked function ""
 - leaked function "__ne__"
 - leaked function "preShear"
 - ... skipped remainder
nanobind: this is likely caused by a reference counting issue in the binding code.

To Reproduce

  1. Build
  2. Run example

Expected behavior

(A clear and concise description of what you expected to happen.)

Additional context

(Add any other context about the problem here.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions