HOGDescriptor crash when loading saved .xml (Bug #2607)


Added by K Chen over 12 years ago. Updated about 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Evgeny Talanin % Done:

0%

Category:objdetect
Target version:2.4.4
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/359

Description

The HOGDescriptor will always crash when loading a pre-saved .xml file.
Just add two lines below and you can reproduce this bug:

hog.write("hog.xml");
hog.read("hog.xml");

Error message:
OpenCV Error: Unspecified error (The sequence element is not a numerical scalar) in cvReadRawDataSlice, file /somepath/OpenCV-2.4.3/modules/core/src/persistence.cpp, line 3367


Associated revisions

Revision 50c2f87a
Added by Evgeny Talanin about 12 years ago

Fix and test for #2607

Revision 5522c14e
Added by Andrey Pavlenko almost 11 years ago

Merge pull request #2607 from ilya-lavrenov:warn_sup

History

Updated by Anna Kogan over 12 years ago

Hello K Chen,

Thank you for reporting the issue! Could you please add code above the lines you attached - some code concerning HOG descriptor call and use? And please specify whether you use HOG from GPU or OCL module.

  • Target version set to 3.0

Updated by K Chen over 12 years ago

Sorry I was in a hurry. This bug can be reproduced as follows.

In samples/cpp/peopledetect.cpp, after line 50, add the two lines below, compile & run, then it will crash.

hog.write("hog.xml");
hog.read("hog.xml");

I am using OpenCV 2.4.3, under ubuntu 12.04 32bit, with OpenGL, Qt, CUDA, SSE3 and many other support(no TBB no IPP). The source code was downloaded from SourceForge.

Updated by Andrey Pavlenko about 12 years ago

  • Target version deleted (3.0)
  • Category set to core
  • Assignee set to Vadim Pisarevsky
  • Start date deleted (2012-12-06)

Updated by Vadim Pisarevsky about 12 years ago

  • Affected version set to 2.4.3
  • Target version deleted ()

Updated by Vadim Pisarevsky about 12 years ago

  • Category changed from core to objdetect

Updated by Vadim Pisarevsky about 12 years ago

  • Assignee deleted (Vadim Pisarevsky)

Updated by Evgeny Talanin about 12 years ago

  • Assignee set to Evgeny Talanin

Updated by Evgeny Talanin about 12 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/359

Updated by Andrey Kamaev about 12 years ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Updated by Kirill Kornyakov about 12 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF