Field-Robotics-Japan / UnitySensors

ROS/ROS2 enabled Sensor models (Assets) on Unity
Apache License 2.0
193 stars 29 forks source link

The UNKNOWN_OBJECT_TYPE TextureToPointsJob.pixels has been deallocated. All containers must be valid when scheduling a job. #33

Closed hushuaibo closed 6 months ago

hushuaibo commented 1 year ago

The UNKNOWN_OBJECT_TYPE TextureToPointsJob.pixels has been deallocated. All containers must be valid when scheduling a job.

hushuaibo commented 12 months ago

When I wanted to use UnitySensors, this issue occurred “The UNKNOWN_OBJECT_TYPE TextureToPointsJob.pixels has been deallocated. All containers must be valid when scheduling a job.” and LivoxMid70 was unable to hit points on my own obstacles

Autumn60 commented 12 months ago

Thanks for the issue report.

This is a known issue, but one that is not reproducible and is difficult to fix. If you don't mind, it would be helpful to know your system environment.

Autumn60 commented 12 months ago

Several bugs have been fixed in https://github.com/Autumn60/UnitySensors/pull/1 Could you try "develop" branch?

RyodoTanaka commented 8 months ago

We need to represent @hushuaibo bug situation. If anyone meets same error, please report it.

Autumn60 commented 7 months ago

I have found a way to fix it, but I am currently working on other tasks and cannot submit a PR. So I will just describe how to fix it.

After calling AsyncGPUReadback.Request() Call AsyncGPUReadback.WaitAllRequests()