Hello,
I have another problem:
I tried to use the simObj.getAngularVelocity function and
got a core dump.
The following is the part of the code (onAction):
double WatchController::onAction(ActionEvent &evt) {
SimObj *obj = getObj(myname());
Vector3d angv;
obj->getAngularVelocity(angv);
obj->addRelForceAtRelPos (0, -2, 0, 0, 0, 200);
std::cout << "angv:" << angv.x() << "," << angv.y() << "," << angv.z() << std::endl;
return 1.0;
}
Core dump does not occur without the getAngularVelocity line.
As I am new to c++, if this is a simple coding mistake,
please point it out for me. If else, what is the problem?
Attached are the controller file, world file and error file.
Quoted below is the core dump message on the terminal.
Best,
-- Naoya Arakawa
[SYS] ****SIMULATION START****
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb63ce1a6, pid=10943, tid=
3056871168#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK Server VM (20.0-b12 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.12.6
# Distribution: Ubuntu 13.04, package 6b27-1.12.6-1ubuntu0.13.04.2
# Problematic frame:
# C [libc.so.6+0x851a6] envz_strip+0x1d6
#
# An error report file with more information is saved as:
# /home/rondelion/MyWorld/hs_err_pid10943.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
angv:0,0,0
angv:0,0,0
/home/rondelion/sigverse-2.2.0/bin/sigserver.sh: line 14: 10943 Aborted (core dumped) /home/rondelion/sigverse-2.2.0/bin/sigserver $@