Running chili framework for the first time

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
m_deceiver
Posts: 3
Joined: January 31st, 2019, 10:03 am

Running chili framework for the first time

Post by m_deceiver » January 31st, 2019, 10:29 am

Hey guys
I tried to run chili framework for the first time, it built successfully without any failures, but when I tried to run it the following message popped up:

Error: E_INVALIDARG
Description: The parameter is incorrect.

Note: Creating device and swap chain
Location: Line [85] in Graphics.cpp

Exception caught at Windows message loop.
Attachments
Untitled.jpg
(113.87 KiB) Not downloaded yet

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Running chili framework for the first time

Post by albinopapa » January 31st, 2019, 6:27 pm

In Graphics.cpp, around line 85, are these the same lines?

Code: Select all

70.	// create device and front/back buffers
71.	if( FAILED( hr = D3D11CreateDeviceAndSwapChain( 
72.		nullptr,
73.		D3D_DRIVER_TYPE_HARDWARE,
74.		nullptr,
75.		createFlags,
76.		nullptr,
77.		0,
78.		D3D11_SDK_VERSION,
79.		&sd,
80.		&pSwapChain,
81.		&pDevice,
82.		nullptr,
83.		&pImmediateContext ) ) )
84.	{
85.		throw CHILI_GFX_EXCEPTION( hr,L"Creating device and swap chain" );
86.	}
Do the lines above exactly match the lines you have in your Graphics.cpp file?

What operating system are you running?
What video card do you have?

The chili framework assumes you are running Windows 7 or higher and your video card supports DX 9.1 or higher ( DirectX 11 feature level 9.1 or higher to be precise ).
WindowsXP eventually supported DirectX 9.3.
Windows Vista supports up to DirectX 10.1
Windows 7 supports up to DirectX 11.1
Windows 8 supports up to DirectX 11.2
NOTE: DirectX 11.3 and 11.4 are a bridge between DirectX 11 and DirectX 12, so I'm assuming they only work on Windows 10.
Windows 10 supports up to DirectX 12.?
NOTE: The documentation doesn't seem to list different versions of DX 12.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Running chili framework for the first time

Post by albinopapa » January 31st, 2019, 6:31 pm

I have an APU ( AMD Ryzen 5 2400G ) and ran into an issue when I set the dedicated system memory to around 64 MB. This dedicated only 64mb of memory to the GPU part of the APU. The chili framework didn't like it. I don't recall the exact error message, whether it was the same as yours or failed elsewhere, but it's something to look into.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

m_deceiver
Posts: 3
Joined: January 31st, 2019, 10:03 am

Re: Running chili framework for the first time

Post by m_deceiver » January 31st, 2019, 7:47 pm

Hey man, I really really appreciate it.
I ran it again and checked Graphics.cpp and the lines are exactly like the piece of code you wrote up there.
And these are my system's complete info:

------------------
System Information
------------------
Time of this report: 1/31/2019, 23:02:48
Machine name: DECEIVER-PC
Operating System: Windows 7 Ultimate 32-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_ldr.170913-0600)
Language: English (Regional Setting: English)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: 945PL-S3
BIOS: Award Modular BIOS v6.00PG
Processor: Genuine Intel(R) CPU 2160 @ 1.80GHz (2 CPUs), ~1.8GHz
Memory: 3072MB RAM
Available OS Memory: 3072MB RAM
Page File: 806MB used, 5335MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
DxDiag Version: 6.01.7601.17514 32bit Unicode


--------------------
DirectX Debug Levels
--------------------
Direct3D: 0/4 (retail)
DirectDraw: 0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay: 0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow: 0/6 (retail)

---------------
Display Devices
---------------
Card name: NVIDIA GeForce 8600 GT
Manufacturer: NVIDIA
Chip type: GeForce 8600 GT
DAC type: Integrated RAMDAC
Device Key: Enum\PCI\VEN_10DE&DEV_0402&SUBSYS_82431043&REV_A1
Display Memory: 1776 MB
Dedicated Memory: 497 MB
Shared Memory: 1279 MB
Current Mode: 1024 x 768 (32 bit) (75Hz)
Monitor Name: Generic Non-PnP Monitor
Monitor Model: unknown
Monitor Id:
Native Mode: unknown
Output Type: HD15
Driver Name: nvd3dum.dll,nvwgf2um.dll
Driver File Version: 7.15.0011.6222 (English)
Driver Version: 7.15.11.6222
DDI Version: 10
Driver Model: WDDM 1.0
Driver Attributes: Final Retail
Driver Date/Size: 7/6/2007 08:45:00, 4788224 bytes
D3D9 Overlay: Not Supported
DXVA-HD: Not Supported
DDraw Status: Enabled
D3D Status: Enabled
AGP Status: Enabled

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Running chili framework for the first time

Post by albinopapa » February 1st, 2019, 2:46 am

Well, your video card supports DX10 ( not sure 10.0 or 10.1 is the highest ) and your OS does support DX11 feature levels 9.1,9.2,9.3,10.0,10.1,11.0 and 11.1 so not sure why it is having this issue. I have seen in the past that some users have required the use of creating a DirectX10 device directly instead. Perhaps the drivers don't support dx11 feature levels.

It doesn't take that long to convert the framework to use DX 10, I may even have a copy around here from last time. If you aren't able to update the drivers and have it work, let me know and I'll see if I can either round up the previous project or make a new one.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Running chili framework for the first time

Post by albinopapa » February 1st, 2019, 2:55 am

Here is the DirectX 10 Fallback version. Apparently the enumeration ( DXGI_FORMAT_B8G8R8A8_UNORM ) is not supported until DirectX 11. If you changed it to DXGI_FORMAT_A8R8G8B8_UNORM it might work, but the red and blue channels are swapped.

This still holds true for the version I posted in the GitHub ropository, but in that version I swap the red and blue channels in the shader so the rest of the framework doesn't have to be changed.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

m_deceiver
Posts: 3
Joined: January 31st, 2019, 10:03 am

Re: Running chili framework for the first time

Post by m_deceiver » February 1st, 2019, 12:21 pm

I installed a newer version of my video card's driver software and then DirectX11.2, now everything works smoothly.
You don't have any idea how many times I tried to do something to avoid that damned error message. Now I got this big smile on my face, thanks again.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Running chili framework for the first time

Post by albinopapa » February 1st, 2019, 6:05 pm

Glad to hear it.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Running chili framework for the first time

Post by chili » February 2nd, 2019, 12:08 pm

Glad you got it sorted. I was about to get you to turn on the debug layer and give post the contents of the Output window.
Chili

Post Reply