<div dir="ltr">Thanks for tracking this down guys. I am sure it was a lot of fun :-)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 4, 2013 at 9:05 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@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 dir="ltr">It should be noted that my machine had compiled Qt 4.8.0 and had this same problem. So the primary issue is VS2010 without SP1 installed looks to have a bug when building Qt in Release mode with optimizations enabled.<div>



<br></div><div>A Qt bug also goes more in depth with this problem: <a href="https://bugreports.qt-project.org/browse/QTBUG-11445" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-11445</a><br></div></div><div class="gmail_extra">

<div><div class="h5">

<br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 11:02 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@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 dir="ltr"><div>I did some testing using a machine that Rob let me access, and I conclude that this machine, and the amber10 dashboard machine, both have issues with their Qt builds  (win64 vs10).  A trivial test program will crash if it shows a QTableView, and I found a relevant Qt bug report:<div>



<br>

<br>"QListView, QTreeView and QTableView crash in x64 (64 bits) 
release mode VS2010 (VC++2010), using Qt compiled with win32-msvc2010 
platform."<br>
<br><a href="https://bugreports.qt-project.org/browse/QTBUG-19175" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-19175</a><br><br></div>A comment on the bug report suggests this a solution:  install Microsoft Visual Studio 2010 SP1 and rebuild Qt<br>





<br><br></div>I think that this test, TestQtDebugLeaksView.cxx, is the only test running on amber10 that creates and shows a Qt widget.  I found another VTK test, TestVtkQtTableView.cxx, but it does not appear to be enabled anywhere.  Neither are the tests in GUISupport/Qt/Testing/Python (I think).<br>





<div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">I think a good next step would be:<br><br></div><div class="gmail_extra">-switch vtk dashboard on amber10 to use c:\dashboards\support\qt-4.8.1-x64\bin</div>





<div class="gmail_extra">-enable more Qt tests and see if any of them pass on amber10.  The current Qt tests passing on amber10, such as TestQtTableModelAdapter, don't actually create any widgets.  <br></div><div class="gmail_extra">





-install vs10 sp1 and rebuild Qt if that hasn't happened yet<br><br></div><div class="gmail_extra">Can someone with local access to amber10 volunteer to try this?<span><font color="#888888"><br></font></span></div>

<span><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">

Pat<br><br><br></div></font></span><div><div><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 3, 2013 at 12:15 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">An update- Rob Maynard is helping me investigate the issue.  We're able to reproduce the crash on another Windows machine, too.  It requires a release build to reproduce.  Sorry for the failing test on the dashboard, hopefully it won't be too much longer.<span><font color="#888888"><br>






<br>Pat <br></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 29, 2013 at 2:20 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So sounds like the easy thing to do is to use Qt 4.8.1 on this machine. Do we need it to be Qt 4.7.4 for some reason?<div>






<div><br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Pat Marion <<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>><br>
To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
Cc: David Cole <<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>>; VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>>; David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>>; Robert Maynard <<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>><br>







Sent: Thu, Mar 28, 2013 11:13 am<br>
Subject: Re: [vtk-developers] Help with TestQtDebugLeaksView test failure<br>
<br>
<br>
I was able to login to amber10 and debug the issue further, but have not resolved it yet.  Here's what I've found:<br>
<br>
- what Kyle originally reported seems to not be true.  The program will segfault when called in the command line, you don't have to call it through ctest to make it crash<br>
<br>
- if you prepend the path with c:\dashboards\support\qt-4.8.<u></u>1-x64\bin then the program completes successfully without crashing.  It only crashes when using qt-4.7.4 on the path.<br>
<br>
- it crashes on line 156 in vtkQtDebugLeaksView.cxx when making the Qt library call QTableView::<u></u>resizeColumnsToContents().<br>
<br>
- this crash is eerily similar to one I have seen in the past in QTableView on certain versions of Qt on Windows, and it's near impossible to debug.  Sigh.<br>
<br>
<br>
Rob, if you could use vs10 on amber10 to collect a debug backtrace for this program, that would be helpful to verify that the crash is actually inside the QtGui library.  I had trouble figuring out how to launch the vtkGUISupportQtCxxTests.exe.<u></u>exe program from within vs10.  It complained about a missing dll which means I wasn't setting the qt path correctly for the vs10 debugging session.<br>







<br>
You can run the test and reproduce the crash with:<br>
<br>
cd C:\Dashboards\My Tests\VTK-vs10<br>
PATH=c:\dashboards\support\qt-<u></u>4.7.4-x64\bin;%PATH%<br>
bin\Release\<u></u>vtkGUISupportQtCxxTests.exe TestQtDebugLeaksView<br>
<br>
or<br>
<br>
ctest -V -C Release -R TestQtDebugLeaksView<br>
<br>
<br>
If someone wants to push a commit that removes the one line that calls resizeColumnsToContents() then that will avoid the crash on amber10 and make the test pass.  Resizing the columns is not required, it's just for appearances.  Or, another way to avoid the crash seems to be setting amber10 to use the qt 4.8.1 install.  Or disable this test on amber10.  From what I can tell, the bug is in Qt's QTableView for Windows.  The bug could be exposed by an incorrect usage of the QTableView on my part, but it works on all other platforms, and also works with qt 4.8.1 on the same machine.<br>







<br>
Sorry for the failing test and lack of clear resolution.  When this code was originally added, the test passed on all dashboard machines, but I'm not sure what the history is of the failure on amber10's vs10 dashboard.<br>







<br>
Pat<br>
<br>
<br>
On Thu, Mar 28, 2013 at 3:37 PM, Pat Marion <<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>> wrote:<br>
<br>
I'd be happy to help, but I don't have access to that machine.  I tried vnc but it doesn't seem to have a vnc server running.  I could try remote desktop if somebody says that's ok, but I don't want to log out the dashboard session by accident.<br>







