OpenTTD

Tasklist

FS#4730 - Crash when querying nearby object class

Attached to Project: OpenTTD
Opened by Ingo von Borstel (planetmaker) - Thursday, 18 August 2011, 09:30 GMT
Last edited by Ingo von Borstel (planetmaker) - Thursday, 18 August 2011, 14:09 GMT
Type Bug
Category NewGRF → NewObject
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When using the fenced land from opengfx+landscape OpenTTD crashes when it is built adjacent to one of the default objects.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000000c
0x00000001001a1f40 in GetObjectIDAtOffset [inlined] () at /Users/ingo/ottd/trunk/src/newgrf_object.cpp:143
143 if (spec->grf_prop.grffile->grfid == cur_grfid) { // same object, same grf ?

Full backtraces:
http://paste.openttdcoop.org/show/478/
http://paste.openttdcoop.org/show/477/

NewGRF: http://bundles.openttdcoop.org/ogfx-landscape/nightlies/r77/

tested in r22723
This task depends upon

Closed by  Ingo von Borstel (planetmaker)
Thursday, 18 August 2011, 14:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r22757
Comment by Ingo von Borstel (planetmaker) - Thursday, 18 August 2011, 10:13 GMT
Default objects simply have no associated grffile.

Loading...