Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Bobboau on October 23, 2002, 01:08:12 am

Title: strainge locking
Post by: Bobboau on October 23, 2002, 01:08:12 am
ever sence I started useing the SCP (actualy I only notised it after my first commit so I may have broken something) code base I've been getting a hard lock durring FS startup with about 35-40% regularity, I have no clue as to it's cause and the FS log is totaly blank, though there should be something in it as I see the debug spew going before hand, nothing responds and the only way to get going again is to manualy shut down the power and reboot.
all I get is debug spew, screen goes blank, the rumble noise starts playing and nothing hapens (like the chose new pilot screen)
any ideas?
Title: strainge locking
Post by: RandomTiger on October 23, 2002, 04:34:37 am
Doh, I hate those kind of bugs, I guess everyone does.
I've not had anything like that with the main branch of code.

Does it ever happen in release?

I would suggest filling the startupcode with temp debug and just see where it doesnt get to. Or you could checkout older versions untilyou get one which doesnt have the problem and do a windiff on them.

You had better track it down though, it could be something serious that could begin to affect ingame stuff.
Title: strainge locking
Post by: Solatar on October 23, 2002, 05:12:52 am
I used to have that happen. In the main fs2.exe though. I just emptied my freespace2 directory and reinstalled. Then it worked. Might have nothing to do with fs2_open.exe.
Title: strainge locking
Post by: RandomTiger on October 23, 2002, 05:47:57 am
Bob, I guessing you are using a fair amount of modified data?
Title: strainge locking
Post by: Solatar on October 23, 2002, 03:02:35 pm
Loads of modified data make fs2 unhappy. With all the stuff from TBP you have, this is probably the case. Just delete some of the files you don't need.
Title: strainge locking
Post by: Bobboau on October 23, 2002, 09:37:19 pm
it happens with both
Title: strainge locking
Post by: RandomTiger on October 24, 2002, 03:13:08 am
Mmmm.. really need to nail that down then. I might throw this one out to the tester list, what are your specs Bob?

You should really put it in bugzilla.
Does it ever happen with a release build?
Title: strainge locking
Post by: Bobboau on October 24, 2002, 03:32:39 am
I'm not sure, to be honest,
strainge thing is it started emediately after I compiled a relese build, and yes I have cleaned many times trying to get it to go away, I'm thinking some pointer isn't getting initalised properly becase sometimes it hapens and sometimes it doesn't
and for the record I do most of my intermediate testing with TBP becase it loads five-ten times faster
Title: strainge locking
Post by: RandomTiger on October 24, 2002, 03:52:43 am
Could you put up an exe somewhere so I can throw it out to the tester list?
Title: strainge locking
Post by: Bobboau on October 24, 2002, 03:54:17 am
I just put this (http://freespace.volitionwatch.com/blackwater/fs2_open_debug.zip) up for the particle weapon effect thing, it's prety much up to date
Title: strainge locking
Post by: vyper on October 24, 2002, 01:20:13 pm
My system locks up sometimes when playing fs2_open - but that might not be anything to do with sc changes.
Title: strainge locking
Post by: RandomTiger on October 24, 2002, 01:42:34 pm
Quote
Originally posted by vyper
My system locks up sometimes when playing fs2_open - but that might not be anything to do with sc changes.


I take it you are using modified data?
Any chance of a more detailed description.

 Bobboau: I've sent instructions out to the tester list to try and work out the extent of this problem. Please leave the exe unchanged so they are all testing with the same exe.

I'll let you know the results.
Title: strainge locking
Post by: Inquisitor on October 24, 2002, 05:11:04 pm
Bugzilla :)
Title: strainge locking
Post by: Bobboau on October 25, 2002, 12:38:35 am
could someone post a recent build of there exe, so I can see if it is something with my hardware, or if I have borked settings
Title: strainge locking
Post by: Bobboau on October 25, 2002, 01:56:15 am
I think I may have killed the bug, I grought in an old copy of osapi.cpp and I havn't had a crash sence, if I don't get any problems by the time I go to work tomaro I'll commit
Title: strainge locking
Post by: RandomTiger on October 25, 2002, 11:45:16 am
Um... what s the differences between the old one and the new one? Best work that out before you commit!

Hmmm... the last change in that file in the respository seems to be 2002/08/01! I take it you have made some changes then? Otherwise there should have been no difference.
Title: strainge locking
Post by: Bobboau on October 25, 2002, 01:00:54 pm
I comented out something to fix the debug spew, it didn't cause any problems in my version but I may have mistyped something,
Title: strainge locking
Post by: Bobboau on October 25, 2002, 01:27:18 pm
never mind, it still does it, I just got lucky for a bit
Title: strainge locking
Post by: RandomTiger on October 25, 2002, 01:42:50 pm
You should checkout a clean copy of fs2_open and test that.
It may not a be a bug in your code.
Title: strainge locking
Post by: Bobboau on October 25, 2002, 01:58:07 pm
I've done that, so it seems that it is ether something I did or something that is only effecting me, the big problem is that it doesn't always not work
now it seems to be makeing it as far as player_select_init()
Title: strainge locking
Post by: RandomTiger on October 25, 2002, 02:08:21 pm
I find windiff useful for this kind of stuff.