Getting "Copy of Torque is already running; exiting" error
by Garth Johnson · in Torque Game Engine · 11/05/2007 (10:46 pm) · 7 replies
I compiled the server (using "make dedicated") and everything works great (thanks to the awesome tutorial at http://web.ics.purdue.edu/~ljbuesch/cms/?q=node/5 - thank you Logan!! ).
Now I try to run it..and this is the result:
/usr/local/tge/example$ ./torqueDemod.bin -game starter.fps -dedicated -mission starter.fps/data/missions/stronghold.mis
Sleep latency: 3ms
Sleep latency ok, enabling dsleep for lower cpu utilization
Alert: Fatal-ISV: (console/consoleFunctions.cc @ 765) Copy of Torque is already running; exiting.
Segmentation fault (core dumped)
1) But no process is running! I checked!
2) I am running the command remotely over ssh with X forwrding enabled.
3) The TGE is version 1.5.
4) Using Ubuntu Linux - version = Gutsy.
I get similar errors on Windows 2003 Server when I attempt to run it in dedicated server mode also (using remote desktop connection/ terminal services)
What have I doing wrong? I am getting a bit concerned. Is v1.5 in particular not usable as a remote server? Is this a bug in v1.5? Is this an issue in general for running Torque as a standalone server? ..or is there a really obvious thing I am missing that everyone else is getting? People ARE running Torque as standalone servers.. right? I mean that is after all, the whole point... isn't it?
Thanks for any pointers or suggestions.
Now I try to run it..and this is the result:
/usr/local/tge/example$ ./torqueDemod.bin -game starter.fps -dedicated -mission starter.fps/data/missions/stronghold.mis
Sleep latency: 3ms
Sleep latency ok, enabling dsleep for lower cpu utilization
Alert: Fatal-ISV: (console/consoleFunctions.cc @ 765) Copy of Torque is already running; exiting.
Segmentation fault (core dumped)
1) But no process is running! I checked!
2) I am running the command remotely over ssh with X forwrding enabled.
3) The TGE is version 1.5.
4) Using Ubuntu Linux - version = Gutsy.
I get similar errors on Windows 2003 Server when I attempt to run it in dedicated server mode also (using remote desktop connection/ terminal services)
What have I doing wrong? I am getting a bit concerned. Is v1.5 in particular not usable as a remote server? Is this a bug in v1.5? Is this an issue in general for running Torque as a standalone server? ..or is there a really obvious thing I am missing that everyone else is getting? People ARE running Torque as standalone servers.. right? I mean that is after all, the whole point... isn't it?
Thanks for any pointers or suggestions.
About the author
Thread is locked
#2
which in turn is inside a function named initCanvas()...
Isn't there no need for a canvas in dedicated mode? Why is it trying to create one? Can I stop that behavior? I really need this to run as a service eventually (on the windows boxes) and a daemon (on the *NIX ones) - so creating graphics and sound bindings is really not wanted... or possible.
11/05/2007 (11:28 pm)
Yes, it is a simple/generic error function - quitWithErrorMessage(). I found a few more web pages in French that detail the error as well and they point at this block of code in 'example/common/client/canvas.cs':if( !%canvasCreate )
{
quitWithErrorMessage("Copy of Torque is already running; exiting.");
return;
}which in turn is inside a function named initCanvas()...
Isn't there no need for a canvas in dedicated mode? Why is it trying to create one? Can I stop that behavior? I really need this to run as a service eventually (on the windows boxes) and a daemon (on the *NIX ones) - so creating graphics and sound bindings is really not wanted... or possible.
#3
11/06/2007 (12:14 am)
Yep - it definitely is creating a screen no matter what I do - and that is the issue over either RDP/TS or ssh/X-forwarding connections. It is running like a client not a server. Is there a way to force it to act like a server/daemon process instead? ..no gui? I kinda though that was what "-dedicated" was for.
#4
11/06/2007 (12:33 am)
I'm running several Torque instances on a dedicated server. It sounds like the engine is ignoring the -dedicated flag for some reason. Have you made any changes to the main.cs file? Try throwing some echos in the code to see if it is failing to recognize the -dedicated option.
#5
Thanks for the suggestion! Wonder if it was something loke a missing newline the editor added or something. *shrug*
Now I just need to configure the firewall and away I go.
11/06/2007 (4:09 am)
No I hadn't - but on your suggestion, I added an echo or two... and POP! It came up. Wierd!Thanks for the suggestion! Wonder if it was something loke a missing newline the editor added or something. *shrug*
Now I just need to configure the firewall and away I go.
#6
11/15/2015 (3:10 am)
Man, This thread is of 2007 and I am viewing this in 2015. Wow! What a gap guys
#7
11/16/2015 (4:32 pm)
Please don't necro old thread here. This is a dev site. If you are having an issue with a game, please contact that developer.
Torque Owner Vashner