# Trouble loading sample data in SlicerAutoscoperM

**URL:** <https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003>\
**Category:** SlicerAutoscoperM\
**Created:** [January 9, 2025, 12:38am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003 "2025-01-09T00:38:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lauren\_Welte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lauren_welte/32/78049_2.png) [@Lauren\_Welte](https://discourse.slicer.org/u/Lauren_Welte)\
**Post date:** [January 9, 2025, 12:38am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/1 "2025-01-09T00:38:36Z")

</div>

We have downloaded 3D Slicer 5.6.2 and are using SlicerAutoscoperM version 52a6b2d (2024-12-18).

We have downloaded the sample data (wrist, knee and ankle).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/4/942c56771ea0e9ae0d93d72f27ecf9d65d49a787.png)

We then launch Autoscoper (Autoscoper opens), then we click “Load Wrist Data” and we get the following errors:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/b/1bb411b9fb4d01066d2c21b057163e9e07dde02b.png)

We are running a Microsoft Windows 11 Education.  
The computer has :  
GPU processor: NVIDIA RTX 2000 Ada Generation  
Driver version: 556.12

Let me know if we can provide any more details.

---

<div class="post-metadata">

**Author:** ![Amy\_Morton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amy_morton/32/67318_2.png) [@Amy\_Morton](https://discourse.slicer.org/u/Amy_Morton)\
**Post date:** [January 9, 2025, 2:26am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/2 "2025-01-09T02:26:47Z")

</div>

Thanks Lauren, (welcome to the discourse)

1. In the extension index, under SlicerAutoscoperM what version do you see? ex:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/f/cf40700b57f0adadfbcd57e28320d7eba3e0f861.png)

2.Try ‘Check for updates’ in the index and restart if any are available

1. You have a good chunk of errors/warnings in your python console- did you observe a successful PyAutoscoper install? (it won’t output every time- but it should if you install and update to the extension)  

2. If none of the above is relevant… can you launch Autoscoper in OpenCL and successfully load sample data?

---

<div class="post-metadata">

