# Error whenever loading from state file

**URL:** https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319
**Category:** ParaView Support
**Created:** [August 28, 2024, 7:00pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319 "2024-08-28T19:00:46Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 28, 2024, 7:00pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/1 "2024-08-28T19:00:46Z")

</div>

Hi everyone. I’m getting the following error loading on Paraview\_5.13.0-RC1 on OSX 14.6. Then Paraview hangs and I cannot proceed. When I load from state when I have already opened a file, it loads, but I receive the same error.

Error also occurs from saved state of a just a loaded file that has not had any changes, filters, etc.

I’ve seen a few times this has popped up as a reported issue, and a colleague has recently had this message as well. Is this a bug? Does anyone have any ideas as to why this might be happening?

`[pvserver]vtkDemandDrivenPipeline:765 ERR| vtkPVDataRepresentationPipeline (0x403bfd0): Input for connection index 0 on input port index 0 for algorithm vtkImageSliceRepresentation (0x4c901f0) is of type vtkRectilinearGrid, but a vtkImageData is required.`

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 29, 2024, 8:27am UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/2 "2024-08-29T08:27:38Z")

</div>

Hi @deanwormer

Please share your data and statefile

Best,

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 29, 2024, 4:26pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/3 "2024-08-29T16:26:36Z")

</div>

Thanks Mathieu.

[test-comb\_50-sophia.pvsm](https://discourse.paraview.org/uploads/short-url/mxZL33OxauLFSmjfWeJZ5LcU3bI.pvsm) (332.1 KB)  
[test-comb\_50](https://discourse.paraview.org/uploads/short-url/1wl8sWCqBJSyjUcZH5tUeEHdKcV) (278.5 KB)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 30, 2024, 7:24am UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/4 "2024-08-30T07:24:43Z")

</div>

> Is this a bug?

Yes, these are actually known issues but they can be ignored.

I see two issues here:

1. It looks like any statefile containing a RectilinearGrid output will output this error for some reason, this should not happen: [https://gitlab.kitware.com/paraview/paraview/-/issues/21417](https://gitlab.kitware.com/paraview/paraview/-/issues/21417)
2. Slice representation should not even be available for RectilinearGrid in the interface:  
[https://gitlab.kitware.com/paraview/paraview/-/issues/21531](https://gitlab.kitware.com/paraview/paraview/-/issues/21531)

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 30, 2024, 1:19pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/5 "2024-08-30T13:19:08Z")

</div>

Thanks Mattieu.

The issue that I’m having is that even with this simple state file where I’m using a volume representation will hang and crash when I try to load it from a state file, so I can’t ignore it. If I can’t open it on a compute node, that makes things problematic because sometimes Paraview will crash and I will lose all of my work.

Is there workaround? Thoughts?

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 30, 2024, 1:24pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/6 "2024-08-30T13:24:32Z")

</div>

Additionally, how would Paraview load rectilinear data?

I have observed:

1. Load rectilinear data
2. ParaView automatically loads data as a slice
3. I change representation to Volume
4. I save the state file
5. I restart ParaView, then load the saved state file
6. I still get the slice error

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 30, 2024, 1:32pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/7 "2024-08-30T13:32:19Z")

</div>

> [@deanwormer](#):
>
> I’m using a volume representation will hang and crash when I try to load it from a state file, so I can’t ignore it.

Please provide steps to reproduce this specific issue.

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 30, 2024, 2:22pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/8 "2024-08-30T14:22:10Z")

</div>

1. Connect to Server
2. Open File: test-comb\_50
3. Open Data With: NetCDF Reader
4. Apply
5. File → Save State: “test.pvsm”
6. Quit ParaView
7. Open ParaView
8. Connect to Server
9. File → Load State: “test.pvsm” (Use File Names from State)
10. ParaView hangs / same error occurs

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 30, 2024, 2:35pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/9 "2024-08-30T14:35:04Z")

</div>

> [@deanwormer](#):
>
> test-comb\_50

I’m unable to reproduce with my own netcdf file, please share your file.

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 30, 2024, 2:45pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/10 "2024-08-30T14:45:25Z")

</div>

It’s attached above in my 2nd msg. Thanks so much for your help!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 30, 2024, 2:52pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/11 "2024-08-30T14:52:07Z")

</div>

Indeed.

I’m still unable to reproduce, I tried with ParaView 5.12 and ParaView 5.13 on linux.

I do not see any hangs or crash, altough I do see the error.  
Also, I do not see ParaView “automatically loads data as a slice”.

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [August 30, 2024, 4:15pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/12 "2024-08-30T16:15:04Z")

</div>

re: automatically loads as slice - I only meant that from the error message, it is presumably using the vtkImageSliceRepresentation somewhere when it’s being loaded.

I’m not sure why it’s happening on my end, still hangs+error whether connected to a server or not. I’m using 5.13.0-RC1, so I’m downloading 5.13.0 and rebooting to see if there is any difference.

---

<div class="post-metadata">

### Author: ![deanwormer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/deanwormer/32/15102_2.png) [@deanwormer](https://discourse.paraview.org/u/deanwormer)
#### Post date: [September 3, 2024, 5:44pm UTC](https://discourse.paraview.org/t/error-whenever-loading-from-state-file/15319/13 "2024-09-03T17:44:15Z")

</div>

Still no joy. The workaround that I’ve come upon is to open a data file first then load the state file. I still get the errors but no infinite hanging.
