A01011010 / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

OGRE EXCEPTION(2:InvalidParametersException) #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use:
latest git
on Arch Linux 64bit
with xf86-video-ati 6.14.99-1.20120517 (open source ati drivers, 
http://www.x.org/wiki/RadeonFeature might explain it?)

Reproduce:
1. Press "Single Race"
2. Press "New Game"
3. Game crashes

CLI output: http://pastie.org/4118067

Original issue reported on code.google.com by qubodup on 20 Jun 2012 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like the line

04:25:06: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource 
GLX_icon.png in resource group General or any other group. in 
ResourceGroupManager::openResource at 
/build/src/ogre_src_v1-8-0/OgreMain/src/OgreResourceGroupManager.cpp (line 756)

might be the cause. A .png file wasn't pushed? Or maybe the install script I 
used is problematic ( 
https://aur.archlinux.org/packages/st/stuntrally-git/PKGBUILD )

Original comment by qubodup on 20 Jun 2012 at 2:29

GoogleCodeExporter commented 9 years ago
This looks for me like something that this OS needs. We don't have this file, 
and I there are no references of it in code.
But you can just get the file dist/stuntrally.png and copy it, rename to 
GLX_icon.png and put in data/loading (I think thats the dir that is added 
always at start, or if not, data/hud).
scrawl is on archlinux maybe he knows something more.

Original comment by Cry...@gmail.com on 20 Jun 2012 at 8:43

GoogleCodeExporter commented 9 years ago
According to the ogre.log, the exception that causes the program to shut down 
is not GLX_icon, but GPU program parameter related. As such, I'd bet on driver 
bug. You could try lowering the graphics settings to see if that works around 
it.

Original comment by tapiovie...@gmail.com on 20 Jun 2012 at 1:31

GoogleCodeExporter commented 9 years ago
Ah true. I didn't catch that.
What gpu is this ? There is very little info in ogre.log.
Are you sure that you have shaders 3.0 there ?
Supported Shader Profiles: arbfp1 arbvp1 glsl
This either is very old gpu, integrated or maybe drivers aren't telling 
something.

Original comment by Cry...@gmail.com on 20 Jun 2012 at 4:18

GoogleCodeExporter commented 9 years ago
OpenGL 2.1 is supported, that should be enough for SR though, right? GPU 
doesn't matter here that much (as long as it supports OGL2), as he has the 
open-source drivers, which are not very good - that's why I suggested a driver 
bug. ("Shader model x.0" is more of a DX thing that's not that known in the 
linux world).

Original comment by tapiovie...@gmail.com on 20 Jun 2012 at 4:32

GoogleCodeExporter commented 9 years ago
Sorry, forgot to include info about the card.

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Juniper 
[Radeon HD 5700 Series] (prog-if 00 [VGA controller]) - The open source ATI 
drivers might not have enough features to support what stuntrally needs.

Pressing "apply shader" crashes the game. Reducing all the other settings does 
not allow me to run the game (attached logs again).

Original comment by qubodup on 20 Jun 2012 at 4:37

Attachments:

GoogleCodeExporter commented 9 years ago
Well, I'm sure you won't start it with this line:
Supported Shader Profiles: arbfp1 arbvp1 glsl
having only those, it's just too few.
Ogre Terrain I think needs 3.0, and our water too (that's why we have 3.0 as 
minimal req's).
Try to find a way to get at least fp30 detected here.

They write here that gpu has shader model 5.0
http://www.amd.com/us/products/notebook/graphics/mobility-radeon-5000/mobility-r
adeon-5700-5600/Pages/mobility-radeon-5700-5600.aspx#2
so I guess those drivers don't detect more or something like it.

You can also try with minmal settings for laptops (just replace game.cfg)
http://code.google.com/p/vdrift-ogre/issues/detail?id=132#c7
on some VDrift track (they don't have Ogre terrain)
so eg. zandvoort, or dirt3. Hmm maybe this cfg is outdated..

Btw, does 1.5 or other version work ?

Original comment by Cry...@gmail.com on 20 Jun 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Wait, I've just tried GL and I have it too. While DX works, very weird, I'm 
trying to debug.

Original comment by Cry...@gmail.com on 21 Jun 2012 at 7:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
v1.5 runs fine on my machine (I didn't remove any settings, it probably uses 
the ones I set when trying stuntrally-git.)

Let me know if I can help debug. I'm capable of running gdb/bt with a little 
guidance if needed.

Original comment by qubodup on 21 Jun 2012 at 9:24

GoogleCodeExporter commented 9 years ago
Not exactly sure why this fails but I'm highly convinced that the GLSL shaders 
(instead of CG) in the 'materialfactory_new' branch should work. Would you mind 
to try out this branch?

Original comment by scrawl...@gmail.com on 9 Sep 2012 at 7:30

GoogleCodeExporter commented 9 years ago
that's what i get when i press "apply shader" or what it's called. It's the 
same as when i try playing.

[MaterialFactory] generating new materials...
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): Named 
constants have not been initialised, perhaps a compile error. in 
GpuProgramParameters::_findNamedConstantDefinition at 
/home/scrawl/Downloads/ogre_src_v1-8-0/OgreMain/src/OgreGpuProgramParams.cpp 
(line 1441)
INFO: Exiting

Original comment by stahl...@gmail.com on 16 Sep 2012 at 3:30

GoogleCodeExporter commented 9 years ago
sorry, i forgot: running linux, 64bit, opengl. 

Original comment by stahl...@gmail.com on 16 Sep 2012 at 3:31

GoogleCodeExporter commented 9 years ago
I've got the same problem on Windows XP + 7600GT opengl.
If I choose Direct3D the game start normally (slow of course) but when I select 
OpenGl I've got the same error ("An exception has occured: OGRE 
EXCEPTION(2:InvalidParametersException" ecc.)
Thanks in advance!

Original comment by canali.n...@gmail.com on 25 Sep 2012 at 10:24

GoogleCodeExporter commented 9 years ago
Seeing this error on Ubuntu 12.04 with packaged AMD proprietary driver.

OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Mobility Radeon HD 3670
OpenGL version string: 3.3.11627 Compatibility Profile Context

Error log:

[MaterialFactory] generating new materials...
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): Named 
constants have not been initialised, perhaps a compile error. in 
GpuProgramParameters::_findNamedConstantDefinition at 
/build/build-ogre1.8_1.8.1-1~getdeb2-amd64-wQ95Cj/ogre1.8-1.8.1/OgreMain/src/Ogr
eGpuProgramParams.cpp (line 1441)
INFO: Exiting

Original comment by brendanp...@gmail.com on 21 Oct 2012 at 6:30

GoogleCodeExporter commented 9 years ago
Issue has been fixed in master branch, no need for more reports.

Original comment by scrawl...@gmail.com on 22 Oct 2012 at 12:00

GoogleCodeExporter commented 9 years ago
Nice one! Thanks for the update. 

Original comment by brendanp...@gmail.com on 22 Oct 2012 at 12:06

GoogleCodeExporter commented 9 years ago
If the problem persists in 1.8 please open a new issue.

Original comment by scrawl...@gmail.com on 29 Oct 2012 at 8:58