Forum

Author Topic: Crash and corruption when saving large project  (Read 3539 times)

frnx

  • Newbie
  • *
  • Posts: 8
    • View Profile
Crash and corruption when saving large project
« on: June 12, 2014, 07:08:53 PM »
Hi folks,

I've been trying to process a rather large project containing about 45,000 images from one channel of a 752x480 multispectral sensor. I used the Batch Process mode to sequentially align the images, optimize, build the mesh and build the texture. I kept the "Save project after each step" checkbox checked.

Alignment seemed to work well (I could see the point cloud underneath the Batch Processing dialog), but PhotoScan crashed with the following error between alignemnt and optimization, after having saved a corrupted 1.4GB project file :

*** glibc detected *** /home/veloci/photoscan-pro/photoscan: double free or corruption (!prev): 0x00007fe9299b1210 ***
*** glibc detected *** /home/veloci/photoscan-pro/photoscan: malloc(): memory corruption: 0x00007fe929f17190 ***

I unfortunately forgot to save the corrupted project file before I restarted the process with a lower max. feature count in hopes it'll work this time, but I'll have it in a few days if the crash happens again.

In the meantime, can I do anything to help debug this? Are there logs stored by PhotoScan in such a case?

Thanks!

frnx

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Crash and corruption when saving large project
« Reply #1 on: June 13, 2014, 06:16:36 PM »
The new project failed as well. This time I was able to send the report, save the corrupted project file and get a complete backtrace :

*** glibc detected *** /home/veloci/photoscan-pro/photoscan: double free or corruption (!prev): 0x00007f7264000030 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f878514db96]
/home/veloci/photoscan-pro/photoscan[0xb51d3d]
/home/veloci/photoscan-pro/photoscan[0xab95a6]
/home/veloci/photoscan-pro/photoscan[0xa3bd12]
/home/veloci/photoscan-pro/photoscan[0x9a77eb]
/home/veloci/photoscan-pro/photoscan[0xa3d3e7]
/home/veloci/photoscan-pro/photoscan[0x7d0d67]
/home/veloci/photoscan-pro/libQtCore.so.4(+0x943a2)[0x7f8786cb23a2]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f87860bae9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f87851c33fd]
======= Memory map: ========
00400000-01904000 r-xp 00000000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01b03000-01b1c000 r--p 01503000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01b1c000-01bdd000 rw-p 0151c000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01bdd000-01bf8000 rw-p 00000000 00:00 0
03135000-0f5c6000 rw-p 00000000 00:00 0                                  [heap]
40edc000-40f7a000 rw-p 00000000 00:00 0
41701000-41703000 r-xs 00000000 08:01 10485776                           /tmp/gllGwzEw (deleted)
7f721780c000-7f721c000000 rw-p 00000000 00:00 0
7f721c000000-7f7223fd1000 rw-p 00000000 00:00 0
...
7f77abfff000-7f77ac000000 ---p 00000000 00:00 0
7f77b0000000-7f77b3ff4000 rw-p 00000000 00:00 0
7f77b3ff4000-7f77b4000000 ---p 00000000 00:00 0
7f77b8000000-7f77bbfda000 rw-p 00000000 00:00 0 *** glibc detected *** /home/veloci/photoscan-pro/photoscan: free(): corrupted unsorted chunks: 0x00007f7276ef7ce0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f878514db96]
/home/veloci/photoscan-pro/photoscan[0x1012ffd]
/home/veloci/photoscan-pro/photoscan[0x100ee53]
/home/veloci/photoscan-pro/photoscan[0x100d500]
/home/veloci/photoscan-pro/photoscan[0x100d99e]
======= Memory map: ========
00400000-01904000 r-xp 00000000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01b03000-01b1c000 r--p 01503000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01b1c000-01bdd000 rw-p 0151c000 08:01 87353                              /home/veloci/photoscan-pro/photoscan
01bdd000-01bf8000 rw-p 00000000 00:00 0
03135000-0f5c6000 rw-p 00000000 00:00 0                                  [heap]
40edc000-40f7a000 rw-p 00000000 00:00 0
41701000-41703000 r-xs 00000000 08:01 10485776                           /tmp/gllGwzEw (deleted)
7f721780c000-7f721c000000 rw-p 00000000 00:00 0
7f721c000000-7f7223fd1000 rw-p 00000000 00:00 0
...
7f772bff2000-7f772c000000 ---p 00000000 00:00 0 /home/veloci/photoscan-pro/photoscan.sh : ligne 12 :  2938 Abandon                 "$dirname/$appname" "$@"

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14615
    • View Profile
Re: Crash and corruption when saving large project
« Reply #2 on: June 17, 2014, 06:21:43 PM »
Hello frnx,

The crash may be related with the hardware issues, so we recommend to check RAM modules using Memtest86 utility.
Best regards,
Alexey Pasumansky,
Agisoft LLC