Closed ethanyu94 closed 8 years ago
Ok, so I solved this issue by switching from the default graphics driver to the Nvidia driver. I also downgraded from jade to indigo.
Now, stateestimation immediately crashes with:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 27
Current serial number in output stream: 28
[drone_stateestimation-1] process has died [pid 15144, exit code 1, cmd /home/ethan/catkin_ws/devel/lib/tum_ardrone/drone_stateestimation __name:=drone_stateestimation __log:=/home/ethan/.ros/log/0399f1dc-ae0e-11e5-a8f6-20c9d042f419/drone_stateestimation-1.log].
log file: /home/ethan/.ros/log/0399f1dc-ae0e-11e5-a8f6-20c9d042f419/drone_stateestimation-1*.log
The log file says:
[0m[ INFO] [1451381193.350452216]: Started TUM ArDrone Stateestimation Node.[0m
set publishFreq to 30Hz
set calibFile to DEFAULT
set ts base to 1451381193
Waiting for Video
Found ARDrone Version 2
Set Camera Paramerer to: 0.771557 1.36856 0.552779 0.444056 1.15601
[0m[ INFO] [1451381193.845631863]: Video resolution: 640 x 360[0m
Ok, just needed to restart after that driver change...
I had the same problem recently. I found that the reason is because tum_ardrone/src/UINode/tum_ardrone_gui.ui
calls FlatTrimClicked
, but on tum_ardrone/src/UINode/tum_ardrone_gui.h
and tum_ardrone/src/UINode/tum_ardrone_gui.cpp
the method name is FlattrimClicked
.
Note that the Trim
was lowercase on the header and cpp files, whereas on the .ui file it was uppercase.
After renaming FlattrimClicked
to FlatTrimClicked
the problem was gone.
-- EDIT
Well, my changes made the Object::connect: No such slot tum_ardrone_gui::FlatTrimClicked()
message go away but didn't solve the problem since drone_stateestimation still crashes.
Just for the records, with GDB these are the error messages I get:
Thread 6 "drone_stateesti" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdedf1700 (LWP 4751)]
new ping values: 500->10000 20000->10000
0x00007ffff78abaac in CVD::GLWindow::init (this=this@entry=0x7fffcc03afe8, size=..., bpp=bpp@entry=24, title="PTAM Drone Camera Feed",
disp="") at cvd_src/glwindow.cc:110
110 Cursor null_cursor = XCreateGlyphCursor(display, fixed->fid, fixed->fid, ' ', ' ', &black, &black);
When I run the program, the camera view hangs after a second. I get a warning about camera calibration file not found, and drone_stateestimation crashes quickly. Sometimes, my whole computer crashes. Any advice on how I can troubleshoot this? Maybe something is built incorrectly or something is wrong with my environment.
The log file says: