-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rviz + moveit_setup_assistant on osx need macos_min_version=10.9 & MACOSX_DEPLOYMENT_TARGET=10.9 #69
Comments
Thanks again for testing and all! I can locally also reproduce this issue. I can get further when I add EDIT Here is my log:
|
The only thing that changed w.r.t. rendering since 1.14.4 is ros-visualization/rviz#1588. |
Given your log, @wolfv, this looks like a Qt issue. Did you change the Qt version as well? Could you try building rviz 1.14.4 in the current environment to exclude that rviz is the culprit? |
Thanks @rhaschke. Indeed I need to try rebuilding the older RViz. So far I am running into another issue with some resource (the Liberation font) being already added... |
Do you have an error message? There are two fontdef files in rviz/ogre_media/fonts, one was intended for Ogre 1.9 and the other one for Ogre >= 1.10, which uses another syntax. Maybe, in your config, both are considered? |
I tried this in rviz that I built in a catkin workspace and it didn't seem to fix it yet. Did you also try locally? |
I did. It works fine for me:
|
(that's build using boa) |
I uploaded the package here if you want to try: https://anaconda.org/TobiasRobotics/ros-noetic-rviz/1.14.5/download/osx-64/ros-noetic-rviz-1.14.5-py38h5347e94_5.tar.bz2 |
Given the fact that your OpenGL version is 2.10 only, |
Indeed, your package works for me locally, too @Tobias-Fischer! Awesome :) Maybe my local catkin build was somehow different from the proper build. @rhaschke I think talking to opengl directly as is done here is not really cross-platform anyways (I thought this is usually abstracted away through OGRE, right? We had compile issues with the glGetVersion and GL_VERSION symbols on Windows, before). |
@rhaschke, I have prototyped a Github Actions pipeline to continously test RViz builds on top of these conda packages: https://github.com/RoboStack/rviz/runs/2076163521?check_suite_focus=true You can see the code here: https://github.com/RoboStack/rviz/blob/noetic-add-test/.github/workflows/ci.yml and the environment setup file here: https://github.com/RoboStack/rviz/blob/noetic-add-test/.github/workflows/ci_env.yml As you can see, these conda packages could make cross-platform testing much simpler. Would you be interested in such an action upstream? |
Sure, having github actions available for cross-platform testing would be great. However, for the rviz repo, these actions should be independent of conda, shouldn't they? By the way, I will be happy to apply your patches upstream as well. Please file PRs. |
But we need to get all dependencies of RViz from somewhere. Using conda packages for the dependencies (Qt, OGRE, ros-noetic-std-msgs ...) makes this fast and simple (since they are binary packages, it takes no time at all to install them, vs building all deps from source). |
@rhaschke - my best guess is that one of the functions never returns and therefore rviz gets stuck at the splash screen. But really just a guess. Re the fontdef - I was meant to open a bug report upstream about this. The 1.10 fontdef doesn't work, I've tried it and it results in some error (can't remember which one). My suspicion is that the new fontdef is only compatible with OGRE >1.10 but not =1.10. I tried to dig to see when they did the relevant change but couldn't trace it down exactly. Long story short, we need the old fontdef and that one is working nicely .. |
@rhaschke any ideas on how to fix these tests? https://github.com/RoboStack/rviz/runs/2095215307?check_suite_focus=true they all seem to fail... do I need to set some other variable? |
The test target isn't called |
wonderful, that worked great for OS X and Linux: https://github.com/RoboStack/rviz/runs/2096713763?check_suite_focus=true Now I just need to fix Windows! |
So oddly enough rviz still cannot be started with the latest build from robostack, but it works fine with my build from https://anaconda.org/TobiasRobotics/ros-noetic-rviz/1.14.5/download/osx-64/ros-noetic-rviz-1.14.5-py38h5347e94_5.tar.bz2 Any idea how to debug this further? |
@sonelu - could you try https://anaconda.org/TobiasRobotics/ros-noetic-rviz/1.14.5/download/osx-64/ros-noetic-rviz-1.14.5-py38h5347e94_5.tar.bz2 and see whether it works for you? |
Yes, that one works for me too. Any idea what's different from the one on robostack channel? |
Actually there are 3 of them in the channel and two have the same build number 6:
I'm not sure how conda picks them, probably by date?
|
Hi @wolfv - bad news for you ;). I had an intuition that I hadn't upgraded |
@Tobias-Fischer can you let me know the conda-build version of the environment that was working? For the boa commit you indicated I had to downgrade conda-build to 3.20.5 (from 3.21.4) |
I could reproduce the (working) build with the older boa. That's a really lucky coincidence! ok, so I think one change is also that we're loading virtual package in boa with the later release. The earlier boa picks up build number 3 from robostack, while the later release picks up build number 5. This is related to the Now the question is:
|
I back ported virtual packages to the old boa, and teh resulting rviz still works (compiled with otherwise rebuilt packages). |
Checking the two
We could try to compile with new boa and MACOSX_DEPLOYMENT_TARGET set to 10.9... I'll have to stop for tonight but will take this up tomorrow. |
I tried setting this in conda_build_cofnig.yaml:
and built again with latest boa and it seems to work. Can you try that, too @Tobias-Fischer ? |
in that case, the otool -l result is again
|
Yes, can confirm that setting the version to 10.9 makes it work (can't make sense of it though - can you?) |
@Tobias-Fischer thanks a lot for checking! I don't know either what's' going on exactly. We can do two more things:
Maybe there is something in the ${CMAKE_ARGS} that we added that also influences some other stuff down the line in the cmake files of either ROS or Qt, or OGRE? |
Quick test - I removed passing the |
thanks. yeah, setting the deployment target will add some environment variables that should change some compiler flags etc. We can have the deployment target more specific (either only for the packages that need it, or we can add a conda_build_config specific to rviz to set it to the lower osx version). What do you think? |
Hmm .. ideally we wanna find out what's going on (as we'll likely run into a similar problem in the future), but for now yeah we can add a conda_build_config specific to rviz to have a working version in our channel. |
@Tobias-Fischer btw: after installing the 1.14.5 from the |
@sonelu - I uploaded https://anaconda.org/TobiasRobotics/ros-noetic-rviz/1.14.6/download/osx-64/ros-noetic-rviz-1.14.6-py38h7870788_8.tar.bz2 which shouldn't have these issues. Note that this is still a workaround, we'll need to think about a proper fix. |
@Tobias-Fischer I tried that version and is not working on my machine. if I start rviz from a launch file I don't get any errors, but the rivz window does not show up. And killing the launch with Ctrl-C escalates for the rviz process with SIGTERM to close down, which is a bad sign. If I run rviz on its own, there is the same empty window as at the top of this thread. I've seen there is a 1.14.6 on the RoboStack too. I have not checked that one yet. Do you want me to check it? For the time being the only one that works on my machine is the 1.14.4 (build py38h38af97b_3). |
Maybe I uploaded the wrong version, sorry. I'll double check Monday. |
Sorry - indeed it was the wrong version. This one should work: https://anaconda.org/TobiasRobotics/ros-noetic-rviz/1.14.6/download/osx-64/ros-noetic-rviz-1.14.6-py38ha61b876_8.tar.bz2 |
@Tobias-Fischer that one works on my machine. |
Great, thanks for testing @sonelu! |
I uploaded this package to the robostack channel while we don't have a proper solution @wolfv. Have you had any further thoughts what the best way forward is? Modify vinca to create a conda_build_config just for rviz with 10.9 as macos version? |
fyi @nkalupahana i guess the problems you saw could be related to this. |
This should not happen in the future anymore due to c2e2640 However, there might be other GUI applications affected that we don't yet know about which might need to be included in that hack |
Let's keep track of the new issues in #187 |
After the full rebuild #62 rviz is broken.
When starting a launch file or simply rviz, there is a blank window and the process hangs:
The bug was originally discussed in #63.
Thanks to @jc-bao comment by downgrading to rviz 1.14.4 the problem goes away.
The text was updated successfully, but these errors were encountered: