librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

UnityEditor's mouse drag freezes when I repeat play and stop in Unity

Open unagiHuman opened this issue 7 years ago • 13 comments

Required Info
Camera Model D400
Firmware Version 05.11.06.250
Operating System & Version Win 10
Platform PC
SDK Version 2.2.4
Language unity
Segment others

Issue Description

In Unity Wrapper project, if Unity is repeatedly played and stopped in Unity scene including RsDevice, UnityEditor will not be able to operate with mouse drag or Unity will crash.

How to reproduce

  1. Install UnityWrapper
  2. Open RealsenseSDK2.0 / Scenes / Samples / PointCloudProcessingBlocks
  3. Connect Realsense D400 and repeat playback and stop of the scene of UnityEditor.
  4. Operate with mouse drag. For example, dragging a GameObject on the Hierarchy, or attaching a GameObject to the Inspector.
  5. The phenomenon that mouse dragging can not be performed or Unity crashes occurs.

unagiHuman avatar Aug 01 '19 07:08 unagiHuman

Sometimes I also has same problem. Could you try to update Unity or RealSense SDK version?

wodndb avatar Aug 16 '19 05:08 wodndb

I updated the librealsense version to 2.25, but a similar Unity freeze occurred. The version of Unity I tried when I reported above is 2019.1.13, but the phenomenon occurs regardless of the Unity version.

unagiHuman avatar Aug 19 '19 09:08 unagiHuman

Same problem. The people at Nuitrack had the same problem with librealsence. https://community.nuitrack.com/t/unity-crashes-when-performing-a-drag-and-drop-operation/852/24

Ricardo-Athayde avatar Aug 29 '19 14:08 Ricardo-Athayde

Same problem. The people at Nuitrack had the same problem with librealsence. https://community.nuitrack.com/t/unity-crashes-when-performing-a-drag-and-drop-operation/852/24

I looked at the thread but it seems the same phenomenon. Moreover, NuiTrack seems to fix the bug by identifying the cause! I want Librealsense's UnityWrapper to fix it as well.

ohtaisao avatar Aug 30 '19 05:08 ohtaisao


Hi @unagiHuman,

The issue is currently under investigation.Updates will be posted as soon as investigation findings become available.

Hi @unagiHuman,

The issue is currently under investigation.Updates will be posted as soon as investigation findings become available.

When will the issue raised in this issue be resolved? I hope it will be solved someday.

unagiHuman avatar Dec 24 '19 04:12 unagiHuman


Hi @unagiHuman,

Your request has been reported to our Program Office and they deal with this matter.We are sorry for the delay.

Thank you!

This is a major issue for us as well, any update on a fix for this? Does anyone have any work around? It is currently the main thing preventing us from using realsense cameras for any future projects, unless we can allocate time to debugging and fixing the issue ourselves.

stents avatar Mar 27 '20 04:03 stents


Hi all,

The fix request is currently being processed. We apologize for the inconvenience this may have caused.

Thank you!

@unagiHuman @stents We didn't see this issue with the latest SDK v2.39. Could you please have a try? Looking forward to your update. Thanks!

RealSenseSupport avatar Oct 30 '20 05:10 RealSenseSupport

@unagiHuman @stents Any update from your side? Thanks!

RealSenseSupport avatar Nov 05 '20 01:11 RealSenseSupport

@unagiHuman @stents Sorry that we didn't hear from you for weeks. Will close the issue at this point. Please feel free to create new one if you still have questions or issues. Thanks!

RealSenseSupport avatar Nov 16 '20 01:11 RealSenseSupport

fix pls

WarpRomo avatar Dec 05 '22 08:12 WarpRomo