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

Volumes with large dimensions fail to be visualized #12

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

Volumes with large dimensions fail to be visualized #12

nsouedet opened this issue Sep 16, 2019 · 0 comments

Comments

@nsouedet
Copy link
Contributor

nsouedet commented Sep 16, 2019

A large (16385x16385) empty volume created using the following command:
AimsVolumeExtract -o /tmp/test_U32_16385x16385.ima -t U32 -od 16385 16385
fails to be visualized with anatomist.

A segmentation fault is raised with the following back trace:

Thread 1 "anatomist" received signal SIGSEGV, Segmentation fault.
anatomist::AVolume<unsigned int>::updateAxial (this=this@entry=0xbce860, ximage=ximage@entry=0x375c218, pf0=..., td=std::vector of length 1, capacity 1 = {...})
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/volume/Volume.cc:776
776	      *ptrpix++ = coltraits.color( *( ptrori + dxx * y + x ) );

#0  anatomist::AVolume<unsigned int>::updateAxial (this=this@entry=0xbce860, ximage=ximage@entry=0x375c218, pf0=..., td=std::vector of length 1, capacity 1 = {...})
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/volume/Volume.cc:776
#1  0x00007ffff712bcd3 in anatomist::AVolume<unsigned int>::update2DTexture (this=0xbce860, ximage=..., pos=..., state=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/volume/Volume.cc:395
#2  0x00007ffff6f580bf in anatomist::Sliceable::glMakeTexImage (this=0xbce9d8, state=..., gltex=..., tex=0)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/object/sliceable.cc:427
#3  0x00007ffff6ded4e7 in anatomist::GLComponent::glTexNameGLL (this=0xbce9d8, state=..., tex=0)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/surface/glcomponent.cc:851
#4  0x00007ffff6debf45 in anatomist::GLComponent::glMainGLL (this=<optimized out>, state=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/surface/glcomponent.cc:482
#5  0x00007ffff6f05530 in anatomist::AObject::render (this=0xbce860, prim=empty std::list, vs=...)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/object/Object.cc:263
#6  0x00007ffff7070938 in AWindow3D::updateObject2D (this=this@entry=0x2c3ce20, obj=obj@entry=0xbce860, pl=pl@entry=0x7fffffffcab0, 
    selectmode=selectmode@entry=anatomist::ViewState::glSELECTRENDER_NONE)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/window3D/window3D.cc:1025
#7  0x00007ffff7070ac0 in AWindow3D::updateObject (this=this@entry=0x2c3ce20, obj=0xbce860, pl=pl@entry=0x0, selectmode=selectmode@entry=anatomist::ViewState::glSELECTRENDER_NONE)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/window3D/window3D.cc:1049
#8  0x00007ffff7076800 in AWindow3D::refreshNow (this=0x2c3ce20)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/window3D/window3D.cc:1318
#9  0x00007ffff6fd86e5 in QAWindow::triggeredRefresh (this=0x2c3ce20)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/lib/window/qwindow.cc:347
#10 0x00007fffeb6b2010 in QMetaObject::activate (sender=0x2f01310, m=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3567
#11 0x00007fffeb6b7c83 in QObject::event (this=0x2f01310, e=<optimized out>) at kernel/qobject.cpp:1253
#12 0x00007ffff5cc4fdc in QApplicationPrivate::notify_helper (this=this@entry=0x6c4fd0, receiver=receiver@entry=0x2f01310, e=e@entry=0x7fffffffd140) at kernel/qapplication.cpp:4570
#13 0x00007ffff5ccbf16 in QApplication::notify (this=0x7fffffffd440, receiver=0x2f01310, e=0x7fffffffd140) at kernel/qapplication.cpp:4356
#14 0x00007fffeb69d90d in QCoreApplication::notifyInternal (this=0x7fffffffd440, receiver=0x2f01310, event=event@entry=0x7fffffffd140) at kernel/qcoreapplication.cpp:955
#15 0x00007fffeb6d0780 in QCoreApplication::sendEvent (event=0x7fffffffd140, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#16 QTimerInfoList::activateTimers (this=0x6c7ae0) at kernel/qeventdispatcher_unix.cpp:621
#17 0x00007fffeb6cd8f1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#18 0x00007fffeabd6197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007fffeabd63f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fffeabd649c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fffeb6ce2ae in QEventDispatcherGlib::processEvents (this=0x6c6640, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#22 0x00007ffff5d72616 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x00007fffeb69c18f in QEventLoop::processEvents (this=this@entry=0x7fffffffd3c0, flags=...) at kernel/qeventloop.cpp:149
#24 0x00007fffeb69c4f5 in QEventLoop::exec (this=this@entry=0x7fffffffd3c0, flags=...) at kernel/qeventloop.cpp:204
#25 0x00007fffeb6a24b9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#26 0x00007ffff5cc322c in QApplication::exec () at kernel/qapplication.cpp:3828
#27 0x0000000000401939 in main (argc=2, argv=<optimized out>)
    at /volatile/ns215310/development/svn/brainvisa_bioproj/brainvisa/anatomist/anatomist-free/integration/src/anatomist/anatomist.cc:76

Whereas a volume of 16385x16384 opens correctly.
The issue is not dependent on the data type (i.e. it also fails with a U16 volume of 16385x16385).

@nsouedet nsouedet changed the title Volumes with large dimensions fail to open Volumes with large dimensions fail to be visualized Sep 16, 2019
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