librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Unity crashes when playback recorded file

Open frenchtouchXR opened this issue 8 years ago • 24 comments

Hello,

I work on Unity/PC with the latest version (V2.15) of the wrapper.

When I record a file (record mode) and then play it back. Unity crashes.

It didn't happen with previous versions.

What do you think about it ?

Best regards

frenchtouchXR avatar Aug 24 '18 21:08 frenchtouchXR

I updated to the 2.16 version and upgraded the RS firmwares to 5.10.3.0. I can record but the playback crashes everytime in Unity. This is quite a problem cos I would like to use the post production effects that are integrated since the 2.15 version. Only the 2.14 works properly. Tried it on 2 different PC (windows 8.1 and 10). I played the recorded .bag file on the native RS viewer and it worked well. I think the problem could come from the Unity playback system.

frenchtouchXR avatar Sep 08 '18 23:09 frenchtouchXR

Please help :(

frenchtouchXR avatar Sep 11 '18 19:09 frenchtouchXR

[Realsense Customer Engineering Team Comment] Hi @frenchtouchXR,

This issue can be reproduced. Will further check internally.

thanks

frenchtouchXR avatar Sep 14 '18 15:09 frenchtouchXR

Hi,

Any news of a patch so far ?

Best

frenchtouchXR avatar Sep 24 '18 17:09 frenchtouchXR

+1 for that, having the same issue. Unity 2018.1.6f1

velenoise avatar Sep 28 '18 17:09 velenoise

I tried again with the 2018.1.6f1 version. The problem is still the same. Is it possible to do something ?

frenchtouchXR avatar Sep 29 '18 23:09 frenchtouchXR

[Realsense Customer Engineering Team Comment] @matkatz, Do you have any update about this issue?

Just tried downloading the source for version 2.14 and compiled the unitypackage, still the same issue.

velenoise avatar Oct 01 '18 17:10 velenoise

[Realsense Customer Engineering Team Comment] Hi @velenoise,

What's your unity/firmware versions and test steps? record and playback ros bag file both in Unity? I didn't see this issue on 2.14.

This issue can be reproduced, we will provide a fix soon.

matkatz avatar Oct 02 '18 08:10 matkatz

@RealSense-Customer-Engineering

I'm on Unity 2018.1.6f1, using firmware 05.10.03.00. I had tested previously with a recording made on Realsense Viewer, but now I tested it with a recording made in Unity and it crashed as well, even though it seems that it played back more before crashing.

velenoise avatar Oct 02 '18 17:10 velenoise

@matkatz Do you have any time estimate on this fix? I'm currently working on a project during part of which I won't have access to the physical devices, so the ability to use the recordings would be essential in my workflow. Is there anything we can do to help on this as well?

velenoise avatar Oct 02 '18 17:10 velenoise

@RealSense-Customer-Engineering just an FYI: reinstalled the SDK v2.14.1 and playback is working properly now, so I can go with that until we have the correction for the new versions

velenoise avatar Oct 03 '18 15:10 velenoise

@velenoise You're right. The problem is I would really need to use the filters. They're integrated since the 2.15 version. :/

frenchtouchXR avatar Oct 03 '18 15:10 frenchtouchXR

I Simply would like To tell I opened this thread 2 month ago. Do you have the release date of the patch ? Or is there another problem ?

frenchtouchXR avatar Oct 21 '18 09:10 frenchtouchXR

I had the same problem. In the latest release the issue seems to be fixed. I downloaded version 2.16.2.0, compiled it, started a scene in Unity, loaded a recorded .bag-file, it showed the content and didn't crash anymore. Thanks a lot for fixing that!

NeuroRanger avatar Oct 28 '18 07:10 NeuroRanger

[Realsense Customer Engineering Team Comment] Hi @frenchtouchXR,

How does v2.16.2 work for you?

Hi,

The record and playback seems to work but the RSdeviceinspector.cs script doesn't seems to work.

The real interest since version 2.15 is playing with filters. If we can't use them. We came back to 2.14 version.

frenchtouchXR avatar Oct 30 '18 19:10 frenchtouchXR

I opened the RSdeviceinspector.cs script.

Inside there's a fonction : private IEnumerator WaitForDevice()

And there is this line :

//rsdevice.OnStart += onStartStreaming;

I just reactivated this lign. Now it works.

frenchtouchXR avatar Oct 30 '18 19:10 frenchtouchXR