Author Topic: Some strange errors, need help debugging!  (Read 1384 times)

0 Members and 1 Guest are viewing this topic.

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Some strange errors, need help debugging!
I've been running into some strange errors, and I'm not sure exactly what's causing them.

First, is this strange bug with "quick restart" and just restart from the ESC menu.
The mission runs fine on the first run through, or if I go back to the brieifing, but not if I restart without doing so.
In release builds, it restarts the mission, and everything is norma except the player's wing is missing.
When I run the mission in debug, no errors show up at all on the first run, then when I restart, debug CTDs with no message whatsoever.

Checking the FS2_Open.log, I see it "crashed" with an
Code: [Select]
Int3(): From g:\fso\fs2_open_0\code\freespace2\freespace.cpp at line 3751which tells me jack ****.

At first, I thought it had something to do with observer mode (the known multi bug), as it was encountering after dying and after the FREDded cutscene at the beginning of the mission, but through further testing, I found that it occurred in another mission that didn't have a FREDded cutscene in it at all, just by restarting off the bat, it glitched on me without even needing me to die. Strangely, it's not present in some other missions and I'm not exactly sure what causes it, but it happes 100% of the time on missions with the error, and never on missions without it.

I tried making a mission that ran on retail to replicate the problem, but I couldn't get the bug to happen. I'm continuing to test.

Here's the pastebin for the log: http://pastebin.com/NZvewDgj
Another log with the same issue, in a mission without a cutscene at the start (sorry about the two missing textures, I just added that, but the problem existed before then): http://pastebin.com/rATQXRcX



Secondly, there's something strange with built-in command messages.

I think that either the "Command Persona" field in Mission Specs is broken, or there are some hardcoded command messages.

In this mission, I have my Command Sender set to a Capital Ship,  and its persona set to a special command persona (fully-defined in messages.tbl, replacing every entry of "Terran Command" therein). However, when builtin messages from "Command" are sent, a message from a random persona in messages.tbl is played, with the wav file of the default Terran Command (which doesn't exist in messages.tbl at all), and the Head ani is HEAD-CM1, which also isn't in messages.tbl at all.

So I thought that built-in command messages always look for "Terran Command" and was freaking out cause I nuked it, but nope. I made a duplicate of my custom command persona named "Terran Command" and the problem persists. Text from a random persona, Head-CM1.ani, and the default wav file (or occasionally, no wav file at all).

This is all on trunk, r6910, FYI.

This is kind of a desperate plea for help since its just not making sense. Debug comes totally clean, I don't even know if its my fault!
« Last Edit: January 01, 2011, 05:16:25 pm by Droid803 »
(´・ω・`)
=============================================================

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Some strange errors, need help debugging!
Regarding the first issue, please run the attached build. It won't fix the issue, but it will tell us a bit more about what's going on if and when it crashes due to this issue.

[attachment deleted by admin]
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: Some strange errors, need help debugging!
Ran the build. Same CTD.

Here's the new log: http://pastebin.com/gca21caG

Looks like the game is crashing because it can't find something to stick the camera on (?), which makes sense seeing as the entirety of "Alpha wing" (ok, Blue wing, the player's starting wing) isn't there.


EDIT: Breakthrough!

Ok, according to Axem, its because I have this:
$Starting wing names: ( "Red" "Blue" "Green" )
$Squadron wing names: ( "Red" "Blue" "Green" "Black" "Gold" )
$Team-versus-team wing names: ( "Red" "Blue" )

and I'm Blue wing.

it should be

$Starting wing names: ( "Blue" "Red" "Green" )
$Squadron wing names: ( "Blue" "Red"  "Green" "Black" "Gold" )
$Team-versus-team wing names: ( "Blue" "Red" )

...but really, I think the game should warn me about something like that.
Or, fix respawning if the player wing isn't the first starting/squadron/tvt wing...

Changing it fixed it completely, no more crash, no more missing starting wing. I wouldn't be surprised if it fixed the second error too, but I haven't tested that.

So it was my fault. I wish FSO would tell me instead of commiting suicide :(



EDIT 2:
Attached sample mission that runs on vanilla FSO.
Press 1 to self destruct, then quick restart -> Beta wing is no longer present
do this on Debug -> CTD

should probably at least put in better error catching (make FRED complain about the player not being in the first wing instead of juts not being in any starting wing)...

[attachment deleted by admin]
« Last Edit: January 02, 2011, 03:47:02 pm by Droid803 »
(´・ω・`)
=============================================================