<div dir="ltr">This is indeed the issue I discovered yesterday. Some files were moved within ParaView and it broke compatibility with the Midas plugin. I should have a fix committed to next branch this morning.<div><br></div>

<div>Thanks,</div><div><br></div><div>Zach</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 11:32 PM, Patrick Reynolds <span dir="ltr"><<a href="mailto:patrick.reynolds@kitware.com" target="_blank">patrick.reynolds@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div style="font-family:Helvetica;font-size:13px">Brian,<div><br></div><div>This looks like it could be related to the symbolic link of the vtkweb javascript. This may be related to an issue that Zach is tracking.</div>

</div><div class="im HOEnZb">
                <div><div><br></div><div>-- </div><div><div style><span style="background-color:transparent">Patrick Reynolds</span></div><div style><span style="background-color:transparent">Technical Leader</span></div>

<div style><span style="background-color:transparent">Kitware, Inc.</span></div><div style><span style="background-color:transparent"><a href="tel:919%20869%208848" value="+19198698848" target="_blank">919 869 8848</a></span></div>

</div></div>
                 
                </div><div class="HOEnZb"><div class="h5"><p style="color:#a0a0a8">On Tuesday, October 29, 2013 at 5:15 PM, BRIAN E CHAPMAN wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div>




<div>
<div>Patrick,</div>
<div><br>
</div>
<div>I've been toggling the dynamic help and looking at the logs (apache and midas/log/dev.log). Here is what I am getting without and with dynamic help turned on</div>
<div><br>
</div>
<div>Dynamic help off:</div>
<div><br>
</div>
<div><span style="font-family:Calibri;font-size:13px">[Tue Oct 29 15:06:08.706120 2013] [:error] [pid 25319] [client </span><a href="http://155.100.62.145:54950/" style="font-family:Calibri;font-size:13px" target="_blank">155.100.62.145:54950</a><span style="font-family:Calibri;font-size:13px">]
 PHP Warning:  Unknown: function 'NULL' not found or invalid function name in Unknown on line 0, referer:</span><a href="http://155.100.62.142/midas/pvw/paraview/volume?itemId=1" style="font-family:Calibri;font-size:13px" target="_blank">http://155.100.62.142/midas/pvw/paraview/volume?itemId=1</a></div>


<div><br>
</div>
<div>
<div>2013-10-29 17:06:08 WARN (4): URL: <a href="http://155.100.62.142/midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js" target="_blank">http://155.100.62.142/midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js</a></div>


<div>Server IP: 155.100.62.142</div>
<div>Client IP: 155.100.62.145</div>
<div>User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36</div>
<div>Server time: 2013-10-29 17:06:08</div>
<div>RequestURI: /midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js</div>
<div>Referer: <a href="http://155.100.62.142/midas/pvw/paraview/volume?itemId=1" target="_blank">http://155.100.62.142/midas/pvw/paraview/volume?itemId=1</a></div>
<div><b>Message: Invalid controller specified (modules)</b></div>
<div><br>
</div>
<div>Trace:</div>
<div>#0 /usr/local/src/Midas3/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))</div>
<div>#1 /usr/local/src/Midas3/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()</div>
<div>#2 /usr/local/src/Midas3/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()</div>
<div>#3 /usr/local/src/Midas3/index.php(73): Zend_Application->run()</div>
<div>#4 {main}</div>
<div><br>
</div>
<div>Request data: array (</div>
<div>  'controller' => 'modules',</div>
<div>  'action' => 'pvw',</div>
<div>  'public' => 'import',</div>
<div>  'lib' => 'js',</div>
<div>  'module' => 'default',</div>
<div>)</div>
<div><br>
</div>
<div>Session data:</div>
<div>Dao: __PHP_Incomplete_Class::__set_state(array(</div>
<div>   '__PHP_Incomplete_Class_Name' => 'UserDao',</div>
<div>   '_model' => 'User',</div>
<div>   'key' => NULL,</div>
<div>   '_key' => 'user_id',</div>
<div>   'saved' => true,</div>
<div>   'user_id' => '1',</div>
<div>   'firstname' => 'Brian',</div>
<div>   'lastname' => 'Chapman',</div>
<div>   'email' => '<a href="mailto:brian.chapman@utah.edu" target="_blank">brian.chapman@utah.edu</a>',</div>
<div>   'thumbnail' => NULL,</div>
<div>   'company' => NULL,</div>
<div>   'hash_alg' => 'sha256',</div>
<div>   'salt' => 'uirWyLLLBDcN9udgEy2o0ZwZulN17z8s',</div>
<div>   'creation' => '2013-10-24 14:09:40',</div>
<div>   'folder_id' => '1',</div>
<div>   'admin' => '1',</div>
<div>   'privacy' => '0',</div>
<div>   'view' => '0',</div>
<div>   'uuid' => '52696264c0b08ca6ba63fc546fe5b950545d654ae59cc',</div>
<div>   'city' => '',</div>
<div>   'country' => '',</div>
<div>   'website' => '',</div>
<div>   'biography' => '',</div>
<div>   'dynamichelp' => '1',</div>
<div>))</div>
<div><br>
</div>
<div>Last database query: SELECT `setting`.* FROM `setting` WHERE (name = 'temp_directory') AND (module = 'core') LIMIT 1</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Dynamic Help ON:</div>
<div><br>
</div>
<div><span style="font-family:Calibri;font-size:13px">[Tue Oct 29 15:10:44.885671 2013] [:error] [pid 25321] [client </span><a href="http://155.100.62.145:55013/" style="font-family:Calibri;font-size:13px" target="_blank">155.100.62.145:55013</a><span style="font-family:Calibri;font-size:13px">]
 PHP Warning:  Unknown: function 'NULL' not found or invalid function name in Unknown on line 0, referer:</span><a href="http://155.100.62.142/midas/pvw/paraview/volume?itemId=1" style="font-family:Calibri;font-size:13px" target="_blank">http://155.100.62.142/midas/pvw/paraview/volume?itemId=1</a><br style="font-family:Calibri;font-size:13px">


