# SegmentEditor: No node found for itemID

**URL:** https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925
**Category:** Support
**Created:** [August 17, 2024, 11:45am UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925 "2024-08-17T11:45:50Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 17, 2024, 11:45am UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/1 "2024-08-17T11:45:50Z")

</div>

Whenever a new segment is created in ‘Segment editor’, this message appears in the python console:

> No node found for itemID {19…??}

It is unknown in which release it started, it is noted in factory release 5.7.0-2024-08-05 r32964 / 52af5a2.

Just reporting as it floods the console and can cast doubts about user code.

Regards.

---

<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: [August 17, 2024, 2:39pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/2 "2024-08-17T14:39:04Z")

</div>

Tha ks for reporting. Could you please describe how to reproduce it?

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 17, 2024, 3:22pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/3 "2024-08-17T15:22:32Z")

</div>

> [@lassoan](#):
>
> describe how to reproduce it

Start slicer.  
Load a scalar volume.  
Go to ‘Segment editor’.  
Click ‘Add’ a new segment.

The messages appear in the Python console, even with no ‘.slicerrc.py’ loaded. I agree it’s certainly harmless.

---

<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: [August 17, 2024, 8:02pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/4 "2024-08-17T20:02:05Z")

</div>

I cannot reproduce this on Windows, using the latest Slicer Preview Release. Could you please upload the full application log somewhere (dropbox, onedrive, …) and post the link here? Thank you.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 17, 2024, 8:28pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/5 "2024-08-17T20:28:35Z")

</div>

> [@lassoan](#):
>
> the full application log

Thank you for considering this.

The log file is [here](https://disk.yandex.com/d/7zRwkztytPXq_Q).

After further testing, it is related to SlicerEditor since the lines do not appear if SlicerEditor is not installed. I’ll use Slicer without this module as I’ve got [another](https://github.com/SlicerMorph/SlicerEditor/issues/40) issue with it.

Sorry to have bothered you.

Ping @muratmaga .

---

<div class="post-metadata">

### Author: ![oothomas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/oothomas/32/68743_2.png) [@oothomas](https://discourse.slicer.org/u/oothomas)
#### Post date: [August 19, 2024, 8:30pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/6 "2024-08-19T20:30:01Z")

</div>

Hi,

Thanks for reporting this issue. I think I found its source. This can quickly be resolved by removing the else statement in the method below, but I should investigate why this is being triggered when you are working in SegmentEditor.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/8/b83e372ae9207c32e58e17a1802d6ea6da65d6bc.jpeg)

I’ll remove this statement for now and push an update to the repo.

Oshane

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 19, 2024, 8:44pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/7 "2024-08-19T20:44:27Z")

</div>

> [@oothomas](#):
>
> I’ll remove this statement for now and push an update to the repo.

Ok, thanks, I’ll keep you informed after my next build this weekend.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 24, 2024, 12:48pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/8 "2024-08-24T12:48:54Z")

</div>

> [@chir.set](#):
>
> I’ll keep you informed

These messages no longer appear in the Python console.

The code completion combobox appears nicely. However, every time it appears, the following is printed in the terminal where Slicer is launched (not Python console):

`Running "json.dumps(list(globals().keys()))" result is "[\" __name__ \", \" __doc__ \", ... very loooooong list... \"json\"]"`

There is code completion though.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 25, 2024, 2:16pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/9 "2024-08-25T14:16:20Z")

</div>

Hello @oothomas ,

This message also appears many many times in the terminal:

`In "PyFileFileWriter" class, function 'canWriteObject' is expected to return a boolean !`

I don’t mean to bother you, it’s just that I sometimes look for expected messages in the terminal and have to scroll much to find them.

Regards.

---

<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: [August 25, 2024, 5:37pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/10 "2024-08-25T17:37:20Z")

</div>

These will be good things to sort out - can you file issues on the repository?

> **[Issues · SlicerMorph/SlicerEditor](https://github.com/SlicerMorph/SlicerEditor/issues)**
>
> a simple programming editor for Slicer based on monaco - Issues · SlicerMorph/SlicerEditor

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [August 25, 2024, 8:28pm UTC](https://discourse.slicer.org/t/segmenteditor-no-node-found-for-itemid/37925/11 "2024-08-25T20:28:49Z")

</div>

> [@pieper](#):
>
> can you file issues on the repository?

[Here](https://github.com/SlicerMorph/SlicerEditor/issues/43) you go.
