# Volume module crash when call from a build with a loadable module

**URL:** <https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750>\
**Category:** Development\
**Created:** [July 25, 2019, 10:47am UTC](https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750 "2019-07-25T10:47:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbahegne](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbahegne/32/4837_2.png) [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Post date:** [July 25, 2019, 10:47am UTC](https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750/1 "2019-07-25T10:47:23Z")

</div>

Hello, if I build (debug) a loadable module even empty (freshly created from the extension wizard) and run slicer, when i click on volumes extension i got a crash with this assert :

> Switch to module: “Volumes”
> 
> ASSERT: “this-\>Table-\>columnWidth(j) == newWidth” in file /Slicer/Slicer-SuperBuild-Debug/CTK/Libs/Widgets/ctkMatrixWidget.cpp, line 241
> 
> error: [/Slicer/Slicer-SuperBuild-Debug/Slicer-build/bin/./SlicerApp-real] exit abnormally - Report the problem.

It’s a debug only problem ? Can i safely deactivate this assert or anything ?

Thank you.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 25, 2019, 11:32am UTC](https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750/2 "2019-07-25T11:32:54Z")

</div>

I run into that assert from time to time too - it crashes debug builds for no good reason as far as I can tell. It would be great of someone could figure out the logic in the matrix widget but in the short term it’s easiest to comment out the assert and rebuild.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 25, 2019, 6:29pm UTC](https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750/3 "2019-07-25T18:29:06Z")

</div>

This assert make the application crash in debug mode if the requested column width of a table cannot be set. There are many reasons why a set size request cannot be fulfilled, so this definitely should not be an assert, but probably not even a warning.

We [already had a fix for this](https://github.com/commontk/CTK/pull/847) but it has not been committed to CTK. I’ve committed it now. It still logs a warning. If the warning turns out to be annoying then we can remove that, too.

---

<div class="post-metadata">

**Author:** ![rbahegne](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbahegne/32/4837_2.png) [@rbahegne](https://discourse.slicer.org/u/rbahegne)\
**Post date:** [July 26, 2019, 1:04pm UTC](https://discourse.slicer.org/t/volume-module-crash-when-call-from-a-build-with-a-loadable-module/7750/4 "2019-07-26T13:04:29Z")

</div>

OK, it’s fine thank you !
