bubba2251 / freerct

Automatically exported from code.google.com/p/freerct
0 stars 0 forks source link

Program crash when persons enter store #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a path to the border, such that persons start walking on the path
2.Build a shop on the path
3.When a person reaches the shop, the program aborts

What is the expected output? What do you see instead?
none

What version of the product are you using? On what operating system?
Revision 872 on Ubuntu 13.04 64-bit

Please provide any additional information below.
This should suffice:
freerct: ride_type.cpp:465: RideInstance* 
RidesManager::GetRideInstance(uint16): Assertion `num >= SRI_FULL_RIDES && num 
< SRI_LAST' failed.
Aborted (core dumped)

It appears that the 'num' in this context has a value of 4 and SRI_FULL_RIDES 
and SRI_LAST 5. 

Original issue reported on code.google.com by job...@gmail.com on 21 Sep 2013 at 5:02

GoogleCodeExporter commented 9 years ago
Cannot reproduce. What is the positioning of the path/shop? Can you provide a 
screenshot?

Original comment by CharlesP...@googlemail.com on 25 Sep 2013 at 11:38

GoogleCodeExporter commented 9 years ago
Wait, is it when there are 2 (or more) shops connected to one tile? I'm getting 
the same assertion then

Original comment by CharlesP...@googlemail.com on 25 Sep 2013 at 11:47

GoogleCodeExporter commented 9 years ago
No, just a single shop. I attached a screenshot, the shop is turned twice 
although that does not seem to matter. 

Original comment by job...@gmail.com on 25 Sep 2013 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
#0  0x0000003514035a19 in raise () from /lib64/libc.so.6
#1  0x0000003514037128 in abort () from /lib64/libc.so.6
#2  0x000000351402e986 in __assert_fail_base () from /lib64/libc.so.6
#3  0x000000351402ea32 in __assert_fail () from /lib64/libc.so.6
#4  0x000000000041c88c in RidesManager::GetRideInstance (this=0x6b1720 
<_rides_manager>, num=4)
    at ride_type.cpp:469
#5  0x000000000041d11e in RideExistsAtBottom (xpos=8, ypos=5, zpos=8, 
edge=EDGE_BEGIN) at ride_type.cpp:663
#6  0x0000000000417005 in Person::DecideMoveDirection (this=0x6a01c0 <_guests>) 
at person.cpp:424
#7  0x0000000000417c1d in Person::OnAnimate (this=0x6a01c0 <_guests>, delay=30) 
at person.cpp:657
#8  0x00000000004160a4 in Guests::OnAnimate (this=0x6a01c0 <_guests>, delay=30) 
at people.cpp:265
#9  0x000000000040d899 in main (argc=1, argv=0x7fff0b8540c8) at main.cpp:172

Original comment by Alberth2...@gmail.com on 25 Sep 2013 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by CharlesP...@googlemail.com on 25 Sep 2013 at 7:32

GoogleCodeExporter commented 9 years ago
Fixed in r899

Original comment by Alberth2...@gmail.com on 13 Oct 2013 at 10:35