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

BUG: fCal Unexpectedly Closes When Using Spatial Calibration Toolbox #1210

Open
jonortega77 opened this issue Oct 30, 2024 · 4 comments
Open

Comments

@jonortega77
Copy link

Hi,

I'm experiencing an issue where fCal unexpectedly closes whenever I attempt to use the Spatial Calibration toolbox. I’m not sure why this is happening, and I haven’t been able to identify any specific error messages leading up to the crash.

Moreover, I have not the opportunity to perform the spatial calibration because it says that "Phantom registration is not available"

Here’s a summary of my setup and the video showing the process:

fCal Version: PlusApp-2.9.0.20240906-Clarius-Win64
Operating System: Windows 11

fcal_problem.mp4
@jonortega77
Copy link
Author

jonortega77 commented Oct 31, 2024

log

|INFO|000.066000| Toolbox changed to Configuration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|054.484000| Connect to devices| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QConfigurationToolbox.cxx(158)
|INFO|054.527000| TrackerDevice: Local time offset: 103.834ms| in E:\D\PTNPCb\PlusLib\src\PlusDataCollection\vtkPlusDevice.cxx(1098)
|INFO|054.531000| Selected US image orientation: UN| in E:\D\PTNPCb\PlusLib\src\PlusDataCollection\vtkPlusDataSource.cxx(300)
|INFO|061.576000| ImageToProbe transform is absent, spatial calibration needs to be performed or imported.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QCapturingToolbox.cxx(214)
|INFO|061.578000| Sampling rate changed to 10 (matching requested frame rate is 30)| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QCapturingToolbox.cxx(593)
|INFO|061.582000| Sampling rate changed to 10 (matching requested frame rate is 20)| in E:\D\PTNPCb\PlusApp\fCal\PlusCaptureControlWidget.cxx(244)
|INFO|061.585000| Sampling rate changed to 10 (matching requested frame rate is 20)| in E:\D\PTNPCb\PlusApp\fCal\PlusCaptureControlWidget.cxx(244)
|INFO|061.585000| ImageToProbe transform is absent, spatial calibration needs to be performed or imported.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QCapturingToolbox.cxx(214)
|INFO|061.585000| Sampling rate changed to 10 (matching requested frame rate is 30)| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QCapturingToolbox.cxx(593)
|INFO|061.585000| Toolbox changed to Capturing| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|068.083000| Toolbox changed to Stylus calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|ERROR|071.572000| Unable to find required vtkPlusPhantomLinearObjectRegistrationAlgo element in device set configuration| in E:\D\PTNPCb\PlusLib\src\PlusCalibration\vtkPhantomLinearObjectRegistrationAlgo\vtkPlusPhantomLinearObjectRegistrationAlgo.cxx(321)
|WARNING|071.588000| Phantom plane definitions not found in XML tree. Perform Landmark Registration instead!| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(161)
|INFO|071.595000| Toolbox changed to Phantom registration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|071.595000| Less than 3 landmarks! Try again| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(1142)
|ERROR|071.597000| Unable to find required vtkPlusPhantomLinearObjectRegistrationAlgo element in device set configuration| in E:\D\PTNPCb\PlusLib\src\PlusCalibration\vtkPhantomLinearObjectRegistrationAlgo\vtkPlusPhantomLinearObjectRegistrationAlgo.cxx(321)
|WARNING|071.597000| Phantom plane definitions not found in XML tree. Perform Landmark Registration instead!| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(161)
|INFO|071.599000| Toolbox changed to Phantom registration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|071.599000| Less than 3 landmarks! Try again| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(1142)
|ERROR|071.601000| Unable to find required vtkPlusPhantomLinearObjectRegistrationAlgo element in device set configuration| in E:\D\PTNPCb\PlusLib\src\PlusCalibration\vtkPhantomLinearObjectRegistrationAlgo\vtkPlusPhantomLinearObjectRegistrationAlgo.cxx(321)
|WARNING|071.601000| Phantom plane definitions not found in XML tree. Perform Landmark Registration instead!| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(161)
|INFO|071.604000| Toolbox changed to Phantom registration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|071.604000| Less than 3 landmarks! Try again| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(1142)
|ERROR|071.606000| Unable to find required vtkPlusPhantomLinearObjectRegistrationAlgo element in device set configuration| in E:\D\PTNPCb\PlusLib\src\PlusCalibration\vtkPhantomLinearObjectRegistrationAlgo\vtkPlusPhantomLinearObjectRegistrationAlgo.cxx(321)
|WARNING|071.606000| Phantom plane definitions not found in XML tree. Perform Landmark Registration instead!| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(161)
|INFO|071.607000| Toolbox changed to Phantom registration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|077.868000| Less than 3 landmarks! Try again| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QPhantomRegistrationToolbox.cxx(1142)
|INFO|077.874000| Toolbox changed to Temporal calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|077.877000| Toolbox changed to Temporal calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|077.879000| Toolbox changed to Temporal calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|077.882000| Toolbox changed to Temporal calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|080.865000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.866000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.866000| Toolbox changed to Spatial calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|080.867000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.868000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.868000| Toolbox changed to Spatial calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|080.868000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.869000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.869000| Toolbox changed to Spatial calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)
|INFO|080.870000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.870000| Phantom registration is not available: transform between Probe and Reference coordinate frames is missing. Either phantom registration has not performed yet or the ProbeCoordinateFrame, ReferenceCoordinateFrame, or PhantomCoordinateFrame attributes in the device set configuration file are not set correctly.| in E:\D\PTNPCb\PlusApp\fCal\Toolboxes\QSpatialCalibrationToolbox.cxx(290)
|INFO|080.871000| Toolbox changed to Spatial calibration| in E:\D\PTNPCb\PlusApp\fCal\fCalMainWindow.cxx(330)

XML config file:

config_file.txt

Please any guidance in this topic would be appreciated !

Thanks

@jonortega77
Copy link
Author

I have been able to fix it making this changes that you can compare it with the already uploaded config file:

image

image

These changes have been done since I am using the "Tool" NDI marker which is specified in the device part of the config file (check screeshot):

image

@lassoan
Copy link
Contributor

lassoan commented Nov 5, 2024

I would recommend to use Probe as name of probe coordinate system: instead of changing Probe to Tool everywhere, you can just change the Id of the 8700339.rom to Probe.

@jonortega77
Copy link
Author

but still does not work as it is shown in the video #1211 .

Any suggestions that can help me with this?

@jonortega77 jonortega77 reopened this Nov 6, 2024
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

2 participants