Operations continue on server after client crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ember |
Confirmed
|
High
|
Erik Ogenvik |
Bug Description
After dying from Gorun ( on crimson ), ember crashes. Stack trace for this is below.
Where this gets strange is AFTER logging back in, the player is teleported to the graveyard ( which is good ), however I have noticed that the player is still attacking. More along this line, when getting back into Gorun's perception range again, he immediately resumes attacking.
It looks to me like the client StoppableTask ( in this case strike ), appears visually on inspection to be continuing just fine. I have not been able to trace yet what is happening, however I suspect that the MeleeTask becomes active and never stops. Even though the client crashed/
data/rulesets/
Maybe in the tick() operation the usage.is_valid() does not handle this case, or perhaps because in the do_strike() the check for if the target parent is destroyed ( respawned character seems to have nothing targetted ).
sryan@pandora-
Starting Ember in debugger....
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Starting Ember version 0.7.2-1100-
Setting config directory to /home/sryan/
Writing logs to /home/sryan/
[New Thread 0x7fffeca28700 (LWP 115026)]
[New Thread 0x7fffec227700 (LWP 115027)]
[New Thread 0x7fffeb761700 (LWP 115028)]
[Thread 0x7fffeb761700 (LWP 115028) exited]
[New Thread 0x7fffeb6e0700 (LWP 115029)]
[Thread 0x7fffeb6e0700 (LWP 115029) exited]
[New Thread 0x7fffeb6e0700 (LWP 115030)]
[New Thread 0x7fffeaedf700 (LWP 115031)]
[New Thread 0x7fffea4b7700 (LWP 115032)]
[New Thread 0x7fffcbfff700 (LWP 115033)]
[New Thread 0x7fffcb7fe700 (LWP 115034)]
[New Thread 0x7fffcaffd700 (LWP 115035)]
[Thread 0x7fffcaffd700 (LWP 115035) exited]
[New Thread 0x7fffcaffd700 (LWP 115036)]
[New Thread 0x7fffca5f8700 (LWP 115037)]
[New Thread 0x7fffc9869700 (LWP 115059)]
Thread 1 "ember.bin" received signal SIGSEGV, Segmentation fault.
0x0000555555b04831 in std::default_
75 operator()(_Tp* __ptr) const
#0 0x0000555555b04831 in std::default_
#1 std::unique_
#2 std::unique_
#3 Ember::
#4 0x000055555599af90 in Ember::
#5 0x00007ffff7de4bd2 in sigc::internal:
#6 sigc::signal0<void, sigc::nil>::emit (this=<optimized out>) at /usr/include/
#7 Eris::View:
#8 0x00007ffff7de5dd3 in Eris::View::update (this=0x55555db
#9 0x00005555557c5490 in Ember::
#10 0x00005555557c6b10 in Ember::
#11 0x00005555557af271 in main (argc=<optimized out>, argv=<optimized out>) at /home/sryan/
A debugging session is active.
Inferior 1 [process 115022] will be killed.
Changed in ember: | |
assignee: | nobody → Erik Ogenvik (erik-ogenvik) |
importance: | Undecided → High |
status: | New → Confirmed |
Thanks for the report.
The Ember issue should not happen, so I need to investigate how it can be.
There are two separate bugs on the server.
One is that the AI should both stop attacking as well as stop holding a grudge to a character after it has been killed.
The other is that tasks should stop when a character is killed. The effect you're seeing of the character continuing the attacks is because that task never stopped.