Author Topic: Another strange assertion  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Another strange assertion
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):
Code: [Select]
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]

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Another strange assertion
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.
Do not meddle in the affairs of coders for they are soggy and hard to light

  

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Another strange assertion
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".