ContextLink TVs are not kept in sync with those in CompositeTVs

Bug #694427 reported by ferrouswheel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Confirmed
Medium
Noetic Jun

Bug Description

When ContextLinks are added, they also add a VersionHandle to the associated CompositeTruthValues. However, if the ContextLink or VersionHandle TV is changed, then the TVs in each of these get out of sync. It should not be up to client code to maintain both TVs as this will surely result in a mess.

I checked whether they might have cleverly shared a reference to the same TV object, but they don't. The TV reference passed to
CompositeTruthValue::setVersionedTV is cloned.

We could try to share the same TV object (more space efficient but possibly more difficult), or we could add code that watches for TV
changes to ContextLinks/CompositeTVs.

ferrouswheel (joel-pitt)
Changed in opencog:
status: New → Confirmed
importance: Undecided → Medium
Noetic Jun (mindbound)
Changed in opencog:
assignee: nobody → Arets Paeglis (mindbound)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.