Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Null runtime error #2

Open
jBachalo opened this issue Jul 12, 2018 · 14 comments
Open

Null runtime error #2

jBachalo opened this issue Jul 12, 2018 · 14 comments

Comments

@jBachalo
Copy link

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)

@ReiiYuki
Copy link
Owner

ReiiYuki commented Sep 2, 2018

Hi

Sorry for lately reply.

Could you provide screen shot of hierachy in Unity ?

@robertofazio
Copy link

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

image

image

@robertofazio
Copy link

with Intel RealSense D435 FW 5.11.4

ReiiYuki added a commit that referenced this issue May 25, 2019
From the issue #2 , in my opinion the creation process of session is not complete so this can explain why `NullReferenceException` is occured.

What I have done to fix this is to make sure the session initilization step is completed, before create `SenseManager`

By the way, I don't have any Intel Realsense device with me so if you have Intel Realsense device, I need your support to pull this branch and try is it work? Because I have never seen this error before too, so I can't reproduce it by myself.

Thank for your further support 😄
@ReiiYuki
Copy link
Owner

ReiiYuki commented May 25, 2019

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?

@presentcreative
Copy link

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"

@ReiiYuki
Copy link
Owner

ReiiYuki commented Jul 1, 2019

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?

@robertofazio
Copy link

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)

@presentcreative
Copy link

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

@ReiiYuki
Copy link
Owner

ReiiYuki commented Jul 1, 2019

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?

@robertofazio
Copy link

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

@presentcreative
Copy link

presentcreative commented Jul 1, 2019

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?

@ReiiYuki
Copy link
Owner

ReiiYuki commented Jul 1, 2019

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 😭

@presentcreative
Copy link

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

@presentcreative
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants