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

GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported #404

Open
tiencapham opened this issue Jan 6, 2023 · 6 comments
Labels

Comments

@tiencapham
Copy link

Describe the bug
I am facing the bug using opencv-4.1.0 with darknet_ros. I understand that they are using different version on gtk+. Is there a workaround on this issue?

(YOLO:176179): Gtk-ERROR *: 17:12:20.981: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
[darknet_ros-1] process has died [pid 176179, exit code -5, cmd /home/learnlab/catkin_ws/devel/lib/darknet_ros/darknet_ros __name:=darknet_ros __log:=/home/learnlab/.ros/log/a24096b6-8e02-11ed-9df0-c309f58de8de/darknet_ros-1.log].
log file: /home/learnlab/.ros/log/a24096b6-8e02-11ed-9df0-c309f58de8de/darknet_ros-1
.log
all processes on machine have died, roslaunch will exit

@Bruce-Si
Copy link

Bruce-Si commented Mar 6, 2023

Hello, any progress? I met the same error. Though I compiled opencv and darknet_ros with -D WITH_GTK_2_X=ON, it doesn't work.

@YHuniv
Copy link

YHuniv commented May 4, 2023

Check your opencv versions, in my case i had opencv4.4 and 4.2 installed in same time, uninstalled 4.4 and it works.
Hope it helps !

@Emre-SabT
Copy link

Check your opencv versions, in my case i had opencv4.4 and 4.2 installed in same time, uninstalled 4.4 and it works. Hope it helps !

Hi, I have same error. How you check your opencv versions. Can you explain your solution with steps please ? :)

@Emre-SabT
Copy link

In my case, i changed the enable_opencv= true to false in darknet_ros/config/ros.yaml file and the error is gone, hope it helps.

@YHuniv
Copy link

YHuniv commented Oct 10, 2023

for Opencv version use interminal :
python3

import cv2
print(cv2.version)
4.2.0

If you put openCv=false i think i will be too slow , try this installation in this link if still need help.
https://www.youtube.com/watch?v=whAFl-izD-4&ab_channel=s1n7ax

@Emre-SabT
Copy link

Thanks for your reply. I am working on the Orin Nano and I got this error. I worked on my PC and Jetson Nano I didn't get an error and everything is working. I don't understand why I got this error in Orin Nano.

I will work on your solution, and after that, I will share the output.

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

No branches or pull requests

4 participants