Author Topic: Assertion errors: Help me debug this  (Read 1500 times)

0 Members and 1 Guest are viewing this topic.

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Assertion errors: Help me debug this
I'm running into 2 assertion errors with certain ships but assertion errors have the nasty habbit of not really explaining to me what they want me to fix. They both pop up after hitting Commit.
Aside from that I'm getting the error that
 
Quote
WARNING: "Invalid subobj_num or model_num in subsystem 'gunturret-17' on ship type 'LSF Challenger II'. Not linking into ship!  (This warning means that a subsystem was present in the table entry and not present in the model it should probably be removed from the table or added to the model.)" at ship.cpp:4728
WARNING: "Invalid subobj_num or model_num in subsystem 'gunturret-18' on ship type 'LSF Challenger II'. Not linking into ship!  (This warning means that a subsystem was present in the table entry and not present in the model it should probably be removed from the table or added to the model.)

WARNING: "Ship 'LSF Challenger II' does not have subsystem 'gunturret-17' linked into the model file, 'ChallengerII.pof'." at ship.cpp:14436
WARNING: "Ship 'LSF Challenger II' does not have subsystem 'gunturret-18' linked into the model file,
However I've checked several times and the turrets are right there in the .pof with exactly the same name. I can't see what it's complaining about.

From the shiptable.
Quote
$Subsystem:         gunturret-17,2.5,1.0
        $Default PBanks:                                ( "LSF Phasers" )
   $Flags:       ("check hull")
$Subsystem:                     gunturret-18,2.5,1.0
        $Default PBanks:                                ( "LSF Phasers" )
   $Flags:       ("check hull")
The .pof


The 2 assertion errors are this one:
Assert: num == bm_bitmaps[n].handle
File: bmpman.cpp
Line: 2459
Which tells me absolutely nothing.

And
Assert: !(psub->flags & MSS_FLAG_ROTATES)
File: ship.cpp
Line: 10848
Which I suspect has something to do with the ship having 4 subobjects that rotate (in the same way the faustus does)

debug logs included for your convenience

[attachment deleted by admin]
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Assertion errors: Help me debug this
Quote
Assert: num == bm_bitmaps[n].handle
File: bmpman.cpp
Line: 2459

See Mantis 2114.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Assertion errors: Help me debug this
Quote
However I've checked several times and the turrets are right there in the .pof with exactly the same name. I can't see what it's complaining about.
I see they are there on the subobjects but are they in the turret list?
(´・ω・`)
=============================================================

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Assertion errors: Help me debug this
yes


and the turrets work just fine in game too.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Assertion errors: Help me debug this
Check for a space after the 17.  Trailing spaces in PCS2 are bad. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Assertion errors: Help me debug this
Check for a space after the 17.  Trailing spaces in PCS2 are bad. 
I checked, none.
And then I discovered I have the same problem for gunturret-17 and 18 on a completely different ship too. Same debug errors but the turrets both work.  :wtf:
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

  

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Assertion errors: Help me debug this
Check the rest of them too.  I had a problem with dock points the other day and the error wasn't occurring until a couple of docks after the one with the problem.

Also make sure you don't have any .tbm files overriding that ship.  That error message was backward for quite some time so depending on what build you are using it may be in the pof but not in the table instead of what the message actually says.  The messages have been fixed since then. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras