Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Dragon on April 21, 2011, 04:29:07 am
-
I've recently got an assertion error and I don't know what might be causing it.
Fragment of the log which lists the error (I don't know if posting a full log is nessesary, as the filter makes it quite large):
Loading model 'EDI-Lancer.pof'
Found bitmap edi_details_1.dds -- number 1386
Found bitmap edi_details_1-glow.dds -- number 1387
For "EDI-Lancer.pof" I couldn't find edi_details_1-shine.ani
Found bitmap edi_details_1-normal.dds -- number 1388
For "EDI-Lancer.pof" I couldn't find edi_details_2-glow.ani
For "EDI-Lancer.pof" I couldn't find edi_hangar_1-shine.ani
For "EDI-Lancer.pof" I couldn't find edi_hangar_1-normal.ani
For "EDI-Lancer.pof" I couldn't find doctile6-normal.ani
For "EDI-Lancer.pof" I couldn't find edi_logo-glow.ani
For "EDI-Lancer.pof" I couldn't find edi_logo-shine.ani
For "EDI-Lancer.pof" I couldn't find edi_logo-normal.ani
For "EDI-Lancer.pof" I couldn't find edi-lance-1-glow.ani
For "EDI-Lancer.pof" I couldn't find edi-lance-2-glow.ani
For "EDI-Lancer.pof" I couldn't find edi-lance-3-glow.ani
ASSERTION: "len < n" at cfile.cpp:1271
Freeing all existing models...
The model in question is Scooby Doo's TCD Lancer, reskinned a bit.
EDIT: Tweaked the filter, got a reasonable lenght log. Attached a full version.
[attachment deleted by ninja]
-
Code detected an buffer overflow (ie. attempt to stuff a too long string into an array).
Given that it happened (apparently) during model load... here are the options
- MAX_PROP_LEN = 256, determines maximum size (and also number of characters) of the subsystem properties box
- MAX_NAME_LEN = 32, determines the maximum number of characters in a name.
-
Ah, I see what is the problem then.
"Bridge_Section_One_Section_Hangar". 34 characters. A great name for a subobject that is not even targetable, Scooby.
I think that these limits should be somewhere on wiki, along with a proper error message instead of "len < n" at cfile.cpp:1271".