UpdateVehiclePosHash assertation failure (0.3.5)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
toholio
Traffic Manager
Traffic Manager
Posts: 216
Joined: 20 Dec 2004 00:54
Location: S37°56.286' E145°07.628'
Contact:

UpdateVehiclePosHash assertation failure (0.3.5)

Post by toholio »

The dedicated server I've been running has crashed several times in the last day. Looking through the logs I see the following right before the server shuts down:
screenlog.0 wrote:openttd: vehicle.c:316: UpdateVehiclePosHash: Assertion `idx != 0xffff' failed.
I can't see why this would only start happening now. Is there a setting or patch that makes this more likely? Is there something a player could do to cause this?

Are other servers experiencing this?
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

I can't explain it either, but in fact assertions shouldn't be a problem in release builds. They are only a way of showing the devs that something happened which shouldn't happen. In release builds they are supposed to be disabled. You have built this version you are running yourself, right? If so, please build it as a release, that way you won't get any assertion errors. Depending on the seriousness of the assertion, this might cause other problems. But often it doesn' t. :wink:
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
toholio
Traffic Manager
Traffic Manager
Posts: 216
Joined: 20 Dec 2004 00:54
Location: S37°56.286' E145°07.628'
Contact:

Post by toholio »

dominik81 wrote:You have built this version you are running yourself, right?
Yes.
dominik81 wrote:If so, please build it as a release, that way you won't get any assertion errors.
'make DEDICATED=1 RELEASE=0.3.5' should be sufficient, right?
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

I'm not sure about that, Bjarni is our makefile man. ;) Just to be sure it'd be good to set "DEBUG:=" (no value) in Makefile.config.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 8 guests