<div dir="ltr">Thanks Utkarsh, I started looking at the source of <span style="color:rgb(128,0,0);font-family:monospace,fixed;font-size:13px;line-height:13px;white-space:pre-wrap;background-color:rgb(251,252,253)">pqLoadStateReaction.cxx</span><div><br></div><div>Sorry to bother you again, with next set of questions</div><div><br></div><div>My code snippet is the following where I want to load a pvsm file in this way</div><div><br></div><div><div> <span style="background-color:rgb(255,255,255)"><font color="#0000ff" face="monospace, monospace"> std::string pvsm_file = "myOwn.pvsm";</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff" face="monospace, monospace"> QString qstr = QString::fromStdString(pvsm_file);</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#0000ff"><font face="monospace, monospace"> pqLoadStateReaction::loadState(qstr);</font><br></font></span></div></div><div><br></div><div>The code compiles (all the necessary headers are taken care of) but I get a seg fault during run time.</div><div><br></div><div>Is there any place where I can see some examples on that.</div><div><br></div><div>To summarise this is what I wnt to achieve :</div><div><br></div><div>1. Load any .pvsm file</div><div>2. Run the pqServerManagerModel and get down to resolve all the vtkSMProxy </div><div><br></div><div>I am familiar with step 2 by which I can scan the paraview pipeline and get the information all object proxies. At this stage I am not able to figure out how to <font color="#0000ff">link between <span style="background-color:rgb(255,255,255)">step 1 and step 2.</span></font></div><div><br></div><div>Thanks in advance for your time.</div><div>Chiranjib</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 1:45 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I am curious to know that when I want to load a state file (.pvsm) which<br>
> classes in PV are used.<br>
<br>
</span>Your entry point is this: pqLoadStateReaction::loadState(). You can<br>
follow the code from there to see how the state file gets loaded.<br>
<span class=""><br>
> Can I write a stand alone application which can read and understand a .pvsm<br>
> file?<br>
<br>
</span>Yes, but if you're just interested in processing extra items in the<br>
XML, you're better of listening to<br>
pqApplicationCore::aboutToLoadState(...) or<br>
pqApplicationCore::stateLoaded(...) signals.<br>
</blockquote></div><br></div>