← Back to team overview

hugin-devs team mailing list archive

[Bug 717944] Re: cpfind memory allocation error

 

not sure if it is the same error. 8GB RAM Kubuntu with 293 8 megapixel
JPEGs fails on image 15

cpfind -v -o out.pto --multirow 090601nendaz01.input.pto


....
Image 292
  Imagefile: _MG_8039_01.jpg
  Remapped : no
Image 293
  Imagefile: _MG_8040_01.jpg
  Remapped : no

--- Analyze Images ---
i0 : Load image...
i1 : Load image...
i0 : Resize to greyscale double...
i1 : Resize to greyscale double...
i0 : Build integral image...
i0 : Find keypoints...
i1 : Build integral image...
i1 : Find keypoints...
i1 : Found 30643 interest points.
i1 : Filtering keypoints...
i1 : Kept 10000 interest points.
i1 : Make keypoint descriptors...
i0 : Found 22730 interest points.
i0 : Filtering keypoints...
i0 : Kept 9600 interest points.
i0 : Make keypoint descriptors...
i1 : Build KDTree...
i0 : Build KDTree...
i1 : Freeing memory...
i2 : Load image...
i0 : Freeing memory...
i3 : Load image...
i2 : Resize to greyscale double...
i3 : Resize to greyscale double...
i2 : Build integral image...
i2 : Find keypoints...
i3 : Build integral image...
i3 : Find keypoints...
i2 : Found 19085 interest points.
i2 : Filtering keypoints...
i2 : Kept 7960 interest points.
i2 : Make keypoint descriptors...
i3 : Found 10966 interest points.
i3 : Filtering keypoints...
i3 : Kept 5688 interest points.
i3 : Make keypoint descriptors...
i3 : Build KDTree...
i3 : Freeing memory...
i4 : Load image...
i2 : Build KDTree...
i2 : Freeing memory...
i5 : Load image...
i4 : Resize to greyscale double...
i5 : Resize to greyscale double...
i4 : Build integral image...
i5 : Build integral image...
i4 : Find keypoints...
i5 : Find keypoints...
i4 : Found 11369 interest points.
i4 : Filtering keypoints...
i4 : Kept 5199 interest points.
i4 : Make keypoint descriptors...
i5 : Found 10729 interest points.
i5 : Filtering keypoints...
i5 : Kept 5544 interest points.
i5 : Make keypoint descriptors...
i5 : Build KDTree...
i5 : Freeing memory...
i6 : Load image...
i4 : Build KDTree...
i4 : Freeing memory...
i7 : Load image...
i6 : Resize to greyscale double...
i7 : Resize to greyscale double...
i6 : Build integral image...
i6 : Find keypoints...
i7 : Build integral image...
i7 : Find keypoints...
i6 : Found 11600 interest points.
i6 : Filtering keypoints...
i6 : Kept 6404 interest points.
i6 : Make keypoint descriptors...
i7 : Found 9610 interest points.
i7 : Filtering keypoints...
i7 : Kept 3941 interest points.
i7 : Make keypoint descriptors...
i7 : Build KDTree...
i7 : Freeing memory...
i8 : Load image...
i6 : Build KDTree...
i6 : Freeing memory...
i9 : Load image...
i8 : Resize to greyscale double...
i8 : Build integral image...
i9 : Resize to greyscale double...
i8 : Find keypoints...
i9 : Build integral image...
i9 : Find keypoints...
i8 : Found 9560 interest points.
i8 : Filtering keypoints...
i8 : Kept 3065 interest points.
i8 : Make keypoint descriptors...
i8 : Build KDTree...
i8 : Freeing memory...
i10 : Load image...
i9 : Found 9513 interest points.
i9 : Filtering keypoints...
i9 : Kept 6772 interest points.
i9 : Make keypoint descriptors...
i9 : Build KDTree...
i10 : Resize to greyscale double...
i9 : Freeing memory...
i11 : Load image...
i10 : Build integral image...
i10 : Find keypoints...
i10 : Found 2846 interest points.
i10 : Filtering keypoints...
i10 : Kept 2794 interest points.
i10 : Make keypoint descriptors...
i11 : Resize to greyscale double...
i11 : Build integral image...
i11 : Find keypoints...
i10 : Build KDTree...
i10 : Freeing memory...
i12 : Load image...
i11 : Found 13 interest points.
i11 : Filtering keypoints...
i11 : Kept 13 interest points.
i11 : Make keypoint descriptors...
i11 : Build KDTree...
i11 : Freeing memory...
i13 : Load image...
i12 : Resize to greyscale double...
i12 : Build integral image...
i12 : Find keypoints...
i13 : Resize to greyscale double...
i13 : Build integral image...
i13 : Find keypoints...
i12 : Found 14191 interest points.
i12 : Filtering keypoints...
i12 : Kept 8678 interest points.
i12 : Make keypoint descriptors...
i13 : Found 6380 interest points.
i13 : Filtering keypoints...
i13 : Kept 5043 interest points.
i13 : Make keypoint descriptors...
i13 : Build KDTree...
i12 : Build KDTree...
i13 : Freeing memory...
i14 : Load image...
i12 : Freeing memory...
i15 : Load image...
i14 : Resize to greyscale double...
i15 : Resize to greyscale double...
i14 : Build integral image...
i14 : Find keypoints...
i15 : Build integral image...
i15 : Find keypoints...
i14 : Found 0 interest points.
i14 : Filtering keypoints...
i14 : Kept 0 interest points.
i14 : Make keypoint descriptors...
i14 : Build KDTree...
Segmentation fault

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/717944

