isl-org / isl-org/Open3D

call t::geometry::PointCloud::FromLegacy occurs error

Open
#6,036 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Describe the issue

Hi guys! when I t::geometry::PointCloud::FromLegacy in my code, it occurs memory error. I don't know what's wrong with my code.

code is following:
void func(std::vector o3dPointsHighacuPsrt4Rec)
{
auto o3d_tensor_L =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[0], core::Float64, open3d::core::Device("CUDA:0"));
auto o3d_tensor_M =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[1], core::Float64, open3d::core::Device("CUDA:0"));
auto o3d_tensor_R =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[2], core::Float64, open3d::core::Device("CUDA:0"));
}
when it run out of this function. It occurs memory error.
any reply will be appreciate!

### Steps to reproduce the bug

```python
code is following:
void func(std::vector o3dPointsHighacuPsrt4Rec)
{
auto o3d_tensor_L =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[0], core::Float64, open3d::core::Device("CUDA:0"));
auto o3d_tensor_M =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[1], core::Float64, open3d::core::Device("CUDA:0"));
auto o3d_tensor_R =
t::geometry::PointCloud::FromLegacy(*o3dPointsHighacuPsrt4Rec[2], core::Float64, open3d::core::Device("CUDA:0"));
}
when it run out of this function. It occurs memory error.
```

### Error message

Unhandled exception at 0x00007FFA01D8F6A9 (ntdll.dll) (in PclCloudViewer.exe): 0xC0000374: The heap is corrupted. (Parameter: 0x00007FFA01DF97F0).

### Expected behavior

_No response_

### Open3D, Python and System information

```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.10
- Open3D version: 0.17.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): cmake 3.24
```

### Additional information

the debug infomation shows that code is dump when run t::geometry::pointcloud::~PointCloud() .
free memory dump. but I still don't know how to solve this problem

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.