-
Notifications
You must be signed in to change notification settings - Fork 68
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
idyntree-model-view installed from conda binary package or with conda dependencies fails on WSL on Ubuntu 22.04 #1210
Comments
Can you share:
|
I installed idyntree using conda. Below is the output of the conda environment. Conda list
Idyntree version: |
Can you try to create a clean environment with
to understand if the problem is env-specific or due to your system? In my system with Ubuntu 24.04 (not Ubuntu 22.04) this works fine:
|
Can you also report the output of |
I just tried with Ubuntu 22.04 in WSL, and I was able to reproduce your problem. |
Below is the output for env output
|
I did a bit of tests:
So there is some strange interaction between sdl/irrlicht from conda-forge and WSL/Ubuntu 22.04. Thanks a lot for reporting, but it seems intricate, so I am not sure I will be able to look into this. Just to understand, could you use Ubuntu 24.04 in WSL instead of 22.04 as a workaround? You just need to install it from the Microsoft Store, and it should be quite easy to setup. |
I made it much simpler and moved onto an Ubuntu 24.04 partition 🥇 |
Thanks! |
I've also encountered this problem using Wayland. The solution for me was to compile idyntree with wayland support as in master...flferretti:idyntree:wayland_support. @traversaro do you think we could add this? One main problem that I see is that then on conda-forge there would be two different recipes, one for X11 and one for Wayland as I couldn't find a way to check the session apart from using FYI @xela-95 @S-Dafarra |
I still I am not sure how to replicate the problem. You are running in a wayland system in which XWayland is not running? |
I am running on Ubuntu 24.10 (Wayland). XWayland should be running as |
Ack! It is still not clear to me what is happening, but perhaps we can just try first to open the window with X11, and if it fails try with Wayland? Both will link both X11 and Wayland, but that is not a problem I guess. |
I wonder if it is related to #1116, but in theory it should be using SDL: https://github.com/conda-forge/irrlicht-feedstock/blob/d7f0e13c54a887efe13588402859f83b80591c29/recipe/build.sh#L9 |
In 68fb676 I added X11 as a fallback for Wayland. We can also do the opposite, but since from Ubuntu 24.10 wayland is selected by default, this option might be a bit more future-oriented |
That seems good to me, the only doubt is that if the glfw versions that we use is compiled with wayland support, however if you open a PR we should easily detect that as we would have a linking error otherwise. |
At a first glance, the wayland support in apt package of glfw3 is not available in 20.04, 22.04 and 24.04 https://packages.ubuntu.com/focal/libglfw3 and https://packages.ubuntu.com/jammy/libglfw3, while it is available from 24.10 ( https://packages.ubuntu.com/oracular/libglfw3). So we can't just enable that by default as it will result in a linking error. Let's check if there is some macro in glfw to check if wayland support is enabled or not. |
Unfortunately there is no macro to detect if glfw3 was compiled with wayland support or not. Perhaps the easist solution is just to have an option to enable or not wayland support (with X11 fallback), and set its default to |
Alright, thanks for investigating on this. I'll open a PR so we can discuss there the details |
Hi, I have WSL (Ubuntu 22.04 LTS) installed on Windows 11 with the following specs:
By running the command
idyntree-model-view -m <model_urdf>
, i get the following error:cc: @traversaro
The text was updated successfully, but these errors were encountered: