-
Notifications
You must be signed in to change notification settings - Fork 49
[roscore]Problem when running roscore error: ? [31m[rosout-1] process has died [pid 2716, exit code -1073741515... #77
Comments
@WangZP10969 Thank for reporting this! It smells like the installation doesn't get alone under vscode command prompt. We will take a look on this combination. Also, I noticed |
I tried using the command choco upgrade ros-catkin-tools -y ros-catkin-tools v0.0.1.1901231908 Chocolatey upgraded 1/1 packages. After I run roscore, it seems to be a similar problem. I used cmd to run the test, the prompt message is the same, but an error message will pop up at the same time. The code could not be executed because boost_date_time-vc141-mt-x64-1_66.dll could not be found. Reinstalling the program may resolve this issue |
thanks again for reporting the issue, the problems are seemingly lack of dependency. a few things to check here:
btw, thanks for the detailed steps! these are valuable knowledge of how to integrate ROS with vscode =) |
Yes, I did it according to the instructions in this document. Below I will give a record of my installation process. Process record:
I tried to open another terminal and started the turtle simulation node, but there was no response and no error message.
I also tried this process in Windows Command Prompt, in addition to the above messages, there are several system errors that indicate missing: log4cxx.dll,boost_date_time-vc141-mt-x64-1_66.dll,boost_system-vc141-mt-x64-1_66.dll
|
just want to update on this thread, we are currently focusing on upstreaming our I will revisit and try to reproduce this issue later this week, and update on this thread afterwards =) My apologies for the delay, and thanks! |
I would like to report the exact same issue seems to have occurred with me as well. I have read through his logs and errors and they seem similar to mine. I am curious if there might be a solution yet. |
The effect of running on my computer is this, there is no solution yet. I have been busy with something else recently. After a while I will try to use other computers to test if there will be similar problems. |
I tried it again today and the results are consistent with the previous ones. |
In ROS on Windows, we installed a specific Python runtime (c:\opt\python27amd64) for your ROS setup. You can find the package to learn more: https://roswin.azurewebsites.net/packages/ros-python2/
From your log, error Or you can try to directly run |
Thank you for your help. |
@WangZP10969 Those should be under FYI, here is my If it is not the case, I'd suggest to investigate a bit in |
@seanyen PATH=C:/opt/ros/melodic/x64\bin;C:/opt/ros/melodic/x64\lib;C:\opt\python27amd64;C:\opt\python27amd64\Scripts; |
What if you patch
Then run |
Actually there is no C:/opt/rosdeps in my directory. After I set it up, run the path as follows: Running roscore should be the same before: |
@WangZP10969 To manually recover that, after
It is going to pull large amount of files so please be patient. After it finishes, you should find lots of files downloaded to |
@seanyen Yesterday I tried to install rosdep, but there may be some unsuccessful ones that caused the situation to not improve. I think it may be affected by a lot of things in the current environment, so I will test the full process in a clean environment in the virtual machine. The process is as follows:
This test may not be completed very quickly, I am busy with some work, once I have the results, I will update it in time. |
I think the reason I found the problem is because I couldn't install ros completely. After using the tutorial, the ros is installed very fast, but obviously there are a lot of things missing, at least the rosdeps folder is not installed.
|
I've also run into this problem today and have come up with a workaround. After running Changing the cache location for chocolatey allowed for the temporary file to be successfully created, which in turn allowed for the rosdep to be initialized and run correctly. To be specific, here are the steps I took for recovery:
(sorry for the lack of exact output; my chocolatey logs got deleted as a casualty) |
@maxsvetlik Thank you very much for your reply, I will try your way. |
@maxsvetlik I try this way to clear the all of the ros, and set choco timeout very long, its worded normals |
Thanks for trying it out and sharing the outcome =) |
Describe the bug
A loop error message appears when running roscore:
[roslaunch][INFO] 2019-02-20 10:19:37,971: [rosout-1] restarting process
[roslaunch][INFO] 2019-02-20 10:19:37,971: process[rosout-1]: restarting os process
[roslaunch][INFO] 2019-02-20 10:19:37,973: process[rosout-1]: start w/ args [[u'c:\opt\ros\melodic\x64\lib\rosout\rosout.exe', u'__name:=rosout', u'__log:=C:\Users\XASY-PC\.ros\log\e53261c0-34b5-11e9-9a06-10f005138886\rosout-1.log']]
[roslaunch][INFO] 2019-02-20 10:19:37,973: process[rosout-1]: cwd will be [C:\Users\XASY-PC.ros]
[roslaunch][INFO] 2019-02-20 10:19:37,974: process[rosout-1]: started with pid [10964]
[roslaunch][ERROR] 2019-02-20 10:19:38,177: [rosout-1] process has died [pid 10964, exit code -1073741515, cmd c:\opt\ros\melodic\x64\lib\rosout\rosout.exe __name:=rosout __log:=C:\Users\XASY-PC.ros\log\e53261c0-34b5-11e9-9a06-10f005138886\rosout-1.log].
log file: C:\Users\XASY-PC.ros\log\e53261c0-34b5-11e9-9a06-10f005138886\rosout-1*.log
To Reproduce
1.
I use vs code as the terminal and then install the vs2017 Community Edition.
I use the following parameters to run the terminal, and run vs code with admin.
"terminal.integrated.shellArgs.windows": "C:\Windows\System32\cmd.exe /k 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat' -arch=amd64 -host_arch=amd64",
The running prompt is as follows, It seems to be normal:
** Visual Studio 2017 Developer Command Prompt v15.9.7
** Copyright (c) 2017 Microsoft Corporation
C:\Users\XASY-PC>
Next I installed choco, the prompt is normal
Finally I installed ros, using the following instructions:
I think it may be that I don't have python installed, so I installed python with the following instructions.
Next I ran the following command, but gave me a wrong prompt
I searched for this problem and then ran the following command
Pip install defusedxml
After running bat again, the prompt is as follows:
Traceback (most recent call last):
File "C:\opt\ros\melodic\x64\bin\roscore", line 72, in
import roslaunch
File "C:\opt\ros\melodic\x64\lib\site-packages\roslaunch_init_.py", line 39, in
import rospkg
ImportError: No module named rospkg
pip install rospkg
Then I can run bat successfully.
After I ran roscore, the above loop prompt appeared.
[roslaunch][ERROR] 2019-02-20 10:00:11,440: [rosout-1] process has died [pid 6544, exit code -1073741515, cmd c:\opt\ros\melodic\x64\lib\rosout\rosout.exe __name:=rosout __log:=C:\Users\XASY-PC.ros\log\2e344a80-34b3-11e9-a423-10f005138886\rosout-1.log].
log file: C:\Users\XASY-PC.ros\log\2e344a80-34b3-11e9-a423-10f005138886\rosout-1*.log
[roslaunch][INFO] 2019-02-20 10:00:11,454: [rosout-1] restarting process
[roslaunch][INFO] 2019-02-20 10:00:11,460: process[rosout-1]: restarting os process
[roslaunch][INFO] 2019-02-20 10:00:11,461: process[rosout-1]: start w/ args [[u'c:\opt\ros\melodic\x64\lib\rosout\rosout.exe', u'__name:=rosout', u'__log:=C:\Users\XASY-PC\.ros\log\2e344a80-34b3-11e9-a423-10f005138886\rosout-1.log']]
[roslaunch][INFO] 2019-02-20 10:00:11,461: process[rosout-1]: cwd will be [C:\Users\XASY-PC.ros]
[roslaunch][INFO] 2019-02-20 10:00:11,464: process[rosout-1]: started with pid [9064]
Expected behavior
The record in master.log is as follows
[rosmaster.main][INFO] 2019-02-20 10:19:22,015: initialization complete, waiting for shutdown
[rosmaster.main][INFO] 2019-02-20 10:19:22,016: Starting ROS Master Node
[xmlrpc][INFO] 2019-02-20 10:19:22,016: XML-RPC server binding to 0.0.0.0:11311
[rosmaster.master][INFO] 2019-02-20 10:19:22,019: Master initialized: port[11311], uri[http://WangZP-PC:11311/]
[xmlrpc][INFO] 2019-02-20 10:19:22,019: Started XML-RPC server [http://WangZP-PC:11311/]
[xmlrpc][INFO] 2019-02-20 10:19:22,020: xml rpc node: starting XML-RPC server
[rosmaster.master][INFO] 2019-02-20 10:19:32,769: +PARAM [/run_id] by /roslaunch
[rosmaster.master][INFO] 2019-02-20 10:19:32,769: +PARAM [/roslaunch/uris/host_wangzp_pc__10612] by /roslaunch
[xmlrpc][ERROR] 2019-02-20 10:19:37,135: Traceback (most recent call last):
File "C:\opt\python27amd64\lib\SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "C:\opt\python27amd64\lib\SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\opt\python27amd64\lib\SocketServer.py", line 652, in init
self.handle()
File "C:\opt\python27amd64\lib\BaseHTTPServer.py", line 342, in handle
self.handle_one_request()
File "C:\opt\python27amd64\lib\BaseHTTPServer.py", line 310, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File "C:\opt\python27amd64\lib\socket.py", line 480, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 10054]
Environment information:
Chocolatey v0.10.11
asio 1.12.1
assimp 4.0.1.1809242322
boost 1.66.0.1809242326
bullet3 2.87.0.1809242326
bzip2 1.0.6.1809242322
chocolatey 0.10.11
chocolatey-core.extension 1.3.3
chocolatey-windowsupdate.extension 1.0.2
cmake 3.13.4
cmake.install 3.13.4
console_bridge 0.4.0.1809242322
cppunit 1.12.1.1809242322
eigen 3.3.4
git 2.20.1
git.install 2.20.1
google-mock 1.8.0.1809242326
google-test 1.8.0.1809242322
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20170509
KB3033929 1.0.3
KB3035131 1.0.1
libcurl 7.58.0.1809242322
libgraphviz 2.41.0.1809191808
libopencv 3.4.1.1809242322
log4cxx 0.10.0.1809242322
lz4 1.8.1.1809242322
ogre 1.10.11.1809100020
openssl 1.1.1.1809242322
pkg-config 0.29.2.1809242322
poco 1.8.1.1809242322
pyqt5 5.10.1.1809242322
pyside2 5.10.1.1809242322
python2 2.7.15
python3 3.7.2
qt5-sdk 5.10.1.1809242322
ros-cmake 3.11.4.1809242322
ros-melodic-desktop 20190219.1
ros-python2 2.7.15.1809242354
sbcl 0.0.0.1809242326
sdl 1.2.15.1809242322
sdl_image 1.2.12.1809242322
sip 4.19.8.1809242322
tinyxml 2.6.2.1809242322
tinyxml-usestl 2.6.2
tinyxml2 6.0.0
urdfdom 1.0.0.1809242322
urdfdom_headers 1.0.0.1809242322
vcpython27 9.0.30729.1809090720
vcredist140 14.16.27024.1
yaml-cpp 0.5.3.1809242322
51 packages installed.
The above is the process of my problems, I look forward to your help, thank you
The text was updated successfully, but these errors were encountered: