Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS crashes when using KinectSDK background removal #28

Open
pop13-13 opened this issue Jul 12, 2020 · 13 comments
Open

OBS crashes when using KinectSDK background removal #28

pop13-13 opened this issue Jul 12, 2020 · 13 comments

Comments

@pop13-13
Copy link

pop13-13 commented Jul 12, 2020

Using the KinectSDK background removal option crashes OBS, crash log attached.

Crash 2020-07-12 16-33-26.txt

@SirLynix
Copy link
Owner

This is a weird one. I had it myself a few weeks ago but it never showed up again. Is it happening everytime you try to use the KinectSDK background? Could you try to put color, color with body greenscreen and color with depth greenscreen sources at the same time? (it will requires the same info from the Kinect which are used by the KinectSDK background removal).

@pop13-13
Copy link
Author

pop13-13 commented Jul 14, 2020 via email

@SirLynix
Copy link
Owner

Hi!

Could you give this version a try? I know it's a release for Azure Kinect but it also includes some fixes since obs-kinect 0.3 RC2.

@pop13-13
Copy link
Author

pop13-13 commented Oct 21, 2020 via email

@SirLynix
Copy link
Owner

Hello, did you try the version I sent you? Does it work?

@pop13-13
Copy link
Author

pop13-13 commented Nov 12, 2020 via email

@pop13-13
Copy link
Author

pop13-13 commented Nov 17, 2020 via email

@PigeonRubbishStudios
Copy link

Having the same issue. Can post crash log if necessary. Let me know!

@PigeonRubbishStudios
Copy link

PigeonRubbishStudios commented Nov 24, 2020

Ok let me change my previous statement: here's my crash log.

However, I did find a semi fix (maybe). When I select Background Removal I had a few seconds before the app crashed. In that few seconds I was able to hit ok in the Kinect source properties to apply those changes I had made. OBS proceeded to crash, but, when I opened OBS back up, the background removal had been applied and I can no longer replicate the crash even if I make a new scene and add a new Kinect Source. Still is a weird issue but hopefully this works to "fix" your issue.

Also, I am not using the Azure Kinect version plugin and I am using a 360 Kinect.

Crash 2020-11-24 10-02-59.txt

@SirLynix
Copy link
Owner

It's quite interesting to know that, thanks for the info. I'll try to work on it asap (but i'm quite busy this week).

@zxcvbs
Copy link

zxcvbs commented Aug 1, 2022

Same problem, fixed applying changes before crash

@SebastienGllmt
Copy link

SebastienGllmt commented Sep 19, 2022

I seem to be having a similar issue

First issue

I looked at the logs and it said

[obs-kinect] [azure] SDK warning: is_fw_version_compatable(). Firmware version for RGB is 1.6.102. Consider upgrading to 1.6.110 or newer. (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\depth\depth.c:88)

[obs-kinect] [azure] SDK warning: is_fw_version_compatable(). Firmware version for Depth is 1.6.75. Consider upgrading to 1.6.79 or newer. (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\depth\depth.c:88)

so I followed the instructions for upgrading my firmware.

Second issue

However, now I get a new error

[obs-kinect] [azure] SDK error: dynlib_create(). Failed to load DLL depthengine_2_0 with error code: 126 (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\dynlib\dynlib_windows.c:115)

[obs-kinect] [azure] SDK error: deloader_init_once(). Failed to Load Depth Engine Plugin (depthengine). Depth functionality will not work (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\deloader\deloader.cpp:75)

[obs-kinect] [azure] SDK error: deloader_init_once(). Make sure the depth engine plugin is in your loaders path (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\deloader\deloader.cpp:76)

[obs-kinect] [azure] SDK error: deloader_depth_engine_create_and_initialize(). Failed to load depth engine plugin (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\deloader\deloader.cpp:113)

[obs-kinect] [azure] SDK error: depth_engine_start_helper(). Depth engine create and initialize failed with error code: 108. (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\dewrapper\dewrapper.c:154)

[obs-kinect] [azure] SDK error: deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper() (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\dewrapper\dewrapper.c:160)

[obs-kinect] [azure] SDK error: depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread() (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\dewrapper\dewrapper.c:194)

[obs-kinect] [azure] SDK warning: capturesync_add_capture(). Capture Error Detected, Depth  (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\capturesync\capturesync.c:200)

[obs-kinect] [azure] SDK error: dewrapper_start(). Depth Engine thread failed to start (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\dewrapper\dewrapper.c:552)

[obs-kinect] [azure] SDK error: dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start() (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\depth\depth.c:398)

[obs-kinect] [azure] SDK error: cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming() (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\depth_mcu\depth_mcu.c:359)

[obs-kinect] [azure] SDK error: depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063 (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\depth_mcu\depth_mcu.c:362)

[obs-kinect] [azure] SDK error: depth_start(device->depth, config) returned failure in k4a_device_start_cameras() (in C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2202\k\k4a\v1.4.1\source\k4a\src\sdk\k4a.c:895)

[obs-kinect] [azure] Failed to start cameras!

Maybe this error isn't surprising because 1.0rc1 of this library includes all the dlls of the Azure Kinect SDK such as /bin/64bit/k4a.dll, but does not include depthengine_2_0.dll (despite the fact depthengine is part of Azure Kinect SDK v1.4.1\sdk\windows-desktop\x86\release\bin

Perhaps this DLL needs to be added to https://github.com/SirLynix/obs-kinect/tree/v1.0-rc1/xmake-repo/packages/k ?

@SirLynix
Copy link
Owner

Hi!

The depth engine DLL isn't distributed as part of the Azure Kinect SDK, if I recall correctly this is because it cannot be redistributed by a thirdparty.

This is the reason you have to install the Azure Kinect SDK to use this plugin.

As for why it doesn't find the depth engine since installing it, perhaps it's a version mismatch? Try to replace the sdk dll shipped with the plugin by the ones from your Azure Kinect SDK installation.

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

No branches or pull requests

5 participants