Drake: Drake-visualiser not displaying on OSX

Created on 4 Aug 2016  Â·  21Comments  Â·  Source: RobotLocomotion/drake

On launching, I get this output and then nothing :
2016-08-04 14:41:43.978 drake-visualizer[54008:37686131] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

mac

Most helpful comment

Ok the window was indeed hiding.. problem is resolved.

All 21 comments

I was trying to reproduce the problem on my iMac. I do get the same warning message:

2016-08-04 09:27:25.463 drake-visualizer[52472:470663] 
*** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later.
It should not be used in new applications. Use convertRectToBacking: instead.

However, the Drake visualizer is launched.

screen shot 2016-08-04 at 9 29 08 am

My environment (let me know if you need more):

  • OSX 10.11.6
  • qt-4.8.7

How do I start debugging this issue?

Can you post the entire console output when you try to launch Drake Visualizer on OS X?

I just did a fresh clone of Drake's upstream master on my OS X machine and was able to launch Drake Visualizer despite seeing the "userSpaceScaleFactor is deprecated" warning:

liang@Chien-Liangs-MacBook-Pro
~/dev/drake-distro-1/build( master)$ ./install/bin/drake-visualizer
2016-08-04 12:54:26.202 drake-visualizer[24321:2236144] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

I believe @soonho-tri and I are observing the same behavior. Neither of us are able to replicate this issue.

FWIW, I'm not able to reproduce it either.

ok I will tentatively close it..I have no clue whats wrong. Will try to replicate on a fresh clone.

In addition to using a fresh clone, I also recommend re-doing _all_ of the from source instructions just in case some of the platform depdendencies & environment variable settings need updating.

I also recommend re-doing all of the from source instructions just in case some of the platform depdendencies & environment variable settings need updating.

Just want to warn you that the OS X instructions are out-dated. See https://github.com/RobotLocomotion/drake/issues/3024. I plan to get a new MBP today (or next Monday) and I can update the documentation.

But I had a perfectly functional install..i just updated my master to follow upstream and something broke at some point..

If you can dig up the SHA of your previously working install, we can run a git diffall to identify what may have caused things to break.

@naveenoid, what do you have for otool -L ./build/install/bin/drake-visualizer?

I tried to compare that earlier..my otool output :

./drake-visualizer:
/Users/naveenoid/Workspace/drake-distro/build/install/lib/libddApp.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/opt/qt/lib/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.8.0, current version 4.8.7)
/usr/local/opt/qt/lib/QtScript.framework/Versions/4/QtScript (compatibility version 4.8.0, current version 4.8.7)
/Users/naveenoid/Workspace/drake-distro/build/install/lib/libctkPythonConsole.1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/naveenoid/Workspace/drake-distro/build/install/lib/libPythonQt.dylib (compatibility version 0.0.0, current version 0.0.0)
/Users/naveenoid/Workspace/drake-distro/build/install/lib/libQtPropertyBrowser.dylib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/vtk5/lib/vtk-5.10/libQVTK.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/qt/lib/QtWebKit.framework/Versions/4/QtWebKit (compatibility version 4.9.0, current version 4.9.4)
/usr/local/opt/qt/lib/phonon.framework/Versions/4/phonon (compatibility version 4.4.0, current version 4.4.0)
/usr/local/opt/qt/lib/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.7)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkViews.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkInfovis.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkWidgets.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkHybrid.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkVolumeRendering.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkRendering.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.7)
/usr/local/opt/qt/lib/QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.7)
/usr/local/opt/qt/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.7)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkGraphics.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkImaging.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkIO.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkFiltering.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkPythonCore.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtkCommon.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/local/opt/vtk5/lib/vtk-5.10/libvtksys.5.10.dylib (compatibility version 5.10.0, current version 5.10.1)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
@rpath/liblcm.1.dylib (compatibility version 1.0.0, current version 1.3.1)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)

@naveenoid, I see. I couldn't see any difference between mine and yours.

Im not even sure at this stage how I need to start debugging this.

These are long shots but:

  1. Have you tried rebooting your machine?
  2. Have you tried looking at your system logs (under Application → Utilities → Console) when trying to launch Drake Visualizer?

Another idea: Is it possible that the Drake Visualizer window is, in fact, present but just outside of the viewable screen area? http://apple.stackexchange.com/questions/34987/window-out-of-visible-workspace-range-unreachable

Another idea: Is it possible that the Drake Visualizer window is, in fact, present but just outside of the viewable screen area?

If this is the case, you should see the following icon in your dock (in OSX):

screen shot 2016-08-05 at 1 48 35 pm

I tried rebooting yesterday and no Im pretty sure the window doesnt get launched. I will try again tonight though..I will try system logs too.

Ok the window was indeed hiding.. problem is resolved.

the icon changed and hence i didnt recognize the window in the dock anymore

Yay!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwnimmer-tri picture jwnimmer-tri  Â·  4Comments

peteflorence picture peteflorence  Â·  5Comments

mitiguy picture mitiguy  Â·  4Comments

amcastro-tri picture amcastro-tri  Â·  5Comments

Islam0mar picture Islam0mar  Â·  4Comments