#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-06-20

Timestamps are in GMT/BST.

00:00:53bobdaduck1200000 kilobytes is 1171 mb according to google
00:02:35bobdaduckwhich is 1 GB
00:02:36bobdaduckish
00:02:38bobdaduckright?
00:02:44bobdaduckTHAT'S A LOT RIGHT?
00:03:21bobdaduckWHOO!
00:03:23bobdaduckscript crash
00:03:27bobdaduckmemory
00:03:30bobdaduckat 1.5 GB
00:03:35bobdaduckgood to know...
00:04:10raptorif you run on 019, the only change you need to make is:
00:04:20raptorGameInfo() is now GameInfo.new()
00:05:19raptorall of that memory is loadout objects...
00:05:23bobdaduckrofl
00:05:36bobdaduckexplains why it was crashing when kaen was hosting it
00:05:47bobdaduckI'm still gonna make the revision to the code though
00:05:54raptorok
00:06:03bobdaduckmaybe like tomorrow when I'm at work with nothing to do
00:06:07raptorha
00:09:20bobdaduckokay 019 is open
00:09:30raptorlatest?
00:09:37bobdaduckyeah
00:09:51bobdaduckMOVE YOUR SHIP WITH THE XXX KEYS
00:09:59raptorhahaha
00:10:03bobdaduckoh wait everything ever crashed
00:10:42raptorwe've made some big header changes, so you'll probably have to do a full recompile...
00:11:22bobdaduckhm
00:12:20bobdaduckokay join
00:12:54bobdaduckraptor
00:12:57bobdaduckwhy is this running so smooth
00:13:02bobdaduckthis makes no sense
00:13:57raptortrying to join...
00:14:02raptordid i crash it?
00:14:21bobdaduckno
00:14:38raptormaybe i need to do a full recompile
00:14:41raptorso....
00:14:44raptorrunning smooth? :)
00:14:57bobdaduckridiculous
00:15:02bobdaduckit doesn't run this smooth in stock 018a
00:15:07bobdaduckand that's not even a debug copy
00:15:08raptor:)
00:15:14bobdaduckWHAT DID YOU DO
00:15:18raptorsee! we didn't lie about making improvements!
00:15:43bobdaducklol
00:15:54bobdaduckgoing over a zone isn't giving me gold now.
00:16:16raptorkaen: are you still up?
00:16:30bobdaduckI didn't do a full recompile
00:16:32bobdaducktrying that now
00:16:35raptorohhhhhhhh
00:16:37raptornevermind kaen
00:16:41raptorha ok
00:16:54raptorwell *that's* why i can't connect, then...
00:17:08bobdaducklol
00:18:23bobdaduckfull recompiles take like 20 minutes give me a bit
00:18:35raptorok
00:18:58raptorwe fixed the worst of the bugs for 019... I... I don't know what to do now
00:19:20bobdaduckadd lua functionality?
00:19:24bobdaduck*flutters eyelashes*
00:19:33raptorha!
00:20:59bobdaduckthe running bugs list is... empty?
00:21:13raptorno...
00:21:29raptorbut we just killed (in my mind) the hardest one today - the Lua memory leaks
00:21:46bobdaduckit says its empty from my computer
00:22:01bobdaduckthe one on the wiki
00:22:04bobdaduckhttp://bitfighter.org/wiki/index.php/Running_bugs_list
00:22:19raptor!bug
00:22:19BFLogBotTo enter a bug, please make sure it is reproducible and then go to http://code.google.com/p/bitfighter/issues/list | Also, see current running bug list: http://bitfighter.org/wiki/index.php/Running_Bug_List
00:22:26raptoryou have the wrong one..
00:22:57raptoryay wikis! pretending any page exists!: http://bitfighter.org/wiki/index.php/Bobdaduck_this_is_an_empty_page
00:23:45bobdaducklol
00:24:43bobdaduckYou think that's the only lua leak?
00:25:05raptorNo, we know of another, but not with the API usage
00:25:17raptorthe other one shows up when you do /addbots then /kickbots a lot
00:25:44raptorand we have a workaround in place, but it's not a real fix
00:25:55bobdaducklol
00:28:57bobdaduckbot only spawn points plx
00:29:18bobdaduck3>LINK : fatal error LNK1104: cannot open file '../Debug/gtestd.lib'
00:29:29raptoroh, just do teh 'bitfighter' target
00:29:36raptorinstead of ALL_BUILD or whatever
00:31:49bobdaduckum?
00:32:09raptorright-click on 'bitfighter' and just build that
00:34:46bobdaduckokay
00:34:49bobdaduckI'll get to it tomorrow
00:34:49bobdaducknight
00:34:55raptorok
00:34:57raptorgood night
00:35:05bobdaduck Quit (Remote host closed the connection)
00:44:02raptor Quit ()
00:52:06koda has joined
01:34:28fordcarsnight guys, going to bed
01:38:51fordcars Quit (Ping timeout: 250 seconds)
02:42:54koda_ has joined
03:18:29koda_ Quit (Quit: koda_)
03:41:30LordDVG has joined
05:09:18ozbitfighter has joined
05:09:32ozbitfighterON the wiki and forum pages the link to webchat is missing.
05:09:37ozbitfighterhi btw.
05:13:20ozbitfighterin the header that is.
05:20:34koda_ has joined
05:35:01ozbitfighter Quit (Ping timeout: 250 seconds)
05:59:17LordDVG Quit (Remote host closed the connection)
06:07:44koda_ Quit (Quit: koda_)
06:38:16ozbitfighter has joined
07:15:40ozbitfighterI'm guessing noone owns bitfightervideo anymore.
07:29:12kaenI think that's _k's channel
07:29:23kaenor maybe it just has a bunch of videos of him
07:29:54kaenbut anyway he left to attend to real world things before I even got here
07:45:23ozbitfighterwhen's the next BBB?
07:57:03kaenI don't think one is scheduled
08:04:32bobdaduck has joined
08:38:10ozbitfighterThat's frustating
08:38:47bobdaduckwhat?
08:42:38ozbitfighterlack of BBB being scheduled.
08:43:46bobdaduckxD
08:44:14bobdaduckWe usually only do a BBB like every three months...
08:46:36bobdaduckOccasionally someone will do a party though
08:48:13bobdaduckImprompteu games happen too, just not nearly as often in the summer.
08:48:27bobdaduck...Everybody is too busy goofing off to play bitfighter and I SWEAR that makes sense.
08:51:34ozbitfighterHmmm does the northern or southern hemisphere have more english speaking people?
08:52:09ozbitfighterHave their ever been any Indians?
08:52:59bobdaduckI've never seen an Indian
08:53:06bobdaduckMost people are in America
09:26:22ozbitfighterYes this lurking business isn't working.
09:26:36ozbitfightersorry old news i know.
09:28:58bobdaduckThere's also a lot more players right after a release, so whenever we get 019 out we'll see a huge spike.
09:36:46bobdaduckThe majority of our playerbase is currently lost in minecraft.
09:36:58bobdaduckThey'll be back, probably.
09:57:11ozbitfighter Quit (Ping timeout: 250 seconds)
10:25:16koda Quit (Read error: Connection reset by peer)
11:24:21bobdaduck Quit (Ping timeout: 256 seconds)
11:36:53bobdaduck has joined
12:04:21bobdaduck Quit (Remote host closed the connection)
12:13:26thread_ has joined
12:56:17bobdaduck has joined
12:56:23bobdaducksup all
13:16:25thread_hey
13:17:15kaenhi
14:15:16LordDVG has joined
14:41:00thread_ Quit (Ping timeout: 250 seconds)
15:36:06LordDVG Quit (Remote host closed the connection)
15:44:01Watusimoto_ has joined
15:45:23raptor has joined
15:45:24ChanServ sets mode +o raptor
15:45:31BFLogBot Commit: f384f58204ec | Author: watusimoto | Message: Add assert to demonstrate crash
15:45:33BFLogBot Commit: de5e4c1ed5ba | Author: watusimoto | Message: Merge
15:46:01raptorcommits!
15:48:19raptorWatusimoto_: crash?
15:48:24Watusimoto_yeah, but not one you'll like
15:48:45raptoroh hey, that's my code
15:48:47raptorbooo
15:49:03Watusimoto_to be honest, I can't understand how it's happening
15:49:19Watusimoto_I brekapointed every relevant assignment, and it looks like it should be working
15:49:21raptorhow to dupe?
15:49:24Watusimoto_I did a full recompile
15:49:25Watusimoto_easy
15:49:36Watusimoto_so easy I can't believe it's broken for you
15:49:43bobdaduck Quit (Remote host closed the connection)
15:49:59raptorI promise it didn't crash for me...
15:50:00Watusimoto_edit an existing level; select an object (loadout zone in my case, doubt it matters), hit #
15:50:05raptorok
15:50:08Watusimoto_enter the first digit of the id
15:50:09Watusimoto_crash
15:50:22Watusimoto_I'm doing another full recompile to check
15:50:24Watusimoto_again
15:50:32Watusimoto_here's a thought...
15:50:37Watusimoto_on a related topic
15:50:50Watusimoto_would we be better of with alphanumeric string ids, rather than ints?
15:50:58raptorlike this? http://sam6.25u.com/upload/3screenshot_27.png
15:51:01Watusimoto_it's all server side so transmission isn't an issue
15:51:16Watusimoto_yes
15:51:25raptorno crash for me..
15:51:28Watusimoto_so you can't reproduce, obviously
15:51:41Watusimoto_well, I'll test again after rebuild is finished
15:51:41Little_Apple has joined
15:51:50Little_Applewhere have all the servers gone?
15:51:53raptorLittle_Apple has entered the house
15:52:04Little_Applehello hello
15:52:20Little_Applebut seriously... there are only like 3 including mine
15:52:38raptorand you still need to port-forward yours!
15:52:53raptorit's because kaen's hosting provider nuked all the servers
15:52:55kaen:<
15:52:59Little_Applewonderful.
15:53:47Watusimoto_crash again
15:53:53Watusimoto_on new level
15:53:59Watusimoto_with loadout zone
15:54:55Watusimoto_and on new level with test item
15:55:19Watusimoto_weeird
15:56:14raptoryes weird
15:56:27raptorkaen: you're not getting a crash in the editor using my new ID menu are you?
15:56:30Little_Appledoes it crash when an item is added that has the letter "e" in it?
15:56:44raptorLittle_Apple: your debugging skills are legendary!
15:57:33Watusimoto_maybe I'll write a test case
15:58:16kaenwell I was working on the level db but "Tests: 45, Assertions: 32, Failures: 1, Errors: 28" makes me think it's time for a break
15:58:40kaensomehow I broke my php database drivers...
15:59:18Watusimoto_sad...
15:59:21Watusimoto_broken drivers
15:59:59kaenand not even a reply from the host about restoring my vps :<
16:00:13Watusimoto_they just cut you off?
16:00:41kaenthey did this: https://billing.chicagovps.net/announcements/4/ChicagoVPS-RFO-sharp3.html
16:00:50kaenwiped all instances until further notice
16:01:24kaenthey have so far failed to even give me a "wiped" vps
16:01:42kaenmy entire management console is "unavailable"
16:02:15Watusimoto_how much have you prepaid for?
16:02:51kaen6 months
16:03:52Watusimoto_well, they look like they're trying... for what that's worth
16:03:55kaenID editing works great for me
16:04:04kaenyeah, it's true
16:04:15Watusimoto_ah, they were hacked
16:04:20kaenand it was my own decision to go with a bargain vps provider
16:04:22kaenyes
16:04:40kaenit appears to be due to incompetent configuration of the control panel.
16:08:05Watusimoto_bitfighter.org costs 3.15 per month, so I am familliar with the bargain vps provider
16:08:20Watusimoto_I hope we have good backups
16:10:00kaeneheh
16:10:04kaenbackups...
16:10:16kaenI'll definitely remember that after I install the cross compilers this time.
16:12:54Watusimoto_where is the pliedes source backed up? is it in our repo somewhere?
16:14:43raptorit's at the largest unavoidable gang of developers' website
16:14:47raptori think
16:16:06Watusimoto_???
16:16:32raptorkaen has a github repo
16:16:45kaenindeed
16:16:47Watusimoto_ah, ok
16:16:50kaenthat's where it is
16:17:04kaenthere's even a little bug tracker :3
16:17:04Watusimoto_so what gives... I recompiled again, ids still broken
16:17:17Watusimoto_breakpoints everywhere the null could be introduced
16:17:25raptordid you recompile everything? like tnl, alure, etc..?
16:17:29Watusimoto_it works for you guys
16:17:32Watusimoto_full recompile
16:17:39Watusimoto_broken for me on two machines
16:17:46kaenare you sure it's null and not garbage?
16:17:49raptorok, let me break out the VM...
16:17:50Watusimoto_have either of you tried it on windows?
16:17:54Watusimoto_yes
16:18:01kaennuts
16:18:08kaenI haven't tried it on the vm yet
16:18:24Watusimoto_the assert I added specifically tests for NULL, and I verified it in the debugger
16:18:38kaenoh I see
16:18:43kaenthought it was a segfault
16:19:23Watusimoto_it was before I added the assert
16:21:13raptoron another note - did you see my commit last night about the Lua memory leak?
16:21:39raptor(i'm building on windows now..)
16:21:51Watusimoto_I think so... what did it say?
16:21:53Little_Apple Quit (Quit: Page closed)
16:22:30raptorlet's just say that we found out why bots are running slower than normal, bobdaduck's level DnD inflates to 1.5 GB in a few minutes, etc...
16:22:59Watusimoto_oh, that comment
16:23:04Watusimoto_problem fixed?
16:23:07raptorall because we had a leak with LuaLoadout objects
16:23:17raptorwith a comment on it assuring us it wasn't a leak
16:23:26Watusimoto_comment... by me?
16:23:29Watusimoto_perchance?
16:24:42raptorsee this: https://code.google.com/p/bitfighter/source/browse/zap/ship.cpp?r=a7dc93ab26eb023ebe9ba88cefe53c656ac2ed24#2366
16:25:09raptorthat leak right there was being called 100s of times per seconds with several bots
16:27:44raptorWatusimoto_: confirmed null object there in windows...
16:27:59Watusimoto_i.e. no assert for you?
16:28:31raptori get the assert and subsequent crash
16:28:31Watusimoto_and why didn't luaw_hold do what the comment suggested?
16:28:36Watusimoto_ah, I see
16:28:45Watusimoto_I'm writing a test for it now
16:28:53Watusimoto_I will then fix it
16:28:56raptorluaW_hold always returned false right there...
16:29:17raptori think because the cache found the object by proxy with the _push, so _hold didn't think it needed it
16:29:28Watusimoto_well... good catch!
16:29:32Watusimoto_it didn't used to leak
16:29:42Watusimoto_so the comment was probably true when written
16:29:57Watusimoto_at least I think it didn't use to leak
16:31:52Watusimoto_weird crash, no?
16:32:34raptorvery weird...
16:32:48raptoris it because of the scoped_ptr on the menuUI?
16:34:38Watusimoto_I don't see where thatis
16:34:50Watusimoto_but the object is just a plain ol' pointer
16:40:04raptorI promised myself I wouldn't look at the editor for a week..
16:46:45raptoryou already have a fix?
16:47:09raptorthat object pointer shouldn't be disappearing like that...
17:05:05Watusimoto_I'm trying to make a test to reproduce
17:05:21Watusimoto_but the test framework keeps throwing errors
17:05:29Watusimoto_something is deeply wrong
17:05:48Watusimoto_sam just connected to game server
17:05:50Watusimoto_btw
17:05:52raptorthis is one of those errors that sam686 would be good at finding...
17:05:55raptorha
17:08:55raptor Quit ()
17:10:46raptor has joined
17:10:46ChanServ sets mode +o raptor
17:23:01raptormaybe I should do valgrind...
17:29:40kaen Quit (Ping timeout: 256 seconds)
17:31:25kaen has joined
17:31:48raptoryay leaks!: http://pastie.org/8064689
17:46:33raptor Quit (Ping timeout: 268 seconds)
17:51:52Watusimoto_well... finally... I think I see why we can't create a ClientGame instance in the tests...
17:56:02kaen!
17:56:04kaenwhy?
17:58:20Watusimoto_fontManager needs to be intialized... investigating now
17:58:56raptor has joined
17:58:56ChanServ sets mode +o raptor
17:58:59Watusimoto_hopefully will haev a fix before I fall asleep again
18:01:41Watusimoto_can't fix tonight
18:02:05Watusimoto_we can't get font stash working in tests without further work (if at all), which is... unfortunate
18:02:16raptor:(
18:02:35Watusimoto_this is what's failing:
18:02:36Watusimoto_ glGenTextures(1, &texture->id);
18:02:36Watusimoto_ if (!texture->id) goto error;
18:03:05Watusimoto_not sure why glGenTextures is not working, but probably because we haven't init'ed video or something
18:03:17Watusimoto_ok, well, this will have to be finished tomorrow
18:03:40Watusimoto_but that's the reason clientGame won't work in tests
18:03:54Watusimoto_so
18:03:57Watusimoto_good night!
18:04:29raptornight
18:10:01Watusimoto_ Quit (Ping timeout: 246 seconds)
18:40:56raptoryes... you'll need to initialize the video subsystem..
19:05:22Nothing_Much Quit (Quit: l8r)
19:05:42Nothing_Much has joined
19:05:52Nothing_Much Quit (Changing host)
19:05:52Nothing_Much has joined
19:30:39SolumnMushroom has joined
19:30:57SolumnMushroomI'm on MintPPC!!!
19:34:16Nothing_MuchMint?
19:34:26Nothing_MuchOh, Linux Mint has a PPC port?
19:36:31SolumnMushroom Quit (Ping timeout: 240 seconds)
19:53:38raptorwe have a memory leak every time we call .new() in Lua now...
19:53:50raptora c++ memory leak
19:54:11raptorit has something to do with our modifications to upstream LuaW
19:54:18raptori'm pretty sure..
20:59:21fordcars has joined
21:03:29raptorok, i discovered the cause of the memory leak..
21:03:48raptornow to write a long e-mail to watusimoto (i'll CC you kaen)
21:04:06kaenok
21:04:34raptoractually, maybe you have a good idea of how to handle... but give me a few minutes to collect my thoughts (if you're interested)
21:05:03kaenok
21:10:20raptorok ready?
21:11:24raptorthere are two ways to get objects into LuaW from c++ using _push only, and from Lua using .new()
21:11:47raptorsorry: 1. from c++ 2. from Lua .new()
21:12:09raptornow c++ -> _push does the following:
21:12:31raptorcreate proxy, call luaW_hold to clean up the proxy
21:13:00raptorbut #2, the Lua .new() path does this:
21:14:07raptorcall c++ new(), call _push which creates proxy, calls _hold
21:14:14raptorfollow?
21:14:44kaenyes
21:14:48raptoryay
21:14:51kaensorry was getting oatmeal
21:14:52raptorok, now here's the issue
21:14:56raptoryum!
21:15:17raptorwhen luaW_gc is called it does this:
21:15:36raptorgrab objects proxy, deletes proxy... that's it
21:16:08kaenokay
21:16:12kaensounds like .new shouldn't be holding
21:16:12raptorwhich works find with path #1, but not #2 because there was a 'new' called
21:16:22raptor*fine
21:16:26kaenoh wait
21:16:28kaenderp nevermind
21:16:34raptor:)
21:16:46kaenc++ leak :P
21:16:50raptoryep
21:16:57raptornow the original _gc from upstream
21:17:34raptorit didn't check for the proxy and assumed that anything in _hold was called from Lua .new()
21:17:39raptorso it deleted the object
21:17:51raptorthe original _push method never had that _hold in it
21:18:00kaenoh whoa
21:18:27raptorbecause it assumed everything had a .new() or didn't have anything to clean up
21:18:37kaengot it.
21:19:06raptorok, now what to do: we need to have two ways to garbage collect: 1. delete proxy OR 2. delete proxy and owning object
21:19:37raptorand I'm not sure there's a good way to do this other than writing a parallel _hold (like _holdProxy) pathway
21:20:03raptorand maybe your hopefully clearer mind can see something easier...
21:22:03raptorsorry, not parallel hold - maybe another field in the cache table that tracks where the object came from..
21:22:09fordcars019 bitfighter is weirdly crashing on startup :/
21:22:23raptorfordcars: what system?
21:23:32kaenmaybe we can pass a flag to the proxy that tells it whether it should destroy its antecedent when it gets gc'd?
21:24:46fordcarswindows xp
21:25:14fordcarsthe command line and bitfighter just freezes
21:25:22kaenso basically add a flag on LuaProxy and an argument to it's constructor and if that flag is true at gc time then destroy the real object
21:26:09fordcarsI think I should clean compile, that should help
21:26:25fordcarsbut it takes like 15 minutes
21:27:21fordcarswait, raptor do I compile bitfighter or bitfighterd?
21:28:02kaenfordcars, bitfighter
21:28:10kaenbitfighterd is the dedicated server
21:28:11fordcarsok that's what I did
21:28:15fordcarsoh ok
21:38:23raptorkaen: that's a good idea - maybe i'll pull out the proxy-attachment logic into it's own method...
21:38:39raptorso when I call 'new' on it I can add a flag..
21:41:38kaenraptor what version of phpbb do we run?
21:41:59kaenish?
21:45:18raptoruhh
21:45:25raptorlatest or latest minus 1
21:45:33raptorchecking...
21:46:07raptor 3.0.11
21:56:58fordcars_ has joined
21:58:40fordcars Quit (Ping timeout: 250 seconds)
22:54:41raptor Quit ()
23:08:31kaen Quit (Ping timeout: 248 seconds)
23:10:35kaen has joined

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.