Skip to content
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

RVIZ2 doesn't work on Windows afer fresh install: missing DLL zlib1.dll #1082

Open
RobertoRoos opened this issue Oct 23, 2023 · 7 comments
Open

Comments

@RobertoRoos
Copy link

RobertoRoos commented Oct 23, 2023

Bug report

Required Info:

  • Operating System:
    • Windows 10 / Sandbox Windows 10
  • Installation type:
    • binaries
  • Version or commit hash:
    • ros2-humble-20230724-windows-release-amd64
  • DDS implementation:
    • default
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

ros2 run rviz2 rviz2

Expected behavior

RVIZ2 will start.

Actual behavior

RVIZ2 does not start, there is only the message:

[ros2run]: Process exited with failure 3221225595

rviz2.exe just exists with a negative error code.

Additional information

On my fresh install, RVIZ2 cannot run. It exits with a negative exit code without further explanation. More information and the workaround in my stackexchange question: https://robotics.stackexchange.com/questions/104892/ros2-humble-on-windows-10-rviz2-gives-error-process-exited-with-failure-32212

It turns out it's looking for a DLL named zlib1.dll, and Windows does not resolve it to zlib.dll.

Apologies if this is not the correct issues list. Since this seems like an error in the publication step, I figured it'd fit here best.

@sloretz
Copy link
Contributor

sloretz commented Nov 2, 2023

I'm going to transfer this issue to ros2/rviz since that's where zlib_vendor comes from:

ament_vendor(zlib_vendor
VCS_URL https://github.com/madler/zlib.git
VCS_VERSION v1.2.13
CMAKE_ARGS
# zlib doesn't use CMAKE_INSTALL_PREFIX correctly, so we need to override
-DINSTALL_BIN_DIR=<INSTALL_DIR>/bin
-DINSTALL_LIB_DIR=<INSTALL_DIR>/lib
-DINSTALL_INC_DIR=<INSTALL_DIR>/include
-DINSTALL_MAN_DIR=<INSTALL_DIR>/share/man
-DINSTALL_PKGCONFIG_DIR=<INSTALL_DIR>/share/pkgconfig
"-DCMAKE_C_FLAGS=${ZLIB_C_FLAGS}"
)

@sloretz sloretz transferred this issue from ros2/ros2 Nov 2, 2023
@sloretz
Copy link
Contributor

sloretz commented Nov 16, 2023

@RobertoRoos would you be willing to attach the contents of C:\xmllint\bin? There was some discussion that the issue you're seeing might be a conflict between chocolatey packages and these instructions: https://docs.ros.org/en/humble/Installation/Alternatives/Windows-Development-Setup.html#install-miscellaneous-prerequisites

@RobertoRoos
Copy link
Author

RobertoRoos commented Nov 17, 2023

Sure, here:
xmllint_bin.zip

However, I'm pretty sure I only installed xmllint after I had this issue with RVIZ2. Only after this I also tried to build ROS2 from source (for different reasons), and during these steps I downloaded xmllint.
xmllint is not listed under the "Windows (binary)" instructions. But I see that xmllint/bin indeed contains a zlib1.dll, which I guess would have also solved this issue.

@seanfuture
Copy link

Also faced the same issue / error as above. First problem is Windows (binary) installation instructions doesn't make any reference to xmllint or rviz, which I would think would be quite instrumental. After extracting the dependencies into C:\xmllint\bin the cannot find zlib1.dll dialog box went away, but still currently getting the following error when running ros2 run rviz2 rviz2:

[ros2run]: Process exited with failure 3221225781

@dirksavage88
Copy link

I am able to replicate the same issues with zlib1.dll not being found. I even tried updating/restoring Visual Studio. Ended up downloading the dll into the system folders but also got the windows error. I am able to get foxglove to work reasonably well in windows for the time being, but this should be fixed.

@zhaolj214
Copy link

  1. using chocolatey install ros2-humble-desktop.221202-pre.nupkg
  2. enter the default installation path, /opt/ros/humble/x64/bin
  3. zlib1.dll can be found here

@dirksavage88
Copy link

Update: I just installed ros2 jazzy on windows 10 and was able to get rviz2 to come up with no issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants