<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>327197</bug_id>
          
          <creation_ts>2013-11-06 00:56:18 +0000</creation_ts>
          <short_desc>When add one face tag in mainview/albums/one pictures view digikam and/or opencv fullfill the memory</short_desc>
          <delta_ts>2019-12-23 07:58:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Faces-Detection</component>
          <version>4.0.0</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>e.longuemare</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>7.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1409169</commentid>
    <comment_count>0</comment_count>
    <who name="">e.longuemare</who>
    <bug_when>2013-11-06 00:56:18 +0000</bug_when>
    <thetext>When add one face tag in mainview/albums/one pictures view digikam and/or opencv fullfill the memory

Reproducible: Always

Steps to Reproduce:
1.Go to album view, switch to one picture view by clicking on thumb
2.Activate face tag to show face tag
3.Add a tag (draw it) and add a know face tag (know in recognition.db)
4. doing nothing else and wait
Actual Results:  
Digikam process use more and more memory, then opencv give and insufficient memory error message.

Expected Results:  
Face tag is added to picture without fullfill the memory and make the system unusable (have to wait for  task is finished) or all system crash.

LOGS from GDB (not a complete system crash) :
##START OF LOG ###
digikam(26113)/digikam (core) Digikam::FaceUtils::identityForTag: Found kface identity 8 for tag 38
[New Thread 0x9d1c2b40 (LWP 26192)]
digikam(26113)/KFACE KFaceIface::trainIdentityBatch: Training 1 images for identity 8
############[Thread 0x9d1c2b40 (LWP 26192) exited]
[Thread 0x94592b40 (LWP 26187) exited]
#######TAG ONE ######### 3 lignes aboveOpenCV Error: Insufficient memory (Failed to allocate 262144 bytes) in OutOfMemoryError, file /home/eric/opencv-2-4-5-SH/OpenCV/opencv-2.4.5/modules/core/src/alloc.cpp, line 52
digikam(26113)/KFACE: cv::Exception training LBPH: /home/eric/opencv-2-4-5-SH/OpenCV/opencv-2.4.5/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 262144 bytes in function OutOfMemoryError
 
digikam(26113)/digikam (core) Digikam::FacePipeline::Private::checkFinished: Check for finish:  0 packages, 0 infos to filter, hasFinished() true
[Thread 0x95594b40 (LWP 26188) exited]
[Thread 0x93d91b40 (LWP 26189) exited]
[New Thread 0x93d91b40 (LWP 26252)]
[Thread 0x93d91b40 (LWP 26252) exited]
### End of log ###</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409196</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2013-11-06 06:40:02 +0000</bug_when>
    <thetext>Problem already reported...

Gilles Caulier

*** This bug has been marked as a duplicate of bug 323888 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897941</commentid>
    <comment_count>2</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2019-12-23 07:58:20 +0000</bug_when>
    <thetext>Problem is fixed with new 7.0.0-beta1 through this long story from this bug

https://bugs.kde.org/show_bug.cgi?id=399923

You can test digiKam 7.0.0-beta1 with bundle available here:

https://download.kde.org/unstable/digikam/

Don&apos;t hesitate to give us a fresh feedback about his entry.

Thanks in advance

Gilles Caulier</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>