Unity 2017.3.1f1 (64 bit) crashes every single time when displaying colorised pointcloud data
| Required Info | |
|---|---|
| Camera Model | D415 |
| Firmware Version | 05.08.15.00 |
| Operating System & Version | Win 10 |
| Platform | PC |
| SDK Version | 2.0-development |
Issue Description
Crash occurs around 30 seconds after running the game. Occurs only when displaying pointcloud data with colorised shaders. Issue only occurs in the development branch.
Hi @ashwinjaishanker I have reproduced this issue and we are looking into it. From first glance it seems like a very rapid allocation and deallocation of native objects that is causing memory leak, and eventually a crash. Will try to resolve ASAP, but in the meanwhile you should not use the colorized point-cloud feature.
Is there any update on this? We are having the same issue. Below is the stack trace from the Unity log file: ========== OUTPUTING STACK TRACE ==================
0x00007FFBE3188EC2 (realsense2) rs2_query_sensors
0x00007FFBE31873D2 (realsense2) rs2_query_sensors
0x00007FFBE3188C73 (realsense2) rs2_query_sensors
0x00007FFBE318C590 (realsense2) rs2_query_sensors
0x00007FFBE3155C2D (realsense2) rs2_query_sensors
0x000000003CDA602F (Mono JIT Code) (wrapper managed-to-native) Intel.RealSense.NativeMethods:rs2_process_frame (intptr,intptr,object&)
0x000000003CDA5AF6 (Mono JIT Code) Intel.RealSense.PointCloud:Calculate (Intel.RealSense.Frame)
0x000000003CDA1B57 (Mono JIT Code) [C:\Users\epilnock\Documents\librealsense\wrappers\unity dev\Assets\RealSenseSDK2.0\Scripts\PointCloudGenerator.cs:52] PointCloudGenerator:OnFrames (Intel.RealSense.FrameSet)
0x000000003CDA173B (Mono JIT Code) [C:\Users\epilnock\Documents\librealsense\wrappers\unity dev\Assets\RealSenseSDK2.0\Scripts\RealSenseDevice.cs:151] RealSenseDevice:HandleFrameSet (Intel.RealSense.FrameSet)
0x000000003CDA0F4F (Mono JIT Code) [C:\Users\epilnock\Documents\librealsense\wrappers\unity dev\Assets\RealSenseSDK2.0\Scripts\RealSenseDevice.cs:163] RealSenseDevice:ProcessFrames (Intel.RealSense.FrameSet)
0x000000003AD34B96 (Mono JIT Code) [C:\Users\epilnock\Documents\librealsense\wrappers\unity dev\Assets\RealSenseSDK2.0\Scripts\RealSenseDevice.cs:200] RealSenseDevice:Worker_DoWork (object,System.ComponentModel.DoWorkEventArgs)
0x000000003AD342CF (Mono JIT Code) System.ComponentModel.BackgroundWorker:OnDoWork (System.ComponentModel.DoWorkEventArgs)
0x000000003AD3390C (Mono JIT Code) System.ComponentModel.BackgroundWorker:ProcessWorker (object,System.ComponentModel.AsyncOperation,System.Threading.SendOrPostCallback)
0x000000003AD33551 (Mono JIT Code) (wrapper runtime-invoke)
========== END OF STACKTRACE ===========
Hi @dorodnic,
Is there any update regarding this issue? An approximate timeline? I'm using the fix outlined here for now.
Hi @ashwinjaishanker I apologise but this feature is not yet ready for production. I tried the w/a you mentioned and some other approaches but I think that using particle system for point-cloud was an architectural mistake. We discuss rolling-back and trying again with a mesh updated through a shader.
Thank you for the update, @dorodnic
A mesh updated through a shader would be very interesting. Look forward to it. Thanks.
[Realsense Customer Engineering Team Comment] @ashwinjaishanker The issue is fixed and merged into development branch, the point cloud is now displayed in dedicated scene. Please have a test and let me know the feedback, thank you.
[Realsense Customer Engineering Team Comment] @ashwinjaishanker Any update? if not I will close this ticket.