<br>
Pat<br>
<br>
<br>
<br>
On Thu, Mar 28, 2013 at 1:54 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br>
<br>
Pat,<br>
<br>
<br>
Maybe you can help. It is one of the few tests that are failing (after we clear up newly introduced failures).<br>
<br>
<br>
Bill<br>
<br>
<br>
<br>
On Wed, Mar 27, 2013 at 5:27 PM, Pat Marion <<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>> wrote:<br>
<br>
Hi Kyle,<br>
<br>
Did you discover the issue?  I'm the original test author, but I'm not sure about this crash.  Did you try what Dave suggested, set the PATH env variable before running the process?  Perhaps there are mismatched Qt library versions?  I have seen cases of crashes when a Windows service pack update is installed but the Qt libs are not recompiled.<br>







<br>
Pat<br>
<br>
<br>
On Fri, Mar 22, 2013 at 1:08 AM, David Cole <<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>> wrote:<br>
<br>
<br>
<br>
Also, the script has this in it:<br>
<br>
# change path so paraview can find Qt<br>
set(ENV{PATH} "C:/Python26\;C:/Dashboards/<u></u>Support/qt-4.7.4-x64/bin\;$<u></u>ENV{PATH}”)<br>
<br>
Try doing that before running the test and see if that makes a difference.<br>
 <br>
 <br>
        <br>
                From: David Gobbi<br>
                Sent: March 21, 2013 10:55 AM<br>
<br>
                To: Kyle Lutz<br>
                        CC: VTK Developers<br>
                Subject: Re: [vtk-developers] Help with TestQtDebugLeaksView test failure<br>
        <br>
<br>
<br>
<br>
        <br>
 <br>
On Thu, Mar 21, 2013 at 8:49 AM, Kyle Lutz <<a href="mailto:kyle.lutz@kitware.com" target="_blank">kyle.lutz@kitware.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Thu, Mar 21, 2013 at 10:36 AM, David Cole <<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Run it through ctest, but add “-D ExperimentalTest” on the command <br>
</blockquote></blockquote>
line and<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">






see if that makes a difference...<br>
</blockquote>
<br>
No difference :-(<br>
<br>
Here's the full output:<br>
<br>
C:\Dashboards\My Tests\VTK-vs10>ctest -R TestQtDebugLeaks -C Release <br>
</blockquote>
-D Experime<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
ntalTest -V<br>
UpdateCTestConfiguration  from :C:/Dashboards/My <br>
</blockquote>
Tests/VTK-vs10/<u></u>DartConfiguratio<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
n.tcl<br>
Parse Config file:C:/Dashboards/My <br>
</blockquote>
Tests/VTK-vs10/<u></u>DartConfiguration.tcl<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    Site: amber10.kitware<br>
    Build name: Win64-VS10<br>
  Add coverage exclude regular expressions.<br>
  Add coverage exclude: vtk.*TCLInit.cxx<br>
  Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx<br>
  Add coverage exclude: .*vtkOpenGLState.*<br>
  Add coverage exclude: .*Testing.Cxx.*cxx<br>
  Add coverage exclude: .*Testing.Cxx.*h<br>
  Add coverage exclude: .*moc_.*cxx<br>
  Add coverage exclude: .*/Utilities/.*<br>
  Add coverage exclude: .*/ThirdParty/.*<br>
UpdateCTestConfiguration  from :C:/Dashboards/My <br>
</blockquote>
Tests/VTK-vs10/<u></u>DartConfiguratio<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
n.tcl<br>
Parse Config file:C:/Dashboards/My <br>
</blockquote>
Tests/VTK-vs10/<u></u>DartConfiguration.tcl<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Test project C:/Dashboards/My Tests/VTK-vs10<br>
Constructing a list of tests<br>
Done constructing a list of tests<br>
Checking test dependency graph...<br>
Checking test dependency graph end<br>
test 690<br>
     Start 690: vtkGUISupportQtCxx-<u></u>TestQtDebugLeaksView<br>
<br>
690: Test command: "C:\Dashboards\My <br>
</blockquote>
Tests\VTK-vs10\bin\Release\<u></u>vtkGUISupportQtC<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
xxTests.exe" "TestQtDebugLeaksView" "-D" "c:/Dashboards/My <br>
</blockquote>
Tests/VTKData" "-T" "<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
C:/Dashboards/My Tests/VTK-vs10/Testing/<u></u>Temporary" "-V" <br>
</blockquote>
"Baseline/QVTK/TestQtDeb<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
ugLeaksView.png"<br>
690: Test timeout computed to be: 240<br>
690: Expect a warning message to be printed:<br>
690: vtkQtDebugLeaksModel::<u></u>getObjects: bad class name: "vtkConeSource"<br>
1/1 Test #690: vtkGUISupportQtCxx-<u></u>TestQtDebugLeaksView <br>
</blockquote>
...***Exception: SegFault<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
   0.06 sec<br>
<br>
0% tests passed, 1 tests failed out of 1<br>
<br>
Total Test time (real) =   1.29 sec<br>
<br>
The following tests FAILED:<br>
         690 - vtkGUISupportQtCxx-<u></u>TestQtDebugLeaksView (SEGFAULT)<br>
Errors while running CTest<br>
</blockquote>
<br>
Can you insert a long "Sleep" near the beginning of the test, run the<br>
test with ctest, and then attach a debugger to the process while it is<br>
sleeping?<br>
<br>
 - David<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtk-developers</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtk-developers</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtk-developers</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
 </div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Robert Maynard
</font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>