Page MenuHomePhabricator

MITK-IGT: XML logging is broken
Closed, ResolvedPublic

Description

Logging tracking data to a xml file is broken, just empty lines for each logged frame. It was tested with the 2021.10 release.

Steps to reproduce:

  1. Open IGT Tracking Toolbox
  2. Select Virtual Tracker
  3. Add Single Tool
  4. Connect and start tracking
  5. Switch to Logging tab
  6. Choose "XML format"
  7. Click Start Logging
  8. Click Stop Logging

The file looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data ToolCount="2" version="1.0">
        
		
		
		
        
</Data>

but should look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data ToolCount="2" version="1.0">
        <ND Time="78" Tool="0" X="176.219542187500224" Y="-168.13205078125" Z="175.855333593748895" QX="0" QY="0" QZ="0" QR="1" C00="0.762850418686867" C01="0" C02="0" C03="0" C04="0" C05="0" C10="0" C11="0.762850418686867" C12="0" C13="0" C14="0" C15="0" Valid="1" hO="1" hP="1" />
        <ND Time="78" Tool="1" X="-97.760187499999" Y="-69.7928906249986" Z="109.482322656250062" QX="0" QY="0" QZ="0" QR="1" C00="0.163110677152872" C01="0" C02="0" C03="0" C04="0" C05="0" C10="0" C11="0.163110677152872" C12="0" C13="0" C14="0" C15="0" Valid="1" hO="1" hP="1" />
        
</Data>

Event Timeline

franza triaged this task as High priority.Mar 29 2022, 3:18 PM
franza created this task.

Can possibly be fixed following the TinyXML to TinyXML-2 migration guide, see: https://phabricator.mitk.org/w/mitk/changelog/2020.52/ (thanks for this hint to @kislinsk!)

I would say some code in Modules\IGT\IO has to be adapted to fix this bug. Possibly the class mitk::NavigationDataRecorderDeprecated, if it is still in use.

franza moved this task from Wishlist to Ready for merge on the IGT board.

Thanks to @baumg for the fix in this pull request!

Deleted branch from rMITK MITK: bugfix/T29082-FixXMLLogging.