TorqueDemo 1.3 takes up 2GB RAM?
by Ed Averill · in Torque Game Engine · 10/17/2005 (7:15 pm) · 4 replies
Fresh install of TGE 1.3, double-click the "TorqueDemo" icon, long wait.. finally error dialog is displayed:
"Error allocating virtual memory".
Restarted, watching with Task Manager, all goes well for a bit then suddenly all physical memory gets allocated (and I have 2GB of RAM on my machine)! :-O
Looked at console.log - which was HUGE, 23MB? Before about 22MB of "This shouldn't happen" I see:
=====================================
Video Init:
Accelerated OpenGL display device not detected.
Accelerated D3D device not detected.
Voodoo 2 display device not detected.
"OpenGL" display device not found!
"OpenGL" display device not found!
"D3D" display device not found!
"Voodoo2" display device not found!
=====================================
My system is a 3GHz P4 with 2GB RAM and an ATI 9600XT video card running the latest drivers.
Help! Any guesses as to what the issue might be?
"Error allocating virtual memory".
Restarted, watching with Task Manager, all goes well for a bit then suddenly all physical memory gets allocated (and I have 2GB of RAM on my machine)! :-O
Looked at console.log - which was HUGE, 23MB? Before about 22MB of "This shouldn't happen" I see:
=====================================
Video Init:
Accelerated OpenGL display device not detected.
Accelerated D3D device not detected.
Voodoo 2 display device not detected.
"OpenGL" display device not found!
"OpenGL" display device not found!
"D3D" display device not found!
"Voodoo2" display device not found!
=====================================
My system is a 3GHz P4 with 2GB RAM and an ATI 9600XT video card running the latest drivers.
Help! Any guesses as to what the issue might be?
About the author
Programmer, writer, game developer. Born in Florida, lived all over the U.S. Now in Austin, TX!
#2
This is weird - I tried reinstalling my Catalyst drivers DirectX-9 and the problem went away! Looks like something got messed up sometime in the recent past, ugh.
Now TorqueDemo is running perfectly. Whew! Had me really worried...
ps. yes I am a Torque newbie, sorry....
10/17/2005 (7:33 pm)
Nope, I have 10GB left on my 80GB system drive!This is weird - I tried reinstalling my Catalyst drivers DirectX-9 and the problem went away! Looks like something got messed up sometime in the recent past, ugh.
Now TorqueDemo is running perfectly. Whew! Had me really worried...
ps. yes I am a Torque newbie, sorry....
#3
Sticking an assert in there to catch > 1gb memory allocations is a good first bet at tracking down the problem, since you can then find out which code and why is calling it with such a large value.
10/17/2005 (8:25 pm)
That error typically indicates that something is trying to allocate something crazy - like -1 bytes - which is wrapping around and causing a HUGE allocation to occur.Sticking an assert in there to catch > 1gb memory allocations is a good first bet at tracking down the problem, since you can then find out which code and why is calling it with such a large value.
#4
..and also add a check so that if no hardware 3D is detected, it produces a nice, friendly error message and gracefully exits. But that's all fit n finish work at this point!
Thanks for the responses! :-)
10/18/2005 (9:58 am)
I think, once I get to digging in the engine, I'll do just that!..and also add a check so that if no hardware 3D is detected, it produces a nice, friendly error message and gracefully exits. But that's all fit n finish work at this point!
Thanks for the responses! :-)
Torque Owner Vashner