Open GoogleCodeExporter opened 8 years ago
Hello,
Have you any way to reproduce the problem? A video or something that you can
send to
me to test? Can you run "test_tracking" from "test" folder? Does it works well?
Thanks!
Original comment by grendel....@gmail.com
on 7 Jun 2010 at 8:48
I've had the problem as well. Can't reproduce it reliably, but there is an
obvious bug in cvtrack.cpp that is causing the crash.
Line 261 allocates CvTrack *track but does not initialize it. *track is only
set inside the tt iterator when (a > area), and if for some reason that
condition never executes then track will exit the loop while still set to
garbage.
The next block below that updates track will crash on the dereference of track
when copying the data.
Changing the declaration of track to "track = NULL" and checking for null when
updating the track helps block the crash, but doesn't fix the underlying
problem that might be causing it.
(BTW thanks for this library, it's been a great help in my project!)
Original comment by louiskoz...@gmail.com
on 28 Jul 2010 at 2:32
Thank you very much for your reports!
It'll be going to be difficult to debug it. Perhaps I'll include the check for
null pointer. I didn't include it before now because I didn't want to mask any
error.
Original comment by grendel....@gmail.com
on 30 Jul 2010 at 11:14
it's because line 264
unsigned int a = (t->maxx - t->minx)*(t->maxy - t->miny);
is sometimes = 0 when maxx=minx or maxy=miny.
X and Y are zero based so that line should be:
unsigned int a = (t->maxx - t->minx + 1)*(t->maxy - t->miny + 1);
Original issue reported on code.google.com by
xdub...@lambda-x.com
on 3 Jun 2010 at 8:55