DXGI warning when using OpenGL on Windows 8?

I am writing a CAD application using OpenGL (not DirectX). When you run the debug build on Windows 8 Pro (64 bit), the following messages are printed in the debugger console windows before the application completes correctly:

DXGI WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Producer at 0x0000009E51808AD8, Refcount: 2. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Object at 0x0000009E5180A570, Refcount: 2. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Object : 1 [ STATE_CREATION WARNING #0: ] 

I have no idea where this is from. DXGI seems to be related to DirectX, which I do not use. Any clues?


Update

Following the advice of Paul-Jan, I turned on device debugging, which produces the following messages:

 D3D11 INFO: Create ID3D11Context: Name="unnamed", Addr=0x00000015EEB486D0, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097225: CREATE_CONTEXT] D3D11 INFO: Create ID3DDeviceContextState: Name="unnamed", Addr=0x00000015EE96DE70, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #3145735: CREATE_DEVICECONTEXTSTATE] D3D11 INFO: Create ID3D11BlendState: Name="unnamed", Addr=0x00000015EE97B6A0, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097270: CREATE_BLENDSTATE] D3D11 INFO: Create ID3D11DepthStencilState: Name="unnamed", Addr=0x00000015EE9799F0, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097273: CREATE_DEPTHSTENCILSTATE] D3D11 INFO: Create ID3D11RasterizerState: Name="unnamed", Addr=0x00000015EE97B340, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097276: CREATE_RASTERIZERSTATE] D3D11 INFO: Create ID3D11Sampler: Name="unnamed", Addr=0x00000015EE97AE30, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097267: CREATE_SAMPLER] D3D11 INFO: Create ID3D11Query: Name="unnamed", Addr=0x00000015F25D3060, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097279: CREATE_QUERY] D3D11 INFO: Create ID3D11Texture2D: Name="unnamed", Addr=0x00000015EEB8CA50, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097234: CREATE_TEXTURE2D] D3D11 INFO: Create ID3D11Texture2D: Name="unnamed", Addr=0x00000015EA313BF0, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097234: CREATE_TEXTURE2D] D3D11 INFO: Create ID3D11Texture2D: Name="unnamed", Addr=0x00000015EEB41EC0, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097234: CREATE_TEXTURE2D] D3D11 INFO: Destroy ID3D11Texture2D: Name="unnamed", Addr=0x00000015EA313BF0 [ STATE_CREATION INFO #2097236: DESTROY_TEXTURE2D] D3D11 INFO: Destroy ID3D11Texture2D: Name="unnamed", Addr=0x00000015EEB41EC0 [ STATE_CREATION INFO #2097236: DESTROY_TEXTURE2D] D3D11 INFO: Destroy ID3D11Texture2D: Name="unnamed", Addr=0x00000015EEB8CA50 [ STATE_CREATION INFO #2097236: DESTROY_TEXTURE2D] D3D11 WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Producer at 0x00000015EEA57E08, Refcount: 3. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EEB486D0, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EE96DE70, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EE97B6A0, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EE9799F0, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EE97B340, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015EE97AE30, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object at 0x00000015F25D3060, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN] D3D11 WARNING: Live Object : 7 [ STATE_CREATION WARNING #0: UNKNOWN] DXGI WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Producer at 0x00000015F25D2EB8, Refcount: 2. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Object at 0x00000015EE9AF870, Refcount: 2. [ STATE_CREATION WARNING #0: ] DXGI WARNING: Live Object : 1 [ STATE_CREATION WARNING #0: ] 
+4
source share
2 answers

On Windows Vista and above, both DirectX and OpenGL actually work through DXGI. DXGI controls devices. The actual rendering API (OpenGL / DirectX) is called producer in DXGI, so we can safely assume that the message is about your general use of OpenGL.

As complaining about both the manufacturer and the live object with reference number 2, maybe you are not breaking your OpenGL context properly? (i.e. successfully call wglMakeCurrent( NULL ) and wglDeleteContext ). Such an exception will not be a practical problem at all, since both of them will be destroyed at the end of the process, but will guarantee a warning.

+5
source

I came across the same warning information (ReportLiveObjects, Live Producer, Live Object, STATE_CREATION WARNING # 0: UNKNOWN, .....) with you in a project with DirectX 11. But this information is not informative enough for me, and you, I think .

For my project, the problem was that the texture file (.dds) has an incompatible format with other parts of my program, so the program cannot load the texture correctly. After I converted it to the correct format. This warning information has disappeared.

So, my conclusion here is that you may need to use some debugging methods, such as breakpoints, logging, etc., to track what the real problem is in your case.

0
source

Source: https://habr.com/ru/post/1446084/


All Articles