assert error in Tracker::arMultiGetTransMatHull

Bug #691600 reported by DeadVirus
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ARToolKitPlus
Fix Released
Undecided
Unassigned

Bug Description

The line ~100: "assert(iabs(idx0-idx1)>0);" in function Tracker::arMultiGetTransMatHull(...) fails. Also, idx0,idx1,idx2,idx3 should be initialized before being used (otherwise it can cause problems).

Doing "mTrackerMulti->setHullMode(ARToolKitPlus::HULL_OFF);" stopped the problem (but I don't know what this does).

This happens in the trunk version.

DeadVirus (amfcosta13)
description: updated
Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

you can look at the description of setHullMode() to see what it does. I will look at the problem as time permits.

Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

just had some time to look at it: idx_ are not used unitialised; they are passed as references.
as for the assertion - I cant reproduce it here. Can you attach a test-image that triggers it?

Changed in artoolkitplus:
status: New → Incomplete
Revision history for this message
David Cabecinhas (david-cab) wrote :

I'm having the same problem.
It looks like it happens when no marker is detected.

I'm attaching a test-image so you can reproduce the problem.
I get a segfault when testing it with the samples/multi code.

Revision history for this message
David Cabecinhas (david-cab) wrote :

Making the following change in line 93 of arMultiGetTransMatHull.cpp

 if( (hullTrackingMode==HULL_FOUR) && (numInPoints != 0))

gets the code running, resulting in the following output for the sample/multi code:

"0 good Markers found and used for pose estimation.
Pose-Matrix:
  0.00 0.00 0.00 0.00
  0.00 0.00 0.00 0.00
  0.00 0.00 0.00 0.00
  0.00 0.00 0.00 1.00"

Caveat: There may be better codepoints for checking for this condition, I'm not acquainted with the ARTKP code.

Changed in artoolkitplus:
status: Incomplete → Fix Committed
Changed in artoolkitplus:
status: Fix Committed → Fix Released
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.