Intel-Realsense-Hand-Toolkit-Unity icon indicating copy to clipboard operation
Intel-Realsense-Hand-Toolkit-Unity copied to clipboard

Null runtime error

Open jBachalo opened this issue 7 years ago • 14 comments

Hi Getting the following null error when I try and play

NullReferenceException: Object reference not set to an instance of an object DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:28) DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

jBachalo avatar Jul 12 '18 17:07 jBachalo

Hi

Sorry for lately reply.

Could you provide screen shot of hierachy in Unity ?

ReiiYuki avatar Sep 02 '18 04:09 ReiiYuki

Hi ReiiYuki, I have the same issue on Unity 2019.1.f1 both Windows 10 and Linux Ubuntu 18

image

image

robertofazio avatar May 14 '19 13:05 robertofazio

with Intel RealSense D435 FW 5.11.4

robertofazio avatar May 14 '19 13:05 robertofazio

Hi @robertofazio or @jBachalo , could you pull the branch called reiiyuki/fix/null-runtime and try that version of SDK ?

ps. I had fixed in #6 , but I am not sure is it work?

ReiiYuki avatar May 25 '19 16:05 ReiiYuki

Hello. I get the same bug listed here when I try the master branch. Im using Unity 2019.8 and have the D415.

what do you mean by "try that version of the SDK" for using the other branch? When I try the alternate branch I get the error

"Assets\IRToolkit\Scripts\DepthCameraManger.cs(31,24): error CS0103: The name 'sesssion' does not exist in the current context"

presentcreative avatar Jul 01 '19 05:07 presentcreative

Hello. I get the same bug listed here when I try the master branch. Im using Unity 2019.8 and have the D415.

what do you mean by "try that version of the SDK" for using the other branch? When I try the alternate branch I get the error

"Assets\IRToolkit\Scripts\DepthCameraManger.cs(31,24): error CS0103: The name 'sesssion' does not exist in the current context"

Ah that's my mistake.

I fixed it, could you try it again from the same branch?

ReiiYuki avatar Jul 01 '19 16:07 ReiiYuki

Hi, I've pulled the brach you mentioned but I got this issue

Exception: Session Initialize Failure! DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:30) DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

robertofazio avatar Jul 01 '19 16:07 robertofazio

well, the first bug I get is this one:

Assets\IRToolkit\Scripts\DepthCameraManger.cs(28,51): error CS1002: ; expected

That was there yesterday too but I had fixed it and forgot to mention. Then when I fix that I get:

Exception: Session Initialize Failure!
DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:30)
DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

The app is running but the camera never turns on.

Unity 2019.1.8 Realsense: D415 Windows 10

presentcreative avatar Jul 01 '19 16:07 presentcreative

I think it might be some problem with camera connectivity or driver.

Could you try run you camera with Intel Software or another application, does it work or not?

ReiiYuki avatar Jul 01 '19 16:07 ReiiYuki

I have a RealSense D435 Unity 2019.1 Windows 10 The camera works fine

robertofazio avatar Jul 01 '19 16:07 robertofazio

I am able to successfully run the Keijiro Unity + Realsense project here: https://github.com/keijiro/Rsvfx

I did notice that when I pull your branch it says it was last opened on an older version of Unity. Can you confirm it works with the current version?

presentcreative avatar Jul 01 '19 17:07 presentcreative

Oh I checked that. I'm sorry to say that this toolkit is work with REALSENSE SDK 1.x only, however D4xx is not compatible with SDK 1.0 that why SDK can't detect the camera.

Please try SDK2.0 https://software.intel.com/en-us/realsense/sdk .

However I don't have D4xx camera series so I can't make this toolkit support SDK2.0 😭

ReiiYuki avatar Jul 01 '19 17:07 ReiiYuki

I was also able to download and run this project: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity

presentcreative avatar Jul 01 '19 17:07 presentcreative

@ReiiYuki would it be helpful if I posted test .bag data from a D415?

presentcreative avatar Jul 03 '19 07:07 presentcreative