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

Cuda error when creating tracker using C# wrapper on Linux #1304

Closed
chitsaw opened this issue Aug 2, 2020 · 2 comments
Closed

Cuda error when creating tracker using C# wrapper on Linux #1304

chitsaw opened this issue Aug 2, 2020 · 2 comments
Assignees
Labels
Body Tracking Issue related to the Body Tracking SDK Bug Something isn't working Linux This issue affects only Linux

Comments

@chitsaw
Copy link

chitsaw commented Aug 2, 2020

Describe the bug

We are using the C# wrapper from the Microsoft.Azure.Kinect.BodyTracking NuGet to write a simple body tracking test application. The application is .NET Core and runs fine on Windows, but on Linux (with the same hardware), we get the following CUDA exception when calling Tracker.Create(...):

/onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:97 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:91 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] CUDA failure 10: invalid device ordinal ; GPU=0 ; hostname=asi-si-01 ; expr=cudaSetDevice(device_id_); 
Stacktrace:

Stacktrace:

[2020-08-02 00:48:58.883] [error] [t=9087] [K4ABT] /home/vsts/work/1/s/src/TrackerHost/TrackerHost.cpp (157): Create(). /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:97 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:91 bool onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*) [with ERRTYPE = cudaError; bool THRW = true] CUDA failure 10: invalid device ordinal ; GPU=0 ; hostname=asi-si-01 ; expr=cudaSetDevice(device_id_); 
Stacktrace:

Stacktrace:

[2020-08-02 00:48:58.883] [error] [t=9087] [K4ABT] /home/vsts/work/1/s/src/sdk/k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()

We get this error when attempting to create the tracker in both GPU as well as CPU modes. However, the C++ simple_sample runs just fine, as does the k4abt_simple_3d_viewer that shipped with the SDK.

It appears to be an issue only when creating the tracker using the C# SDK, and only on Linux.

To Reproduce

  1. Create a tracker using the Tracker.Create C# API on Linux.
  2. Method throws the above-mentioned exception.
  3. The following simple test program illustrates the issue. Build it using dotnet build /property:Platform=x64 on Linux and run the resulting executable to reproduce the error:

AzureKinectTest.zip

Expected behavior

The Tracker.Create method should succeed and the application should run.

Logs

log.txt

Screenshots

Desktop (please complete the following information):

  • OS with Version: Linux Ubuntu 18.04.4 LTS (Bionic Beaver)
  • SDK Version:
    libk4a1.3, 1.3.0
    libk4a1.3-dev, 1.3.0
    libk4abt1.0, 1.0.0
    libk4abt1.0-dev 1.0.0
  • Firmware version:
    RGB camera: 1.6.102
    Depth camera: 1.6.75
    Depth config file: 6109.7
    Audio firmware: 1.6.14

Additional context

@chitsaw chitsaw added Body Tracking Issue related to the Body Tracking SDK Bug Something isn't working Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. labels Aug 2, 2020
@qm13 qm13 added Investigating Dev team needs to Investigate Linux This issue affects only Linux and removed Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. labels Aug 3, 2020
@qm13 qm13 self-assigned this Aug 3, 2020
@qm13 qm13 added Investigating Dev team needs to Investigate and removed Investigating Dev team needs to Investigate labels Sep 11, 2020
@KevinHwangAi
Copy link

I also had the same problem on Ubuntu 18.04. How is the problem solved now?

@qm13 qm13 removed the Investigating Dev team needs to Investigate label Mar 24, 2021
@qm13
Copy link
Collaborator

qm13 commented Mar 24, 2021

Duplicate of #1207. Linux currently does not support C#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Body Tracking Issue related to the Body Tracking SDK Bug Something isn't working Linux This issue affects only Linux
Projects
None yet
Development

No branches or pull requests

3 participants