# Missing "Load State Options" dialog

**URL:** https://discourse.paraview.org/t/missing-load-state-options-dialog/7661
**Category:** ParaView Support
**Created:** [July 22, 2021, 1:29am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661 "2021-07-22T01:29:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 22, 2021, 1:29am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/1 "2021-07-22T01:29:50Z")

</div>

I am using Paraview 5.9.0 in Windows and Linux. How do I enable the “Load State Options” dialog when loading a PVSM file? Currently it just automatically loads the PVSM file so no dialog appears. I have done a “Reset to Default Settings”

The problem is when I copy the folder containing the PVSM files and images to a Windows machine I expected to see this dialog as shown here: [New Options when Loading ParaView State Files](https://blog.kitware.com/new-options-when-loading-paraview-state-files/), since I need to enable **Search files under specified directory**.

Thanks in advance,  
Andrew

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [July 22, 2021, 1:36am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/2 "2021-07-22T01:36:34Z")

</div>

Weird. If you go Sources/ Alphabetical/ Sphere/ Apply, then File/ Save Screenshot, do you get the dialog with screenshot options?

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 22, 2021, 1:49am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/3 "2021-07-22T01:49:14Z")

</div>

Yes, I get a “Save Screenshot Options” dialog. Definitely nothing with Save State… or Load State…

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [July 22, 2021, 4:55am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/4 "2021-07-22T04:55:26Z")

</div>

Hmmm … By the way, there is no “how to I turn on the dialog”, it should always be running.

Try the following:

- File/ open/ Examples/ can.exo. Apply.
- File/ Save State/ save it somewhere.
- Reset Session.
- File/ Load State/ load your state file.

Does that give you the Load State Options dialog?

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 22, 2021, 6:27am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/5 "2021-07-22T06:27:37Z")

</div>

@wascott Thankyou for the clue. Please have a look at:  
[LoadStateIssue.zip](https://discourse.paraview.org/uploads/short-url/uJ3J6ZWzuZyjal2PhOpXYkG14H9.zip) (251.4 KB)

In this there are two state files:

- `geometry.pvsm` This file displays the “Load State Options” dialog as expected.
- `source.pvsm This file does not display the “Load State Options” dialog.

The difference is that `source.pvsm` uses the sphere from the ParaView source menu directly. In the case of `geometry.pvsm` it loads `sphere.pvd` as the geometry. So it seems that the “Load State Options” is only triggered when the data file is loaded.

Both these state file use `vtk_dark_bkg.png`. Given that PBR uses a lot of extra files, shouldn’t loading a state file trigger a “Load State Options” dialog for any of the accesed file in the folder?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 22, 2021, 10:52am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/6 "2021-07-22T10:52:54Z")

</div>

You may be running into this issue: [https://gitlab.kitware.com/paraview/paraview/-/issues/20850](https://gitlab.kitware.com/paraview/paraview/-/issues/20850)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [July 22, 2021, 4:53pm UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/7 "2021-07-22T16:53:56Z")

</div>

I bet Utkarsh is correct. Also, note that when you are loading a state without external data (i.e., sources/ sphere), ParaView doesn’t need to ask you where the source is. It’s internal to ParaView!

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 22, 2021, 9:16pm UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/8 "2021-07-22T21:16:41Z")

</div>

Yes this is related in that Paraview is not adjusting the paths to related files such as **vtk\_dark\_bkg.png** when you move the folder to a different machine. If you download

> [@Andrew\_Maclean](#):
>
> [LoadStateIssue.zip](https://discourse.paraview.org/uploads/short-url/uJ3J6ZWzuZyjal2PhOpXYkG14H9.zip)

unzip it and load **geometry.pvsm** , you will see this issue.

The second issue occurs when a paraview source object is used. Here there is no opportunity to adjust paths to other files in the folder such as **vtk\_dark\_bkg.png**. If you load **source.pvsm** you will see this issue.

The above zip file provides the test cases for both issues.

So:

1. ParaView needs to adjust paths for other ancillary files in the same folder. It only does this for the geometry at present. With the advent of PBR and skyboxes there can be up to six other image files needed.
2. If a ParaView source is loaded and there are ancillary files in the same folder, then we still need the opportunity to adjust the paths to these files.

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 22, 2021, 9:18pm UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/9 "2021-07-22T21:18:07Z")

</div>

That’s true but with the advent of PBR:

> [@Andrew\_Maclean](#):
>
> If a ParaView source is loaded and there are ancillary files in the same folder, then we still need the opportunity to adjust the paths to these files.

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 25, 2021, 6:18am UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/10 "2021-07-25T06:18:41Z")

</div>

I made a little Python script to update file paths in the pvsm file that point to the folder the pvsm file is in or to subfolders. It has been tested in Kubuntu and Windows.

I have just updated this version, it now corrrectly works in Windows:  
[RenamePaths.py](https://discourse.paraview.org/uploads/short-url/5XcacMt1MobZr9FI92jgX21JD3B.py) (4.1 KB)  
, it also allows overwriting the pvsm file (use -i to do this).

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [October 13, 2021, 12:23pm UTC](https://discourse.paraview.org/t/missing-load-state-options-dialog/7661/11 "2021-10-13T12:23:57Z")

</div>

A fix for this is under way here: [https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/5270](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/5270)  
Should make it into the next ParaView-5.10 RC.