Title:
  cpfind memory allocation error

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  On running cpfind with 12 16-bit TIFF files, each 5616x3744, cpfind is
  crashing as follows.   Perhaps it should have an option to downsample
  further or do so automatically.   I'm running on a mac with 32GBytes
  of RAM.


  ThreadQueue created
  Hugins cpfind 2010.4.0 built by Harry van der Wolf
  based on Pan-o-matic by Anael Orlinski

  Input file        : /var/folders/8h/8hlpRcCCEaGFmRb8QB9D-E+++TI/-Tmp-/ap_inprojFJqZwc
  Output file       : /var/folders/8h/8hlpRcCCEaGFmRb8QB9D-E+++TI/-Tmp-/ap_resTLTV9P
  Number of CPU     : 8

  Input image options
    Downscale to half-size : yes
  Gradient based description
  Sieve 1 Options
    Width : 10
    Height : 10
    Size : 50
    ==> Maximum keypoints per image : 5000
  KDTree Options
    Search steps : 40
    Second match distance : 0.15
  Matching Options
    Mode : All pairs
    Distance threshold : 25
  RANSAC Options
    Iterations : 1000
    Distance threshold : 25
  Sieve 2 Options
    Width : 5
    Height : 5
    Size : 2
    ==> Maximum matches per image pair : 50
  User thread created.
  Reference thread created.
  1 reference-thread added.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...
  User thread created.
  pollPendingThreads()
  1 user-thread added.
  Thread starting...

  Project contains the following images:
  Image 0
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0182.tif
    Remapped : yes
  Image 1
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0183.tif
    Remapped : yes
  Image 2
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0185.tif
    Remapped : yes
  Image 3
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0186.tif
    Remapped : yes
  Image 4
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0187.tif
    Remapped : yes
  Image 5
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0188.tif
    Remapped : yes
  Image 6
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0189.tif
    Remapped : yes
  Image 7
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0190.tif
    Remapped : yes
  Image 8
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0191.tif
    Remapped : yes
  Image 9
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0192.tif
    Remapped : yes
  Image 10
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0184.tif
    Remapped : yes
  Image 11
    Imagefile: /Volumes/Adams/Users/bst/Desktop/Hugin Export/_MG_0193.tif
    Remapped : yes

  --- Analyze Images ---
  i0 : Load image...
  i1 : Load image...
  i2 : Load image...
  i3 : Load image...
  i4 : Load image...
  i5 : Load image...
  i6 : Load image...
  i7 : Load image...
  i5 : Remap image...
  i6 : Remap image...
  i1 : Remap image...
  i3 : Remap image...
  i7 : Remap image...
  i4 : Remap image...
  i2 : Remap image...
  i0 : Remap image...
  i2 : Convert to greyscale double...
  i5 : Convert to greyscale double...
  i3 : Convert to greyscale double...
  i2 : Build integral image...
  i5 : Build integral image...
  i3 : Build integral image...
  i2 : Build distance map...
  i3 : Build distance map...
  i4 : Convert to greyscale double...
  i5 : Build distance map...
  i4 : Build integral image...
  i4 : Build distance map...
  i6 : Convert to greyscale double...
  i2 : Find keypoints...
  i3 : Find keypoints...
  i5 : Find keypoints...
  i6 : Build integral image...
  i7 : Convert to greyscale double...
  i6 : Build distance map...
  i7 : Build integral image...
  i4 : Find keypoints...
  i7 : Build distance map...
  i0 : Convert to greyscale double...
  i1 : Convert to greyscale double...
  i0 : Build integral image...
  i1 : Build integral image...
  i6 : Find keypoints...
  i0 : Build distance map...
  i1 : Build distance map...
  i7 : Find keypoints...
  i0 : Find keypoints...
  i1 : Find keypoints...
  i5 : Found 42196 interest points.
  i5 : Filtering keypoints...
  i5 : Kept 2400 interest points.
  i5 : Make keypoint descriptors...
  i5 : Build KDTree...
  i5 : Freeing memory...
  i8 : Load image...
  i3 : Found 47339 interest points.
  i3 : Filtering keypoints...
  i3 : Kept 2400 interest points.
  i3 : Make keypoint descriptors...
  i3 : Build KDTree...
  i3 : Freeing memory...
  i9 : Load image...
  An error happened while loading image : caught exception: std::bad_alloc
  i10 : Load image...
  An error happened while loading image : caught exception: std::bad_alloc
  i11 : Load image...
  An error happened while loading image : caught exception: std::bad_alloc
  cpfind(68746,0xb0081000) malloc: *** mmap(size=252317696) failed (error code=12)
  *** error: can't allocate region
  *** set a breakpoint in malloc_error_break to debug
  cpfind(68746,0xb0081000) malloc: *** mmap(size=252317696) failed (error code=12)
  *** error: can't allocate region
  *** set a breakpoint in malloc_error_break to debug
  cpfind(68746,0xb0081000) malloc: *** mmap(size=252317696) failed (error code=12)
  *** error: can't allocate region
  *** set a breakpoint in malloc_error_break to debug
  i2 : Found 40564 interest points.
  i2 : Filtering keypoints...
  i2 : Kept 2398 interest points.
  i2 : Make keypoint descriptors...
  i2 : Build KDTree...
  i2 : Freeing memory...
  i8 : Remap image...
  i4 : Found 45658 interest points.
  i4 : Filtering keypoints...
  i4 : Kept 2400 interest points.
  i4 : Make keypoint descriptors...
  i4 : Build KDTree...
  i4 : Freeing memory...
  i1 : Found 47289 interest points.
  i1 : Filtering keypoints...
  i6 : Found 49432 interest points.
  i6 : Filtering keypoints...
  i7 : Found 49374 interest points.
  i7 : Filtering keypoints...
  i6 : Kept 2358 interest points.
  i6 : Make keypoint descriptors...
  i1 : Kept 2400 interest points.
  i1 : Make keypoint descriptors...
  i0 : Found 44658 interest points.
  i0 : Filtering keypoints...
  i7 : Kept 2350 interest points.
  i7 : Make keypoint descriptors...
  i0 : Kept 2400 interest points.
  i0 : Make keypoint descriptors...
  i6 : Build KDTree...
  i1 : Build KDTree...
  i6 : Freeing memory...
  i7 : Build KDTree...
  i1 : Freeing memory...
  i7 : Freeing memory...
  i0 : Build KDTree...
  i0 : Freeing memory...



References