View Issue Details

IDProjectCategoryView StatusLast Update
0000065FSSCPFREDpublic2005-03-01 23:23
Reporterkasperl Assigned Totaylor  
PrioritynormalSeverityminorReproducibilityrandom
Status resolvedResolutionfixed 
Summary0000065: CTD with babylon model "olympus", using FSO 3.5.0 and up
DescriptionIn versions 3_5_0 and above the babylon project model "olympus" will not
successfully load at any point (tech room, fred2, or ingame)

Other team members have a similar problem so I'm sure it is SCP related, also I
do not believe it is tbl related. Some feature which was added between v3.4
and v3.5.0 is causing this and has not been rectified in any version since.

you can send me exe's to test with various source modifications disabled to:

ken.sue@btinternet.com

I will check for you to try and further pin point the problem if you like

This crash simply drops you back to desktop without an error report


- cptwhite
Additional InformationReporter: ken.sue@btinternet.com (Matthew White)
Assigned To: fs2source@warpcore.org (Edward Gardner)
http://fs2source.warpcore.org/bugzilla/show_bug.cgi?id=72
TagsNo tags attached.

Activities

Goober5000

2004-01-26 22:21

administrator   ~0000122

Last edited: 2004-01-26 22:25

CptWhite, do you get this with the 01_20_2004 exe?

(I have emailed him with a link here.)

edited on: 01-26-04 17:25

Goober5000

2004-01-29 21:39

administrator   ~0000132

This bug seems to be fixed. Note to self: Find out where the long file name problem is (http://dynamic4.gamespy.com/~freespace/forums/showthread.php?s=&threadid=20459) and add some error-checking.

I'll close the bug after this is done.

RandomTiger

2004-02-20 22:21

developer   ~0000218

This is down to texture names being too long.
I tryed really hard to lock this down with an error message but failed.
This is bad news since the CTD has no message indicating the problem.

Bobboau

2004-02-23 00:15

developer   ~0000231

I thought this had a working error mesage,
it's in the low level file loading code

RandomTiger

2004-02-23 09:04

developer   ~0000237

Your check caused other problems.
I know because I commented it back in after Goober commented it out.

Bobboau

2004-03-10 05:46

developer   ~0000412

what other problems, and can we close this bug, seeing as it's been basicly resolved

Goober5000

2004-03-21 20:34

administrator   ~0000515

Can someone upload the old Olympus model that caused the crash? Just the model, and the single table entry, and I'll merge it with vanilla FS2 data and take a look.

2004-03-21 20:58

 

olympus.pof (421,460 bytes)

RandomTiger

2004-03-21 20:59

developer   ~0000517

I only experienced this problem in release which made it difficult to track

Kazan

2004-04-03 15:20

developer   ~0000657

was an issue with texture name length causing the -shine, etc to walk off the end of their string buffers

Goober5000

2004-04-03 21:42

administrator   ~0000669

gah - Kazan, I wanted to take a look at this... see where the problem was, add some friendly messages to trap errors. If we don't watch out for this in the code, someone else with long texture names is going to have the exact same problem.

Kazan

2004-04-03 22:06

developer   ~0000672

bobboau knows exactly where this resides

Goober5000

2004-05-10 04:54

administrator   ~0000920

Okay, I want to squash this. I need:
1) The buggy model
2) The buggy table file
3) The buggy maps

It looks like I only have one of the three. Could someone be so kind as to attach the requisite resources?

RandomTiger

2004-05-10 06:31

developer   ~0000922

Download the B5 second release without patch

Goober5000

2004-05-10 10:50

administrator   ~0000925

K.

taylor

2005-03-01 03:28

administrator   ~0001709

Well, since no one else did it, I fixed this. Changed model_load_texture() to restrict the length of tmp_name to MAX_FILENAME_LEN since it doesn't help to have it longer and used the 'n' variants of string function (strncpy(), etc.) to avoid going over. I also changed bm_load() and bm_load_animation() to use the same 'n' variants and added an Error() when it goes over MAX_FILENAME_LEN-5. It's -5 to cover the extension and NULL terminator.

I'll leave this open until I can commit the changes later tonight or tomorrow.

Goober5000

2005-03-01 04:43

administrator   ~0001710

Whoa. Thanks, taylor. :) This was very deep on my to-do stack. ;)

taylor

2005-03-01 23:23

administrator   ~0001718

Fixered.

Issue History

Date Modified Username Field Change
2004-01-16 11:03 kasperl New Issue
2004-01-26 22:21 Goober5000 Note Added: 0000122
2004-01-26 22:25 Goober5000 Note Edited: 0000122
2004-01-29 21:39 Goober5000 Note Added: 0000132
2004-01-29 21:39 Goober5000 Assigned To => Goober5000
2004-01-29 21:39 Goober5000 Status new => assigned
2004-02-20 22:21 RandomTiger Note Added: 0000218
2004-02-23 00:15 Bobboau Note Added: 0000231
2004-02-23 09:04 RandomTiger Note Added: 0000237
2004-03-09 08:36 Rga_Noris Summary CTD with certain models, also in FSO => CTD with babylon model "olympus", using FSO 3.5.0 and up
2004-03-10 05:46 Bobboau Note Added: 0000412
2004-03-21 20:34 Goober5000 Note Added: 0000515
2004-03-21 20:58 RandomTiger File Added: olympus.pof
2004-03-21 20:59 RandomTiger Note Added: 0000517
2004-04-03 15:20 Kazan Status assigned => resolved
2004-04-03 15:20 Kazan Resolution open => fixed
2004-04-03 15:20 Kazan Assigned To Goober5000 => Kazan
2004-04-03 15:20 Kazan Note Added: 0000657
2004-04-03 21:42 Goober5000 Status resolved => feedback
2004-04-03 21:42 Goober5000 Resolution fixed => reopened
2004-04-03 21:42 Goober5000 Note Added: 0000669
2004-04-03 21:42 Goober5000 Assigned To Kazan => Goober5000
2004-04-03 21:42 Goober5000 Status feedback => assigned
2004-04-03 22:06 Kazan Note Added: 0000672
2004-05-10 04:54 Goober5000 Note Added: 0000920
2004-05-10 06:31 RandomTiger Note Added: 0000922
2004-05-10 10:50 Goober5000 Note Added: 0000925
2005-03-01 03:28 taylor Note Added: 0001709
2005-03-01 03:28 taylor Assigned To Goober5000 => taylor
2005-03-01 04:43 Goober5000 Note Added: 0001710
2005-03-01 23:23 taylor Status assigned => resolved
2005-03-01 23:23 taylor Resolution reopened => fixed
2005-03-01 23:23 taylor Note Added: 0001718