#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2011-09-04

Timestamps are in GMT/BST.

02:36:00Zoomber`Reading symbols for shared libraries . done
02:36:00ZoomberReading symbols for shared libraries . done
02:36:00ZoomberProgram received signal SIGTERM, Terminated.
02:36:00Zoomber0x00000001000de0e9 in Zap::DatabaseObject::setExtent ()
02:38:00sam686it doesn't tell much, try compiling and running in debug mode?
02:38:00Zoomberok
02:39:00Zoomberwait
02:39:00Zoomberi want to try /maxfps 1001 on my windows emulator
02:41:00sam686i can go over 1000 fps (maxfps 1001) up to 2000 fps, only when i run bitfighter in a tiny window..
02:41:00Zoomberi Vsync when i go to a tiny window or fullscreen
02:41:00Zoomberbut, in virtual machine, i can only get 69 fps
02:42:00sam686ok, now it finally freezes on me with 100% CPU usage
02:42:00Zoombermine usually stay at 2000 or 20000 fps, cant tell which
02:42:00Zoomberwhen in small window
02:42:00Zoombergbut cant read it
02:42:00sam686wait, now it is leaking memory now and eating up all my RAM
02:43:00Zoomberi have over 2 GB free ram
02:43:00Zoomberoh
02:43:00Zoombernow all of a sudden
02:43:00Zoomberi
02:43:00Zoomberhave 5 mb memory free
02:43:00Zoomberalso
02:43:00Zoombercpu fine
02:43:00Zoomberbut no more ram left
02:44:00Zoomberdam, it used 2.6 GB memory
02:46:00sam686it was badly slowing my computer down, then i get a "Runtime Error! Program: (empty) This application has requested the Runtime to terminate in an unusual way."
02:48:00Zoombershould i upgrade my RAM to 8 GB? only 30 dollars...
02:49:00sam686it is a bitfighter problem eating too much RAM when it crashes with /maxfps 1001
02:50:00sam686for my computer, it used 2 GB memory, then crash.. My computer only have 1.5 MB ram, so it used a hard disk for extra memory, slowing down my computer.
02:50:00sam686(it crash bitfighter)
02:51:00Zoomberi wonder why it eats so much ram there
02:51:00sam686i wonder why it only crash with /maxfps 1001
02:52:00sam686i will test again, but with debugger, hit "break all" when it freeze, to see where it get stuck in.
02:53:00Zoomberok
03:01:00sam686i found the problem, fixing it...
03:06:00Zoomberwhat was problem?
03:06:00sam686there, now I fixed it on my 015a clone..
03:06:00Zoomberproblem?
03:06:00sam686it was a problem with this: if(U32(maxx - minx) > GridDatabase::BucketRowCount) maxx = minx + GridDatabase::BucketRowCount;
03:07:00Zoomberok
03:07:00Zoomberpulling now
03:08:00sam686without U32 part, it may crash when maxx - minx is negative. With U32, it forces it be positive and check.
03:09:00sam686basically, w = U32(z), if z < 0, then it adds 4294967295 to make it positive (overflow effect)
03:09:00sam686oh, i meant 4294967296 (not 5)
03:11:00Zoombertrying it now
03:11:00sam686Here is a range of numbers that 32 bit number is allowed to have: U32 (0 to 4294967295 ) S32 ( -2147483648 to 2147483647 )
03:11:00Zoomberok
03:12:00sam686might be easier to understand with 8 bit numbers: U8 (0 - 255) S8 (-128 to 127)
03:12:00Zoomberok, i am not crashing now
03:13:00Zoombermostly happening on map "CPU" when going through a bunch of speedzones
03:13:00Zoomberb
03:13:00Zoomberut no
03:13:00sam686conversion from S8 to U8 will add or subtract 256 if it overflows or underflows.
03:13:00sam686does it work now?
03:29:00Zoomberyes, works now
03:30:00Zoomber Quit (Quit: Zoomber)
07:59:00kodax has joined
08:22:00kodax Quit (Ping timeout: 258 seconds)
08:30:00LordDVG has joined
08:35:00kodax has joined
08:38:00kodax Quit (Read error: Connection reset by peer)
08:39:00kodax has joined
09:50:00kodax Quit (Ping timeout: 245 seconds)
10:10:00kodax has joined
13:03:00LordDVG Quit (Remote host closed the connection)
16:17:00Flynnn has joined
16:20:00kodax Quit (Read error: Operation timed out)
16:31:00Flynnn Quit (Quit: This computer has gone to sleep)
17:01:00Flynnn has joined
17:10:00Flynnn Quit (Quit: Leaving)
17:33:00LordDVG has joined
17:33:00LordDVG Quit (Changing host)
17:33:00LordDVG has joined
17:36:00LordDVG Quit (Remote host closed the connection)
17:36:00LordDVG has joined
17:36:00LordDVG Quit (Changing host)
17:36:00LordDVG has joined
18:26:00Zoomber has joined
18:26:00ChanServ sets mode +v Zoomber
20:51:00raptor has joined
20:51:00ChanServ sets mode +o raptor
20:57:00raptorhello
20:58:00LordDVG Quit (Remote host closed the connection)
21:06:00raptorso sam686, Zoomber, found a memory leak?
21:09:00sam686it is the problem in gridDB.cpp line 544: if(maxx - minx >= gridDB->BucketRowCount)
21:09:00sam686using if(U32(maxx - minx) >= gridDB->BucketRowCount) will fix it..
21:09:00raptorinteresting, how does that become a memory leak?
21:10:00raptorso probably an overflow problem?
21:10:00sam686when maxx - minx overflows to negative number, then it will skip that check if not checking as unsigned
21:16:00raptorahh.. i get it
21:16:00raptorso not a traditional leak, but very fast build up
21:17:00sam686yes, as as a loop lie this: for(S32 y = miny; maxy - y >= 0; y++) {GridDatabase::BucketEntry *be = gridDB->mChunker->alloc(); ...} will eat too much memory if the loop is run millions of times
21:21:00raptorso is a U32 cast better than an abs()?
21:21:00raptorseems like a lot of casting is happening in that function...\
21:22:00sam686abs may not work, as integer abs won't go to positive when the S32 value is -2147483648 (0x80000000)
21:23:00BFLogBot - Commit b0e95bb03d52 | Author: sam8641 | Log: Fix problem with GridDatabase freeze problem.
21:25:00sam686when converting F32 to S32, when float to int overflows, the value is 0x80000000. Might be different overflow behavior in linux or other compilers.
21:35:00sam686I came up with some list of problems that exists with 016. http://208.107.52.15/bitfighter/110904bugs.txt
21:35:00raptoroh goodie
21:36:00raptorlooks like the editor is winning!
21:36:00raptorCircleSpawn doesn't spawn anymore? i thought it took about 20 seconds
21:37:00sam68610. was suppose to be: 10. Editor: Can't edit heal rate for Turrets and ForceField
21:38:00raptori looked at why raw buttons don't work - i didn't see anything obvious
21:39:00raptori can't duplicate #4 on my linux box
21:40:00sam686number 19 may also be a problem in linux..
21:41:00raptordoes 19 occur when you run the dedicated part?
21:41:00raptoror client
21:41:00sam686i guess number 4 is only a problem with ubuntu..
21:41:00sam686i think it is client only, expecially when client is hosting.
21:41:00raptorok, let me try... hosting
21:49:00raptorok, i'm hosting again
21:49:00raptori turned off the sdl hardware surface flag
21:59:00raptoryeah, i'd mark #19 as invalid
21:59:00raptoralso #2 doesn't occur on my linux, is it that big a concern?
22:02:00sam686in #2, hiding mouse pointer then showing mouse pointer moves the pointer back to the middle, such as pressing up arrow may move the highlighted menu back to the middle...
22:03:00sam686#1 may be more annoying then #2..
22:03:00raptorhmm, looks like it can one of two things: 1. SDL bug with windows (or necessary workaround) 2. bitfighter code always resetting the mouse pointer at center
22:04:00sam686well then, why does neither #1 or #2 not happen in linux?
22:05:00sam686i think this might be a bug in windows version of SDL, that does not happen in linux.
22:05:00raptoryeah, i think so too
22:05:00raptorat least for #2
22:09:00raptorcan you explain bug #1 a bit better?
22:10:00sam686easy, go full screen, go in-game as if you joined a server or hosting, then press ALT + TAB. mouse will then get stuck at top left corner of screen.
22:10:00sam686note that linux seems to not let you alt+tab in fullscreen, but wildows does.
22:11:00raptorok, i can alt+tab just fine in linux between all three window modes
22:12:00raptoralso, now cursor stuck
22:12:00raptorbut switching to either full-screen mode makes the cursor recenter
22:12:00raptorbut not going from fullscreen to windowed
22:13:00sam686my alt+tab don't work in ubuntu...
22:14:00sam686in fullscreen bitfighter..
22:14:00raptorwell that stinks
22:15:00raptori found somthing odd: http://208.107.52.15/upload/screenshot_6.png
22:15:00raptorat certain angles the shots don't go to the middle of the cross-hairs
22:16:00raptorsome sort of rounding, i imagine..
22:18:00sam686this is 2 places it freezes. http://208.107.52.15/bitfighter/linux_ubuntu_freezes.txt
22:18:00sam686the SDL_GL_SwapBuffers freezes while in console mode (ctrl + alt + F1)
22:19:00sam686the Zap::Event::onResize(int, int) seems to be endless loop when maximized, but not fullscreen.
22:22:00raptorthat's odd
22:22:00raptorthat would be an SDL problem..
22:23:00raptorif you look at the code, that method is only called if SDL sets the appropriate flag
22:24:00Zoomberhi
22:25:00raptorhi
22:25:00raptorsam686: can you put a logprintf statement at Event.cpp:443
22:25:00raptorand see when it is actually triggered? and do things like maximize window/ full screen/ etc...
22:26:00Zoomberraptor:
22:26:00Zoomberlet me show you
22:26:00Zoomberoh, nevermind
22:26:00Zoomberi thought i could reproduce your shooting bug
22:27:00Zoomberit looks like you have maxfps set in that picture though
22:27:00Zoomberthe phasers are all a certain distance from each other, where on my screen, they are much closer together
22:27:00raptori am running 016
22:27:00sam686ok, but what logpringf? in Exent.cpp line 443?
22:28:00raptorlike logprintf("in onResize()!");
22:28:00raptorsomething simple, just to see when it is actually triggered
22:30:00ZoomberAhh raptor, i found my mouse problem
22:30:00sam686yes, it is calling onResize about 200 times a second when maximized...
22:31:00raptoroh yikes
22:31:00raptorthat's a serious bug
22:31:00Zoomberfound out, i was only having slow mouse when in "scale mode" (lets me scale my OS window to whatever i want)
22:32:00raptoryeah sam686, in linux, i only ever get onResize if it is in windowed mode, like it should be...
22:32:00raptori might have to recompile sdl libraries just for windows... sigh
22:33:00sam686could be something to do with bitfighter fighting to set the window to 4:3 ratio, but os won't set it to that in windowed maximize mode. (my laptop at 1024 x 576)
22:34:00raptormy laptop is 1600x900
22:34:00sam686my desktop lcd is at 1280 x 1024.
22:34:00raptorsame ratio as yours
22:35:00sam686my crt is 17 inch, but the resolution depends (up to 2048 x 1536 at 55 Hertz, or 1280 x 1024 at 86 hertz)
22:35:00ZoombreGiantImac has joined
22:36:00ZoombreGiantImachi
22:36:00raptorso where does the bug occur? on your CRT?
22:36:00sam686what bug? my desktop windows computer?
22:36:00ZoombreGiantImacthe fps crash bug?
22:36:00raptorthe onResize being called a hundred times a second in full screen
22:37:00sam686that bug is only on my laptop's ubuntu.
22:37:00raptorohhh...
22:37:00raptorcan you tell my the SDL version on your laptop?
22:38:00sam686what command do i use to find out?
22:38:00ZoombreGiantImacYES
22:38:00ZoombreGiantImaccan still access my remote VNC desktop
22:38:00raptorummm...
22:38:00raptorcheck your package management systeM?
22:38:00raptornot sure on a non-RPM based system...
22:39:00sam686there is something called "Ununtu Software Center" that i can try to check...
22:39:00ZoombreGiantImacyes
22:39:00sam686sdl
22:39:00ZoombreGiantImacthats what you would want to check
22:39:00raptordo you have a graphical front-end for apt?
22:39:00ZoombreGiantImaci think it may be similar, if not is
22:40:00ZoombreGiantImaci tried to install bitfighter there, and couldn't even do that :[
22:40:00sam686not sure..
22:40:00ZoombreGiantImacbut with apt-get command, easy to install stuff. leme go to my imac and try that
22:41:00sam686when i do SDL for installed software, it says i have libsdl-ttf2.0-0 libsdl1.2-dev
22:41:00raptorthose would be package names
22:41:00raptorwhat about the version?
22:41:00sam686and libsdl1.2debian-pulseaudio libsdl1.2debian
22:41:00raptorshould be something like 1.2.12
22:41:00raptoror 1.2.14
22:42:00raptorso for instance, on rpm system, the package name is: libSDL-1_2-0
22:42:00sam686libsdh-ttf2.0-0 have version 2.0.9-build1
22:42:00raptorok, how about the basic libsdl12
22:42:00Zoombersudo apt-get install libsdl1.2-dev libsdl1.2debian
22:42:00Zoomberand y to updates
22:43:00raptoron rpm systems, the version is: 1.2.14-40.1
22:43:00raptorsomething like that
22:43:00raptor1.2.14 <- version; 40.1 <- build revision
22:44:00raptorso full package name is something horrible like this: libSDL-1_2-0-1.2.14-40.1
22:44:00sam686my libsdl1.2-dev have version 1.2.14-4ubuntu1.1
22:44:00raptorthere we go!
22:44:00raptor1.2.14
22:44:00raptorok
22:45:00raptormine is the same, but i don't have that resize problem...
22:46:00raptori wonder if it is your video drivers
22:47:00Zoombersam686
22:47:00Zoombercan find that by going to System > administration
22:47:00Zoomber> system monitor
22:49:00sam686what does the system monitor shows? it just looks at CPU, network, and memory usage.
22:49:00Zoomberyou have to click on the "system" tab
22:50:00Zoomberfor me it shows my Ubuntu version and kernal/gnome, my hardware "memory and processor"< and available disk space
22:50:00raptorubuntu can vary wildly between versions FYI
22:51:00raptorany linux distro can..
22:51:00Zoombertrue, and am not sure what version sam has, maybe 10.something
22:52:00sam686http://208.107.52.15/upload/systemmonitor.png - doesn't seem to show anything about the graphics.
22:53:00Zoomberi see
22:54:00Zoomberan intel atom processor with 1 GB ram will work very very well with windows 7..
22:54:00raptori'll be back..
22:54:00Zoomberraptor: do you use windows 7 at all? curious
22:54:00sam686though, i don't think it is graphics hardware related, but mostly the SDL version, different dirtrobution (ubuntu) having different version of several things..
22:55:00sam686though, i also have windows XP in my laptop as dual boot (with ubuntu)
22:57:00Zoombermight be a good idea to upgrade that windows XP to 7, as windows xp take lots of resources on a small laptop like that, and 7 will be much faster with it..unlike vista
22:58:00sam686upgrade to windows 7 == pay $$$$$$
22:58:00sam686installing and using ubuntu = free
22:59:00sam686better off getting a new, fast computer..
22:59:00Zoombertoo bad microsoft doesnt allow me to lend you my windows 7 to upgrade..

Index Search ←Prev date Next date→

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