<span style="font-family:Calibri;font-size:13px">[Tue Oct 29 15:10:44.894376 2013] [:error] [pid 25319] [client </span><a href="http://155.100.62.145:55006/" style="font-family:Calibri;font-size:13px" target="_blank">155.100.62.145:55006</a><span style="font-family:Calibri;font-size:13px">]
 PHP Fatal error:  AppController::isDynamicHelp(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;UserDao&quot; of the object you are trying to operate on was loaded _before_
 unserialize() gets called or provide a __autoload() function to load the class definition  in /usr/local/src/Midas3/core/AppController.php on line 424, referer:</span><a href="http://155.100.62.142/midas/pvw/paraview/volume?itemId=1" style="font-family:Calibri;font-size:13px" target="_blank">http://155.100.62.142/midas/pvw/paraview/volume?itemId=1</a></div>


<div><br>
</div>
<div>
<div>2013-10-29 17:10:44 CRIT (2): Fatal Error: Array</div>
<div>(</div>
<div>    [type] => 1</div>
<div>    [message] => AppController::isDynamicHelp(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;UserDao&quot; of the object you are trying to operate on was loaded _before_
 unserialize() gets called or provide a __autoload() function to load the class definition </div>
<div>    [file] => /usr/local/src/Midas3/core/AppController.php</div>
<div>    [line] => 424</div>
<div>    [typeText] => E_ERROR</div>
<div>)</div>
<div><br>
</div>
<div><br>
</div>
<div>URL: <a href="http://155.100.62.142/midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js" target="_blank">http://155.100.62.142/midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js</a></div>
<div><br>
</div>
<div>Server IP: 155.100.62.142</div>
<div>User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36</div>
<div>Server time: 2013-10-29 17:10:44</div>
<div>Referer: <a href="http://155.100.62.142/midas/pvw/paraview/volume?itemId=1" target="_blank">http://155.100.62.142/midas/pvw/paraview/volume?itemId=1</a></div>
<div>Parameters (post): Array</div>
<div>(</div>
<div>)</div>
<div>Parameters (get): Array</div>
<div>(</div>
<div>)</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Brian E. Chapman, Ph.D.</div>
<div>Associate Professor</div>
<div>Department of Radiology</div>
<div>University of Utah</div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>Patrick Reynolds <<a href="mailto:patrick.reynolds@kitware.com" target="_blank">patrick.reynolds@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, October 29, 2013 1:28 PM<br>
<span style="font-weight:bold">To: </span>Brian Chapman <<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>" <<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>><br>


<span style="font-weight:bold">Subject: </span>Re: [Midas] ParaView Web support for Midas<br>
</div>
<div><br>
</div>
<div>
<div>
<div style="font-family:Helvetica;font-size:13px">Brian,
<div><br>
</div>
<div>Are you able to get to the admin page and disable dynamic help?</div>
<div><br>
</div>
<div>That should yield an improved error message.</div>
</div>
<div>
<div><br>
</div>
<div>-- </div>
<div>
<div style><span style="background-color:transparent">Patrick Reynolds</span></div>
<div style><span style="background-color:transparent">Technical Leader</span></div>
<div style><span style="background-color:transparent">Kitware, Inc.</span></div>
<div style><span style="background-color:transparent"><a href="tel:919%20869%208848" value="+19198698848" target="_blank">919 869 8848</a></span></div>
</div>
</div>
<p style="color:#a0a0a8">On Thursday, October 24, 2013 at 6:58 PM, BRIAN E CHAPMAN wrote:</p><blockquote type="cite"><div>
<div><span>
<div>
<div>
<div>
<div>Hi Zach, et al.,</div>
<div><br>
</div>
<div>I'm making progress here. I looked at Sebastien's suggestion of using VirtualGL but decided to go back and build a VM with X11 support. I've got Midas running and ParaView web configured as per the web site and Zach's instructions. When I got to view an
 object (a 3D CT stored in .mha format) I get a blank canvas with "Volume rendering: pe0017s4.mha" on the top and a bunch of control widgets on the right.</div>
<div><br>
</div>
<div>When I look at the apache2 logs I see the following.</div>
<div><br>
</div>
<div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>acces.log: 111.222.33.444 - - [24/Oct/2013:16:38:02 -0600] "GET /midas/modules/pvw/public/import/lib/js/vtkweb-all.min.js HTTP/1.1" 500 936 "<a href="http://111.222.33.555/midas/pvw/paraview/volume?itemId=1" target="_blank">http://111.222.33.555/midas/pvw/paraview/volume?itemId=1</a>"
 "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0"</div>
<div><br>
</div>
<div>error.log [Thu Oct 24 16:38:02.468812 2013] [:error] [pid 7303] [client 111.222.33.444:34502] PHP Fatal error:  AppController::isDynamicHelp(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class
 definition &quot;UserDao&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets cal</div>
<div><br>
</div>
</blockquote><div>The midas log file is as follows:</div>
</div>
<div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>dev.log</div>
<div>Referer: <a href="http://111.222.33.555/midas/pvw/paraview/volume?itemId=1" target="_blank">
http://111.222.33.555/midas/pvw/paraview/volume?itemId=1</a></div>
<div>Parameters (post): Array</div>
<div>(</div>
<div>)</div>
<div>Parameters (get): Array</div>
<div>(</div>
<div>)</div>
</blockquote></div>
<div>Any ideas as to what is going wrong?</div>
<div><br>
</div>
<div>Brian</div>
<div><br>
</div>
<div>
<div>Brian E. Chapman, Ph.D.</div>
<div>Associate Professor</div>
<div>Department of Radiology</div>
<div>University of Utah</div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>Zach Mullen <<a href="mailto:zach.mullen@kitware.com" target="_blank">zach.mullen@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, October 17, 2013 11:54 AM<br>
<span style="font-weight:bold">To: </span>Brian Chapman <<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>><br>
<span style="font-weight:bold">Cc: </span>Patrick Reynolds <<a href="mailto:patrick.reynolds@kitware.com" target="_blank">patrick.reynolds@kitware.com</a>>, "<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>" <<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>><br>


<span style="font-weight:bold">Subject: </span>Re: [Midas] ParaView Web support for Midas<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Brian,
<div><br>
</div>
<div>Answered your questions inline.</div>
<div><br>
<br>
<div>On Thu, Oct 17, 2013 at 1:49 PM, BRIAN E CHAPMAN <span dir="ltr"><<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>></span> wrote:<br><blockquote type="cite"><div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>Patrick,</div>
</div>
</div>
<div><br>
</div>
<div>That saved a lot of time! A couple of dummy questions. In /var/www/midas/modules there is already a pvw directory. So where am I supposed to create the symbolic link to $PARAVIEW_ROOT/lib/paraview-4.0/www?</div>
</div>
</div>
</div></blockquote><div><br>
</div>
<div>You should create a symlink at /var/www/midas/modules/pvw/public/import, and it should point to the paraview-4.0/www dir.</div><blockquote type="cite"><div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Also, just because I'm kind of dense, do I need to set the DISPLAY environment variable. The pop-up help says "If the DISPLAY env var should be set…" I don't know if it should be.</div>
</div>
</div>
</div></blockquote><div>It depends what environment you are running in. If you plan on running this headlessly as a server, you will probably need to set the environment variable. If you are running the server within an already existing X environment, you probably won't need
 to set it. If you open a terminal and type</div>
<div><br>
</div>
<div>echo $DISPLAY</div>
<div><br>
</div>
<div>It will show you the current value of your display ID. </div><blockquote type="cite"><div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Finally, is there a tutorial or demo for the Midas/ParaView interface?</div>
</div>
</div>
</div></blockquote><div><br>
</div>
<div>We just finished transitioning the demo application to the latest version of ParaViewWeb. The demo of the old capabilities is here:
<a href="http://50.58.123.185/external/midas/visualize/paraview/volume?itemId=44" target="_blank">
http://50.58.123.185/external/midas/visualize/paraview/volume?itemId=44</a></div>
<div><br>
</div>
<div>There isn't much currently in the way of developer-oriented documentation for the module; for that you might have to just consult us with your questions :) </div>
<div><br>
</div>
<div>Thanks,</div><blockquote type="cite"><div>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Thanks for the help.</div>
<div><br>
</div>
<div>Brian</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-width:1pt medium medium;border-style:solid none none;padding:3pt 0in 0in;text-align:left;font-size:11pt;font-family:Calibri;border-top-color:rgb(181,196,223)">
<span style="font-weight:bold">From: </span>Patrick Reynolds <<a href="mailto:patrick.reynolds@kitware.com" target="_blank">patrick.reynolds@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, October 17, 2013 11:12 AM<br>
<span style="font-weight:bold">To: </span>Brian Chapman <<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>" <<a href="mailto:midas@public.kitware.com" target="_blank">midas@public.kitware.com</a>><br>


<span style="font-weight:bold">Subject: </span>Re: [Midas] ParaView Web support for Midas<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div style="font-family:Helvetica;font-size:13px">Brian,
<div><br>
</div>
<div>You'll need to build Paraview Web from Source or download binaries. It comes with paraview, so you should be able to follow the instructions stemming from this wiki page:</div>
<div><br>
</div>
<div><a href="http://www.paraview.org/Wiki/ParaViewWeb" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb</a></div>
<div><br>
</div>
<div>HTH.</div>
</div>
<div>
<div><br>
</div>
<div>-- </div>
<div>
<div><span style="background-color:transparent">Patrick Reynolds</span></div>
<div><span style="background-color:transparent">Technical Leader</span></div>
<div><span style="background-color:transparent">Kitware, Inc.</span></div>
<div><span style="background-color:transparent"><a href="tel:919%20869%208848" value="+19198698848" target="_blank">919 869 8848</a></span></div>
</div>
</div>
<p style="color:rgb(160,160,168)">On Thursday, October 17, 2013 at 12:56 PM, BRIAN E CHAPMAN wrote:</p><blockquote type="cite"><div>
<div><span>
<div>
<div>
<div>
<div>Hello Midas World,</div>
<div><br>
</div>
<div>I'm trying to build an instance of Midas with ParaviewWeb enabled. I'm working on an Ubuntu 12.04 instance. Midas built fine, but I'm having a difficult time getting Paraview to build. Just curious if the paraview-python package that is available in the
 ubuntu distribution is sufficient for this purpose? If it is, curious about the details of the configuration for the instructions: "Make sure to symlink the www directory of your ParView build directory…"</div>


</div>
<div><br>
</div>
<div>I'm suspicious of the package since when I try to run pvpython I get an error:</div>
<div><br>
</div>
<div>"Error converting executable file "/usr/bin/../lib/paraview/pvpython" to real path: no such file or directory"</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Brian E. Chapman, Ph.D.</div>
<div>Associate Professor</div>
<div>Department of Radiology</div>
<div>University of Utah</div>
<div><br>
</div>
</div>
</div>
<div>
<div>_______________________________________________</div>
<div>Midas mailing list</div>
<div><a href="mailto:Midas@public.kitware.com" target="_blank">Midas@public.kitware.com</a></div>
<div><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a></div>
</div>
</div>
</span></div>
</div></blockquote><div><br>
</div>
</div>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com" target="_blank">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
<br>
</div>
</div></blockquote></div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Zach Mullen<br>
R & D Engineer<br>
Kitware Inc.<br>
<a href="tel:919-869-8858" value="+19198698858" target="_blank">919-869-8858</a> </div>
</div>
</div>
</div>
</span></div>
</div>
</span></div>
</div></blockquote><div><br>
</div>
</div>
</div>
</span>


</div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Zach Mullen<br>R & D Engineer<br>Kitware Inc.<br>919-869-8858
</div>