Open deveee opened 6 years ago
So, it crashes on m_karts.push_back(ReplayPlay::get()->getGhostKart(k));
Which is computed earlier by gk = ReplayPlay::get()->getNumGhostKart();
It works fine with an old egg hunt replay ; however I can reproduce the crash with a newly recorded one. So most probably an issue in the replay data making the game think there are more ghosts in there than there really is.
It appears to be very inconsistent (I can't reproduce it anymore), and the replay files themselves look ok after further inspection...
I got a crash with a time-trial replay, not sure what's happening, but it may not be specific to egg hunt replays.
EDIT : unrelated to this issue. It's caused by unsetSquash EDIT : Fixed
I had one crash when I compared two ghosts and I used "watch only" feature. But it happened only once for me.
Maybe valgrind could say something useful if you can reproduce it...
And anyway something is broken, because if I start "watch only" with novice difficulty I have 0/7 eggs and if I start as supertux I have 0/8.
And sorry for a crash in unsetSquash, it was too late and I didn't test carefully.
Different difficulties have different egg placement in egg hunt mode, so that one has 0/7 and the other 0/8 is to be expected.
However, this may make the comparison weird, as watching it you'll only see the eggs for one of the difficulties (or maybe, for a 3rd different one ! - compare a novice and intermediate replay after having selected expert).
The only two real options I see are a)allowing to view eggs of both difficulty at the same time with some color coding ; b)disabling the comparison of replays with a different difficulty (for egg hunt replays only).
While a) has some appeal, b) is definitely the easier option ; to be done alongside #3382
It's non-reproducible and didn't happen for a long time, so postpone till later.
From google play console:
And second crash:
And it crashed in world.cpp:203:
And it's for git version from 20180915.