-
Notifications
You must be signed in to change notification settings - Fork 216
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
Segmentation fault (core dumped) when creating or opening ros project #508
Comments
I don't see exactly what the issue is and how it is related to the plugin. Can you provide clear steps on how to reproduce this? Is this only an issue with the snap and works otherwise with a "native" Qt Creator installation? |
The issue is resolved since I freshly installed qt 6.6.3, qtcreator 13.0.0, and the plugin. Previously I only received the segmentation fault crashes specifically upon creating a ROS project using Colcon as the build system. It happened on both the snap and native installations. I will close this issue. |
Apologies for last message, this error has begun to happen again and fresh installs do not solve now. I do have the plugin working on a different laptop also with Ubuntu 22.04, Foxy, Qt 6.7.2 and QtC 14.0.1. But for various reasons i need to get it working on the original machine. In terms of replicating, I am on Ubuntu 20.04, using ROS Foxy and Colcon. I take it for granted that the error is related to the plugin because Qt and QtCreator function fine, and I only get the seg fault when trying to open a .workspace file with the build system as colcon. All that I need to do to replicate the issue is install Qt, QtCreator, ros qtc plugin. Upon reopening qtcreator and opening the project with the .workspace file QtCreator will crash in the same manner.
If you have more questions or need more details please let me know, I am eager to solve this problem. Thanks very much for any help. I hope any of the above terminal outputs are of use to you. |
I still cannot reproduce this. I am using Qt Creator 14.0.1 from the online installer (i.e. located at I created a workspace with the layout:
and then created a new project -> "ROS Workspace" -> Colcon and jazzy. The workspaces opens and I can compile. After this, the layout looks as expected:
Other than different ROS 2 versions (foxy vs jazzy) I cannot see why yours should fail and mine not. Unless you want to compile and link Qt, you do not have to install Qt manually to use Qt Creator. The offline and online installed Qt Creator versions come with their own Qt distribution. If you want to further debug this, I can only suggest that you take a look at the README again, in particular the section about "Debugging" with |
To update, after installing from source the plugin worked fine and led to no crashes, this is still the case after some time. Unfortunately I still do not know the exact reason for the initial crashes. |
Did you follow the Development & Debugging instructions that I mentioned in my previous post to debug the issue and create a backtrace from the crash? |
I am new to ros and trying to get qtcreator working with a ros project. Distro=Foxy, Build System=Colcon, OS=Ubuntu 20.04
I am launching qtcreator through the terminal, first sourcing /opt/ros/foxy/setup.bash, then sourcing install/setup.bash
With qtcreator-ros installed through snap when I create a ros project (foxy, colcon) qt crashes after creating only the .workspace file:
I can reopen this project using the created .workspace file (only when installed through snap). With no CMakeLists.txt in the project im unsure how to make the packages in the src folder visible in qt. And when trying to build the project this is the compile output:
When following the manual installation guide in the readme then this is the output when creating a ros project (again only the .workspace file is created before the crash):
And the output when trying to reopen that project:
QMake -v: QMake version 3.1, Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu
The only version file in the ~/Qt directory is 6.7.2
Following the debug steps in the qt terminal (qtcreator-ros) I received this output:
Thank you for any help. I realise this issue is similar to #496, #496,
but that seems to have been solved in a push and my installations are fresh.
The text was updated successfully, but these errors were encountered: