<div dir="ltr">Try to run the content of the main in the EDT to see if that change?<div><br></div><div style>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 5, 2013 at 3:55 PM, Ric Wright <span dir="ltr"><<a href="mailto:rkwright@geofx.com" target="_blank">rkwright@geofx.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="word-wrap:break-word"><div style="font-size:14px;font-family:Verdana,sans-serif">SO I worked my way through the Java Examples in VTK/Examples/Tutorial, converting each to an Eclipse project, correcting the load library calls. They all worked until I reach # 5, which differs from the others in that it has the following code:</div>
<div style="font-size:14px;font-family:Verdana,sans-serif"><br></div><div style="font-size:14px"><div><span style="font-family:Verdana,sans-serif;white-space:pre-wrap">        </span><font face="Consolas">vtkInteractorStyleTrackballCamera style = new vtkInteractorStyleTrackballCamera();</font></div>
<div><font face="Consolas"> iren.SetInteractorStyle(style);</font></div><div><font face="Consolas"><br></font></div><div><font face="Consolas"> iren.Initialize();</font></div><div><font face="Consolas"> iren.Start();</font></div>
</div><div style="font-size:14px;font-family:Verdana,sans-serif"><br></div><div style="font-size:14px;font-family:Verdana,sans-serif">This causes:</div><div style="font-size:14px;font-family:Verdana,sans-serif"><br></div>
<div><div><font color="#ff0000" face="Consolas" style="font-size:12px">2013-08-05 14:38:21.256 java[6596:1203] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-945.18/Misc.subproj/NSUndoManager.m:328</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px">2013-08-05 14:38:21.256 java[6596:1203] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.</font></div><div><font color="#ff0000" face="Consolas" style="font-size:12px">2013-08-05 14:38:21.258 java[6596:1203] (</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>0 CoreFoundation 0x00007fff880b2b06 __exceptionPreprocess + 198</font></div><div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>1 libobjc.A.dylib 0x00007fff90a073f0 objc_exception_throw + 43</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>2 CoreFoundation 0x00007fff880b2948 +[NSException raise:format:arguments:] + 104</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>3 Foundation 0x00007fff92f914c2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>4 Foundation 0x00007fff92ff7807 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 156</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>5 AppKit 0x00007fff8bea024d -[NSApplication run] + 687</font></div><div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>6 libvtkRenderingOpenGL-6.0.1.dylib 0x00000001177ee284 -[vtkCocoaServer start] + 244</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>7 libvtkRenderingOpenGL-6.0.1.dylib 0x00000001177eea09 _ZN30vtkCocoaRenderWindowInteractor5StartEv + 265</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>8 libvtkRenderingCoreJava.dylib 0x00000001172fc3b1 Java_vtk_vtkRenderWindowInteractor_Start_15 + 49</font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>9 ??? 0x000000010df1ecd5 0x0 <a href="tel:%2B%204528925909" value="+4528925909" target="_blank">+ 4528925909</a></font></div>
<div><font color="#ff0000" face="Consolas" style="font-size:12px"><span style="white-space:pre-wrap">        </span>10 ??? 0x000000010df0d8da 0x0 <a href="tel:%2B%204528855258" value="+4528855258" target="_blank">+ 4528855258</a></font></div>
</div><div><font color="#ff0000" face="Consolas" style="font-size:12px"><br></font></div><div><font>This is apparently a Cocoa problem on 64 bit systems:</font></div><div><font><br></font></div><div><font><a href="http://www.dsource.org/forums/viewtopic.php?t=5762&sid=e34eedb51399e9c6776536c3d0da67ef" target="_blank">http://www.dsource.org/forums/viewtopic.php?t=5762&sid=e34eedb51399e9c6776536c3d0da67ef</a></font></div>
<div><font><br></font></div><div><font><a href="https://bugreports.qt-project.org/browse/QTBUG-7393" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-7393</a></font></div><div><font><br></font></div><div><font><a href="http://code.google.com/p/ultra-finance/issues/detail?id=5" target="_blank">http://code.google.com/p/ultra-finance/issues/detail?id=5</a></font></div>
<div><font><br></font></div><div><font>I am on OSX 10.8.4 64 bit, MBP.</font></div><div><font><br></font></div><div><font>Oddly, though, in the debugger there APPEARS to be only one thread when the exception occurs and it is labelled (main) but it could be that Eclipse (which itself tends to use lots of threads) may be using what OSX thinks is the main thread and so this widget is being created in not-the-real-main-thread.</font></div>
<div><font><br></font></div><div><font>Haven't dug into it any farther.</font></div><span class="HOEnZb"><font color="#888888"><div><font><br></font></div><div><font>Ric</font></div><div><font><br></font></div></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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>