# Designer will not load with slicer widgets

**URL:** <https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496>\
**Category:** Development\
**Created:** [January 24, 2019, 5:24pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496 "2019-01-24T17:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![holmesrb](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/holmesrb/32/1825_2.png) [@holmesrb](https://discourse.slicer.org/u/holmesrb)\
**Post date:** [January 24, 2019, 5:24pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496/1 "2019-01-24T17:24:15Z")

</div>

Operating system: ubuntu 18.04  
Slicer version: 4.11.0  
Expected behavior: designer loads slicer widgets after build  
Actual behavior: exits with error message - this function is deprecated. Use currentNodeID() instead. qMRMLNodeComboBox::basename failed

I built slicer today, but needed to alter a line in libarchive/archive\_pack\_dev.c as per the post from phcerdan.

When running ./Slicer --designer I get the error above. I have tried copying the various plugins to the designer directory and that enables me to run designer with most of the widgets - if I copy libqMRMLWidgetsPlugins.so it crashes with the same error.

Many thanks - Robin

---

<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:** [January 24, 2019, 9:18pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496/2 "2019-01-24T21:18:29Z")

</div>

Do you get an error if you just launch `./Slicer --designer` without loading any .ui file?  
Can you post a screenshot so that we can see what displays the error message and where?

---

<div class="post-metadata">

**Author:** ![holmesrb](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/holmesrb/32/1825_2.png) [@holmesrb](https://discourse.slicer.org/u/holmesrb)\
**Post date:** [January 24, 2019, 9:39pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496/3 "2019-01-24T21:39:47Z")

</div>

![screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/46840beb89921ad2118773c1187288d4bc612ac8.png)

Thanks for the reply. I have attached a screenshot showing the error message after launching ./Slicer --designer.

---

<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:** [January 25, 2019, 2:15pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496/4 "2019-01-25T14:15:50Z")

</div>

It seems that you’ve built Qt designer in debug mode. Debug-mode builds are often forced to crash by `assert` calls when some consistency checks fail. This problem will not occur with a designer built in Release mode and I believe this is what most people are using. To fix the debug-mode designer, we should probably change the `assert` in ctkMatrixWidget.cpp, line 241. We’ll change this in CTK, too (I’ve already submitted a [pull request](https://github.com/commontk/CTK/pull/847)).

---

<div class="post-metadata">

**Author:** ![holmesrb](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/holmesrb/32/1825_2.png) [@holmesrb](https://discourse.slicer.org/u/holmesrb)\
**Post date:** [January 26, 2019, 2:04pm UTC](https://discourse.slicer.org/t/designer-will-not-load-with-slicer-widgets/5496/5 "2019-01-26T14:04:12Z")

</div>

Brilliant - I have had success in Release mode. Many thanks for your help.
