BrownBiomechanics / SlicerAutoscoperM

This 3D Slicer extension enables users to perform image registration.
https://autoscoperm.slicer.org
MIT License
0 stars 3 forks source link

MacOS Testing #71

Open bpaniagua opened 7 months ago

bpaniagua commented 7 months ago

Version of Slicer 5.7.0-2023-11-26 r32591 / 98a2cba

I've followed the tutorial documentation.

First suggestion, there has to be a way to not having to click twice to access the tracking example data. Right now you click the sample data module, then load it into autoscoper. Can you trigger the sample data download when you hit "load data ..." in the AutoscoperM module?

Second is more of a bug report. When launching autoscoper, lots of weird Qt gui rendering issues.

Screenshot 2023-11-28 at 10 38 59 AM

The highlighted row is kinda in between the labels.

Screenshot 2023-11-28 at 10 39 51 AM

The images do not fill the window and it is impossible to resize, both the xray windows or the entire screen (fixed window sizes?)

Interacting with the imaging data is also hard, I can move and zoom the x-ray images, but I cant select the bones to adjust their position, no matter what I do. I click the translate and rotate buttons following the tutorial and the bones remain in their position.

Here is the entire output log in the python console:

Python 3.9.10 (main, Nov 26 2023, 23:11:39) [Clang 14.0.6 (https://github.com/tru/llvm-release-build 686807a176470032c208f2 on darwin

[Qt] Populating font family aliases took 175 ms. Replace uses of missing font family ".AppleSystemUIFont" with one that exists to avoid this cost. [Python] Sample data not found. Please install the 2023-08-01-Wrist sample data set using the Sample Data module. [Python] Sample data not found. Please install the 2023-08-01-Wrist sample data set using the Sample Data module. [Python] Sample data not found. Please install the 2023-08-01-Knee sample data set using the Sample Data module. [Python] Sample data not found. Please install the 2023-08-01-Ankle sample data set using the Sample Data module. Collecting PyAutoscoper~=2.0.0 [FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... [FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... Downloading PyAutoscoper-2.0.0-py3-none-any.whl.metadata (663 bytes) Downloading PyAutoscoper-2.0.0-py3-none-any.whl (6.0 kB) Installing collected packages: PyAutoscoper Successfully installed PyAutoscoper-2.0.0 WARNING: There was an error checking the latest version of pip. [FD] New Client is Connected... [FD] load trial /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/2023-07-20-Wrist.cfg [FD] load filter settings for camera 0 : /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/xParameters/control_settings.vie [FD] load filter settings for camera 1 : /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/xParameters/control_settings.vie [FD] 2023-11-28 10:10:18.217 autoscoper[14506:132836] +[CATransaction synchronize] called within transaction [FD] Closing connection to Client... [FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... [FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... [FD] New Client is Connected... [FD] load trial /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/2023-07-20-Wrist.cfg [FD] load filter settings for camera 0 : /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/xParameters/control_settings.vie [FD] load filter settings for camera 1 : /Users/beatriz.paniagua/Library/Caches/slicer.org/Slicer/SlicerIO/2023-08-01-Wrist/xParameters/control_settings.vie

NicerNewerCar commented 5 months ago

Got a temp Mac system to help debug this. Seems to be an issue with the version of Autoscoper we are distributing with SlicerAutoscoper. As when I build Autoscoper from source everything works fine. When I bring Autoscoper off of my second monitor onto the screen of the laptop I can reproduce the off-center 2D view and lack of interaction.

bpaniagua commented 5 months ago

Nice!

NicerNewerCar commented 5 months ago

Very strange, this issue seems to be tied to the resolution. As setting the display resolution to anything under 1920 width seems to cause this error. I have tried pretty much every resolution on my Windows machine and I am not able to reproduce this over there so this may be a uniquely Mac problem.

NicerNewerCar commented 5 months ago

Also the optimization pipeline is failing on Mac see https://github.com/BrownBiomechanics/Autoscoper/issues/257