# TextNode changes not saved with scene

**URL:** https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664
**Category:** Support
**Created:** [November 17, 2020, 5:24pm UTC](https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664 "2020-11-17T17:24:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [November 17, 2020, 5:24pm UTC](https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664/1 "2020-11-17T17:24:44Z")

</div>

Hi, I am using vtkMRMLTextNodes, but am having problems with modifications to them being saved when I save the scene. Basically, changes to text nodes never seem to trigger that the scene has been changed or that they have been changed in a way that needs to be saved. In the save data window, text node lines are never checked as needing saving, and changing only text node text does not indicate that the scene has changed.

Here is a minimal example to reproduce:

- Open Slicer
- At python interactor enter tn = slicer.mrmlScene.AddNewNodeByClass(‘vtkMRMLTextNode’, ‘testText’)
- Save scene
- Modify text in text node, either via the Texts module or via tn.setText()
- Click to open save data window  
The scene does not register that anything has changed, and the mrml line is unchecked. If the text is \>250 characters, the text file save line is there, but it is unchecked, even though this is a brand new never-before-saved file.

Having the text node send a tn.Modified() signal doesn’t make any difference.

I’m using 4.11.20200930.

I’m guessing that some signal is going awry, but I’m not sure how to figure out what it is or how to fix it if I did realize. Any help you can provide would be appreciated, thanks!

---

<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: [November 17, 2020, 8:58pm UTC](https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664/2 "2020-11-17T20:58:51Z")

</div>

Thanks for reporting this. The issue was fixed about a month ago, so it is available in latest preview release, but not in the latest stable release.

---

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [November 18, 2020, 12:04am UTC](https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664/3 "2020-11-18T00:04:30Z")

</div>

Is the current preview release still pretty unstable due to the VTK9 transition? If so, is there a way for me to fix it in the current stable release without rebuilding Slicer?

---

<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: [November 18, 2020, 12:26am UTC](https://discourse.slicer.org/t/textnode-changes-not-saved-with-scene/14664/4 "2020-11-18T00:26:42Z")

</div>

We reverted to use VTK8.2 in the preview releases until VTK errors are fixed, so it should work well now.
