Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AimsConnectComp: failure on large image/volume #22

Closed
nsouedet opened this issue Sep 11, 2019 · 0 comments
Closed

AimsConnectComp: failure on large image/volume #22

nsouedet opened this issue Sep 11, 2019 · 0 comments

Comments

@nsouedet
Copy link
Contributor

nsouedet commented Sep 11, 2019

The used command is :
AimsConnectComp -i large_image.ima -o large_image_cc.ima -t U32 -c 8xy

The image named large_image.ima has a dimension > 32767 in X dimension

And the resulting stack trace is:

Program received signal SIGABRT, Aborted.
0x00007ffff2237428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  0x00007ffff2237428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff223902a in __GI_abort () at abort.c:89
#2  0x00007ffff22797ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff2392ed8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff2286698 in malloc_printerr (ar_ptr=0x0, ptr=<optimized out>, str=0x7ffff2392f00 "munmap_chunk(): invalid pointer", action=<optimized out>)
    at malloc.c:5006
#4  munmap_chunk (p=<optimized out>) at malloc.c:2842
#5  __GI___libc_free (mem=<optimized out>) at malloc.c:2963
#6  0x00007ffff4f6d002 in carto::AllocatorContext::deallocate<unsigned long> (this=0x854788, this=0x854788, n=126863904, ptr=0x7fff6307a010)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/soma-io/allocator/allocator.h:376
#7  carto::AllocatedVector<unsigned long>::free (this=0x854788)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/soma-io/utilities/allocatedvector.h:190
#8  carto::AllocatedVector<unsigned long>::~AllocatedVector (this=0x854788, __in_chrg=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/soma-io/utilities/allocatedvector.h:168
#9  carto::Volume<unsigned long>::~Volume (this=this@entry=0x854680, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/cartodata/volume/volumebase_d.h:588
#10 0x00007ffff4f6d079 in carto::Volume<unsigned long>::~Volume (this=0x854680, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/cartodata/volume/volumebase_d.h:588
#11 0x00007ffff5fd35d3 in carto::const_ref<carto::Volume<unsigned long> >::~const_ref (this=0x7fffffffcb10, __in_chrg=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/cartobase/smart/rcptr.h:377
#12 carto::ref<carto::Volume<unsigned long> >::~ref (this=0x7fffffffcb10, __in_chrg=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/cartobase/smart/rcptr.h:497
#13 carto::rc_ptr<carto::Volume<unsigned long> >::~rc_ptr (this=0x7fffffffcb10, __in_chrg=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/cartobase/smart/rcptr.h:639
#14 AimsData<unsigned long>::~AimsData (this=this@entry=0x7fffffffcad0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/aims/data/cartodatavolume.h:393
#15 0x00007ffff5fdb133 in aims::ConnectedComponentEngine<AimsData<unsigned char>, AimsData<unsigned int> >::connected (data=..., out=..., 
    connectivity=aims::Connectivity::CONNECTIVITY_8_XY, valids=std::map with 6394618 elements = {...}, backg=backg@entry=@0x7fffffffcbf0: 0 '\000', 
    bin=false, minSize=0, maxSize=0, numMax=0, verbose=true)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/aims/connectivity/component_d.h:195
#16 0x000000000042b75f in aims::ConnectedComponentEngine<AimsData<unsigned char>, AimsData<unsigned int> >::connected (verbose=true, 
    numMax=<optimized out>, maxSize=<optimized out>, minSize=<optimized out>, bin=<optimized out>, backgrnd=@0x7fffffffcbf0: 0 '\000', 
    connectivity=<optimized out>, out=..., data=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/include/aims/connectivity/component.h:106
#17 DataConverter<AimsData<unsigned char>, AimsData<unsigned int> >::doit (p=..., finder=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/AimsConnectedComp/main.cc:224
#18 0x00007ffff64e5c04 in aims::Process::execute (this=this@entry=0x7fffffffcf90, f=..., 
    filename="large_image_cc.ima")
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/aimsdata/io/process.cc:139
#19 0x0000000000416dbf in CC::convert<unsigned char> (p=..., finder=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/AimsConnectedComp/main.cc:186
#20 0x00007ffff64e5c04 in aims::Process::execute (this=this@entry=0x7fffffffd470, f=..., 
    filename="large_image.ima")
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/aimsdata/io/process.cc:139
#21 0x00007ffff64e64f6 in aims::Process::execute (this=this@entry=0x7fffffffd470, 
    filename="large_image.ima")
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/aimsdata/io/process.cc:75
---Type <return> to continue, or q <return> to quit---
#22 0x0000000000411c3c in main (argc=<optimized out>, argv=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/aims/aims-free/integration/aimsdata/src/AimsConnectedComp/main.cc:311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant