asrob-uc3m / robotDevastation

A new-generation shooter with augmented reality and real robots. You can play online with other users with your PC, moving robots in championships and campaigns: all 24/7!
http://asrob-uc3m.github.io/workgroups/2017-05-28-robot-devastation.html
GNU Lesser General Public License v2.1
9 stars 4 forks source link

Aborted execution on dead state #141

Open imontesino opened 6 years ago

imontesino commented 6 years ago

Description:

Running game and two robots. On rd2 rremotely and a virtual with pc webcam (robotDevastation --fakeRobotManager --yarpLocalImageManager) and id 2. Error occurs when player2 (id 2) runs out of health.

Insert player id [0]?>2
Insert name [player0]?>player2
Insert team [0]?>2
Insert robotName [rd1]?>pc-ignacio
[debug] YarpStateDirector.cpp:38 Stop(): Stopping StateDirector for id GameState
[debug] YarpStateDirector.cpp:24 Start(): Starting StateDirector for id DeadState
free(): invalid pointer
Aborted (core dumped)

On a second attempt to reproduce the error the line [debug] YarpStateDirector.cpp:24 Start(): Starting StateDirector for id DeadState did not appear. Yet the rest of error was identical.

PeterBowman commented 5 years ago

Can't reproduce this error, but:

[debug] YarpStateDirector.cpp:38 Stop(): Stopping StateDirector for id GameState
[debug] YarpStateDirector.cpp:24 Start(): Starting StateDirector for id DeadState
[error] DeadScreen.cpp:140 update(): Invalid image[error] SDLAudioManager.cpp:79 play(): Sound "RD_DEAD" not found (maybe it was not loaded?)

Upon exit:

[debug] DeadState.cpp:164 onKeyUp(): Escape was pressed!
[debug] YarpStateDirector.cpp:38 Stop(): Stopping StateDirector for id DeadState
[debug] MockImageManager.cpp:24 stop(): 
[info] YarpNetworkManager.cpp:280 keepAlive(): Keep alive...
[info] RobotDevastation.cpp:331 interruptModule(): Closing program...
yarp: Removing output from /robotDevastation/1/rdServer/rpc:c to /rdServer/rpc:s
[info] YarpNetworkManager.cpp:254 logout(): Logout...
[info] YarpNetworkManager.cpp:259 logout(): rdServer response from logout: 
[error] YarpNetworkManager.cpp:264 logout(): Logout failed
yarp: Removing input from /rdServer/info:o to /robotDevastation/1/rdServer/info:i
[FATAL]Assertion failure at /home/bartek/git/yarp/src/libYARP_OS/src/PortCore.cpp:471 (finished==true)
Assertion thrown at /home/bartek/git/yarp/src/libYARP_OS/src/PortCore.cpp:471 by code called from:
 --> /usr/local/lib/libYARP_OS.so.1(_ZNK4yarp2os3Log5fatalEPKcz+0x16b) [0x7f23c26fd37b]
 --> /usr/local/lib/libYARP_OS.so.1(_ZN4yarp2os4impl8PortCore9closeMainEv+0xb37) [0x7f23c2748017]
 --> /usr/local/lib/libYARP_OS.so.1(_ZN4yarp2os4impl8PortCore5closeEv+0x9) [0x7f23c2748609]
 --> /usr/local/lib/libYARP_OS.so.1(_ZN4yarp2os4Port5closeEv+0x43) [0x7f23c2761313]
 --> robotDevastation() [0x41bbe1]
 --> robotDevastation() [0x42ac4d]
 --> robotDevastation() [0x42151f]
 --> /usr/local/lib/libYARP_OS.so.1(+0x11cc02) [0x7f23c277fc02]
 --> /usr/local/lib/libYARP_OS.so.1(+0x15b25d) [0x7f23c27be25d]
 --> /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f23c046d6ba]
 --> /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f23c147741d]