**Author:** ![Lauren\_Welte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lauren_welte/32/78049_2.png) [@Lauren\_Welte](https://discourse.slicer.org/u/Lauren_Welte)\
**Post date:** [January 15, 2025, 12:27am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/3 "2025-01-15T00:27:08Z")

</div>

[1/2 as I am limited to 3 media items]  
This is the version we were using previously:

![image (1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/8/187bb142747a30eebeb2125d409011fff34008d1.png)

Then, I checked for updates, installed them, and restarted Slicer. This is the version we have now:

![image (2)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/8/3804d16bc23967b0ac9726280f0fb00b6a6c6d14.png)

This is Slicer opened fresh with AutoscoperM selected. (no errors in the console)

 ![image (3)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/6/b6b41250eb3ada6daf1e7c77977a9f97fb9c091d.png)

---

<div class="post-metadata">

**Author:** ![Lauren\_Welte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lauren_welte/32/78049_2.png) [@Lauren\_Welte](https://discourse.slicer.org/u/Lauren_Welte)\
**Post date:** [January 15, 2025, 12:27am UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/4 "2025-01-15T00:27:41Z")

</div>

[2/2]

This is what the console looks like when we open AutoscoperM.

 ![image (4)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/4/54b46f3be30fe262e0a67bf00ebbd6168f96bada.png)

Then I click “Load Wrist Data” and I get this in the console, and Autoscoper closes.

 ![image (5)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/d/9d305ee7ccd62b61c2bdbd671d33c975b3df15ae.png)

I tried with Open CL and the same thing happens.

 ![image (6)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/0/c050e5954725765d3a9d45165d7eceeb0df9b8b4.png)

What do you think?

---

<div class="post-metadata">

**Author:** ![Amy\_Morton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amy_morton/32/67318_2.png) [@Amy\_Morton](https://discourse.slicer.org/u/Amy_Morton)\
**Post date:** [January 15, 2025, 1:56pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/5 "2025-01-15T13:56:45Z")

</div>

1. Let’s confirm the cfg location downloaded locally:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/ef917376ba3f73c7213b2bfc819011dd36d3186a.png) ( I doubt there is an issue, but just to confirm)

then  
2) Attempt to establish a socket connection via matlab class:  
The MATLAB socket control file does not ship with the SlicerAutoscoper extension. It can be found [here](https://github.com/BrownBiomechanics/Autoscoper/blob/main/scripts/matlab)  
[https://github.com/BrownBiomechanics/Autoscoper/blob/main/scripts/matlab](https://github.com/BrownBiomechanics/Autoscoper/blob/main/scripts/matlab)

i) take a look at the readme and download AutoscoperConnection.m  
ii) launch autoscoper within 3dslicer  
iii) open matlab (suggest ver \> 2022a)

copy the following into a new script, or run in command window:

```auto
local_AC_dir = uigetdir('C:\', 'Select directory containing recently downloaded AutoscoperConnection.m');
%path to AutoscoperConneciton class 
addpath(local_AC_dir);

localSampleDir = uigetdir('C:\', 'Select directory containing SampleData cfg file');

%openConnection('127.0.0.1');
aobj = AutoscoperConnection();

cfgFileName = fullfile(localSampleDir , '2023-07-20-Wrist.cfg');
loadTrial(aobj,cfgFileName);

```

---

<div class="post-metadata">

**Author:** ![Lauren\_Welte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lauren_welte/32/78049_2.png) [@Lauren\_Welte](https://discourse.slicer.org/u/Lauren_Welte)\
**Post date:** [January 17, 2025, 8:30pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/6 "2025-01-17T20:30:11Z")

</div>

Thanks so much.

The configuration file is in the proper folder, so we were able to access that.

When we used the MATLAB socket, this is the error we are getting:

 ![image (8)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/c/9c82be90db3fa06a65ac1955bd820e56c79c0efc.png)

Seems like something related to the operating system, but as far as I know it meets all the required specs.

---

<div class="post-metadata">

**Author:** ![Amy\_Morton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amy_morton/32/67318_2.png) [@Amy\_Morton](https://discourse.slicer.org/u/Amy_Morton)\
**Post date:** [January 21, 2025, 9:34pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/7 "2025-01-21T21:34:32Z")

</div>

@jcfr@Lauren_Welte is experiencing sample data launch issues with machine

Windows 11  
NVIDIA RTX 2000 Ada Generation

 ![Screenshot 2024-12-19 124657](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3e66e383dbd148a0b8b4301a338e46c3d2140f79.png)

(error in opencl and cuda launch - though different error reporting)  
We went through some obvious tests to rule out simple errors in the thread above

could you weigh in please?

---

<div class="post-metadata">

**Author:** ![Amy\_Morton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amy_morton/32/67318_2.png) [@Amy\_Morton](https://discourse.slicer.org/u/Amy_Morton)\
**Post date:** [February 3, 2025, 4:05pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/8 "2025-02-03T16:05:07Z")

</div>

@Lauren_Welte are you able to successfully load sample data on any other machine in your institution? I’m wondering if you have security network traffic limitations that may be interfering with the IP based connection

---

<div class="post-metadata">

**Author:** ![Lauren\_Welte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lauren_welte/32/78049_2.png) [@Lauren\_Welte](https://discourse.slicer.org/u/Lauren_Welte)\
**Post date:** [February 5, 2025, 8:14pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/9 "2025-02-05T20:14:35Z")

</div>

Hi Amy! I am able to load the sample data on my other laptop both when wired into our network, and on our university wi-fi. The issue so far seems localized to that computer.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 6, 2025, 3:32pm UTC](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/10 "2025-02-06T15:32:57Z")

</div>

@Lauren_Welte do you happen to have two video cards on your system ?

Related:

- [WIndows 10 is now handling the gpu selection](https://discourse.slicer.org/t/windows-10-is-now-handling-the-gpu-selection/13064)
- [https://www.makeuseof.com/windows-10-choose-preferred-gpu/](https://www.makeuseof.com/windows-10-choose-preferred-gpu/)

## Details

Since issues happen with both backend, we need to first confirm there are two video card and then ensure the NVIDIA one is used.

### CUDA Backend

Based on the screenshot shared above \[1\], the code triggering the error when using the CUDA backend can be inspected here (line 400):

> <https://github.com/BrownBiomechanics/Autoscoper/blob/dd32d16390c71b46641173aac9ad311ead9dfd39/libautoscoper/src/View.cpp#L396-L405>

The problematic call seems to be related to `cudaGraphicsGLRegisterBuffer`\[2\], note that is expected to be supported and not marked as deprecated.

### OpenCL backend

Based on the screenshot shared above \[3\], the code triggering the error when using the OpenCL backend can be inspected here (line 739):

> <https://github.com/BrownBiomechanics/Autoscoper/blob/dd32d16390c71b46641173aac9ad311ead9dfd39/libautoscoper/src/gpu/opencl/OpenCL.cpp#L732-L742>

* * *

1. [Trouble loading sample data in SlicerAutoscoperM - #6 by Lauren\_Welte](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/6) 

2. [CUDA Runtime API :: CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/cuda-runtime-api/group __CUDART__ OPENGL.html#group __CUDART__ OPENGL_1g0fd33bea77ca7b1e69d1619caf44214b) 

3. [Trouble loading sample data in SlicerAutoscoperM - #4 by Lauren\_Welte](https://discourse.slicer.org/t/trouble-loading-sample-data-in-slicerautoscoperm/41003/4)
