Author Topic: logging to file  (Read 3416 times)

bratHering

  • Posts: 5
  • Turrets: +0/-0
logging to file
« on: August 05, 2006, 11:53:33 pm »
My problem looks like this one: http://tremulous.net/phpBB2/viewtopic.php?t=1523

I can play 2-3 matches, then my system freezes.
There is a soundloop of half a second, network doesnt send packets.
A hard reset gives me my system back.
Now I want to shoot the trouble but how to look at the log messages after a total crash, how to log into a file?
"tremulous >> tremulous.log" doesnt work.

though its a original game, i like playing it.

my system:
AthlonXP 2400+
Ati  Radeon 9550
Fedora Core 5

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
logging to file
« Reply #1 on: August 06, 2006, 12:05:16 am »
try this:
first (as root) run:
Code: [Select]
echo 1>/proc/sys/kernel/sysrq then run tremulous as:
Code: [Select]
tremulous > tremulous.log 2>&1 to catch the standard error as well as the standard output. when tremulous freezes, press alt+sysrq+s (sysrq is on the same key as printscreen) to sync to the harddrive (the kernel will buffer writes to the hard drive so it can write in larger chunks) and then alt+sysrq+k to kill all processes on that terminal (at which point you may need to manually restart X, but it sure beats a hard reboot). if none of the sysrq commands work after tremulous froze (try alt+sysrq+h in text mode to make sure they work before) then you should check your kernel logs to see if it is panicing. (and if this is too confusing, say so, i will try to explain things more)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

bratHering

  • Posts: 5
  • Turrets: +0/-0
logging to file
« Reply #2 on: August 06, 2006, 11:25:22 am »
Now the sysrq is activated (was deactivated).

Starting with your code logs to a file. But i dont know why.
Code: [Select]
tremulous > tremulous.log 2>&1

I ve played 5-6 rounds without a freeze, was the longest play ever.

For now i didnt need sysrq. Does it work even when i cant switch to other tty?
Hey, i learned how to log console output.


Maybe it doesnt crash because i started it in a terminal? Normaly i start it from the gnome menu.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
logging to file
« Reply #3 on: August 06, 2006, 09:56:05 pm »
Quote from: "bratHering"
Now the sysrq is activated (was deactivated).

Starting with your code logs to a file. But i dont know why.
Code: [Select]
tremulous > tremulous.log 2>&1

I ve played 5-6 rounds without a freeze, was the longest play ever.

For now i didnt need sysrq. Does it work even when i cant switch to other tty?
Hey, i learned how to log console output.


Maybe it doesnt crash because i started it in a terminal? Normaly i start it from the gnome menu.
sysrq can work if you can't switch to another tty. the only thing that will stop it is if the kernel panics, which is a rare event. i doubt that it makes any difference if you run it from an (x|g|k)term or a gnome menu.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

bratHering

  • Posts: 5
  • Turrets: +0/-0
logging to file
« Reply #4 on: August 09, 2006, 10:36:44 am »
I am still on it.
No crash since i began starting tremulous logging to file.

bratHering

  • Posts: 5
  • Turrets: +0/-0
logging to file
« Reply #5 on: August 17, 2006, 04:03:27 pm »
It is stable now. Must have been a driverupdate. There came out a new ati kernel to that time.

Thank you for helping.