Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
mjmeans

Registered:
Posts: 20
Reply with quote  #1 

Upon exiting Artemis I get the error: "The D3D device has a non-zero reference count, meaning some objects were not released". This happens in all video modes, full screen or windows and at various resolutions from 1280x1024 to 1920x1200. I have not tried lower resolutions. As a programmer, I know that unreleased D3D objects can result in a memory leak and eventual lock due to unavailable system resources.

MDL: Dell XPS M1710 Gaming Laptop
OS: Windows 7 Pro x64
RAM 3.25GB
CPU: Intel Core 2 T7200 @ 2.00 GHz
VDC: NVIDIA GeForce Go 7950 GTX

vfrdirk

Registered:
Posts: 129
Reply with quote  #2 
I've seen this error after alt-tabbing out of Artemis, back in, and then quitting. During the beta, I was frequently popping in and out of the game since it wasn't running full-screen. Even when it was running with full screen (or FS windowed) alt-tabbing around it resulted in the error. 
pupbrad

Avatar / Picture

Registered:
Posts: 889
Reply with quote  #3 
This has been happening to virtually everyone. Considering the number of posts on it, Thom HAS to know about it, but it might just be a error that's more trouble getting rid of than it's worth considering I've had it since 1.702, though I can't remember if I had it before that or not. Don't worry though, it's not going to break the game or your computer, it seems completely harmless so far and doesn't even seem to affect anything besides the annoying popup.
__________________
Captain of the USN Basroil.
"I am a leaf on the wind. Watch how I soar." - Hoban Washburne
"Give me a ship to fly and I'll make it sit up and beg, roll over (but NEVER play dead), and even do the jitterbug if you so fancy." - Unknown
mjmeans

Registered:
Posts: 20
Reply with quote  #4 
This happens in full scree without alt-tabbing out. For people using computers that only suspend or hibernate and are rarely shut down, this error represents an escalating problem. It indicates that D3D is not releasing all COM objects. D3D is implemented a dozen or so COM interfaces. Any application that requires D3D must request objects of the particular interfaces that it needs using d3d->CreateDevice() calls. COM creates the object and passes it to the application for use. COM objects do not have a system managed clean up or garbage collection. When the application ends, if those system resources are not explicitly released with calls to d3d->Release(), they will continue to be reserved indefinitely until Windows is restarted. This is the very first lesson in learning to use D3D because it is critical to system stability. Depending on what objects were reserved and what the internal COM objects limits are, this could cause system instability or failure among any other application that requires D3D (virtually any other game). For example: Let's say that Artemis needs a certain D3D COM object that has a D3D limit of 256 simultaneous reservations (a limit in D3D). Assuming the system itself (Windows) doesn't use any of that interface; If Artemis reserves 8 of them but only releases 2 of them, then the reservation limit will be reached after 42 runs. You will then get a new error message when you run Artemis that says "Out of system resources". And when that happens, any other game that requires that specific D3D interface will also fail to run with the same error message. The normal way to handle these COM objects is to maintain an internal counter for each D3D COM interface the application needs.
techbear

Administrator
Registered:
Posts: 172
Reply with quote  #5 
I DO know about it, thanks to everyone.  I had no idea the problem existed when I released 2.0, and I intend to fix it with the very next release.
aviphysics

Registered:
Posts: 2
Reply with quote  #6 
Thanks for acknowledging the error. I believe I had the fatal error that mjmeans described last night. I had been shutting down and restarting the program many times while testing our setup. While we were actually playing, the game crashed and through a d3d related error to all the computers. If it happens again, I will be sure to write it down.

Edit: BTW, I get the d3d error on all our computers. The computers cover the full range from laptop to desktop; Nvidia, AMD, and Intel GPU; Core, Core 2, Athlon II and i5 CPU; dedicated and switchable graphics; and both Windows 7 and Windows 8.

BTW, I love how the game runs decently well on even our lowliest Core Duo with IGP. Please try to maintain that.
Commodore Erickson

Avatar / Picture

Registered:
Posts: 154
Reply with quote  #7 
I have seen this all along (started in 1.5) upgraded 1.6, 1.7. Still seeing it in 2.0.

"The D3D device has a non-zero reference count, meaning some objects were not released."

I also have to kill a hung up Artemis process, from time to time, when we are running the game back to back for a number of events.

Killing the process seems to fix any issue and allows me to keep running. The description above by mjmeans seems to indicate if it happens enough I would need to reboot. Last con I would reboot each day and we ran 16 hours a day, with no reboots needed mid day.


Another 3Dish issue I have seen...

And about once or twice in a 12 hour day, the Main View Screen will lose all coloring on objects and they are flat black outlines on the screen. When this happens its right after starting and we drop rhw server, kill any hung Artemis processes and connect everyone back in. I have not gotten to run a 12 hour session of 2.0 yet, and have not seen this in 2.0 yet.

However looks like I will be running at an event in October so will let you know if I see the black flat object issue in v2.


Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.