Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash at order_cmd.cpp:1851: Assertion `v->cur_auto_order_index < v->GetNumOrders()' failed. #4487

Closed
DorpsGek opened this issue Feb 8, 2011 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Feb 8, 2011

SmatZ opened the ticket and wrote:

r22025

I am not able to reproduce the problem anymore... The game has ~15 running AIs.

Attached is the diff I was testing, but it shouldn't affect this (at least, it fixes using of some uninitialised data).

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4487
@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 8, 2011

SmatZ wrote:

Backtrace from crash when loading crash.sav (it looks the same as backtrace from crash.log):

# 3 0x0000000000669b5b in UpdateOrderDest (v=0x13daaf0, order=0xdd7c40, conditional_depth=0) at /home/smatz/openttd/anon2/src/order_cmd.cpp:1851
_PRETTY_FUNCTION_ = "bool UpdateOrderDest(Vehicle*, const Order*, int)"
# 4 0x000000000066a8f4 in ProcessOrders (v=0x13daaf0) at /home/smatz/openttd/anon2/src/order_cmd.cpp:1966
order = 0xdd7c40
_PRETTY_FUNCTION_ = "bool ProcessOrders(Vehicle*)"
# 5 0x00000000006cd32f in RoadVehController (this=0x13daaf0) at /home/smatz/openttd/anon2/src/roadveh_cmd.cpp:1470
j = 0
adv_spd = 0
blocked =
# 6 RoadVehicle::Tick (this=0x13daaf0) at /home/smatz/openttd/anon2/src/roadveh_cmd.cpp:1534
No locals.
# 7 0x0000000000782515 in CallVehicleTicks () at /home/smatz/openttd/anon2/src/vehicle.cpp:814
vehicle_index = 10
v = 0x13daaf0
_PRETTY_FUNCTION_ = "void CallVehicleTicks()"
cur_company = {original = @0x39007fff70210efb, valid = 229, original_value = {static begin = , static end = , static invalid = , m_val = 243 '\363'}, file = 0x4ca8 <Address 0x4ca8 out of bounds>, line = 3509}
# 8 0x000000000066392b in StateGameLoop () at /home/smatz/openttd/anon2/src/openttd.cpp:1211
_PRETTY_FUNCTION_ = "void StateGameLoop()"
# 9 0x0000000000664e54 in GameLoop () at /home/smatz/openttd/anon2/src/openttd.cpp:1295
check_message = 33


This comment was imported from FlySpray: https://bugs.openttd.org/task/4487#comment9632

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 8, 2011

SmatZ wrote:

This is the vehicle that causes the crash.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4487#comment9633

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 9, 2011

frosch closed the ticket.

Reason for closing: Fixed

in r22046


This comment was imported from FlySpray: https://bugs.openttd.org/task/4487

@DorpsGek DorpsGek closed this as completed Feb 9, 2011
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant