Ogre::FileNotFoundException

Bug #258793 reported by Vadim Peretokin
2
Affects Status Importance Assigned to Milestone
Colony
Fix Committed
Medium
Chris Scutcher

Bug Description

I did sudo ldconfig, but now I get the following error:

vadi@ubuntu-laptop:~/Programs/colony/Code/colony/release$ ./colony

Checking options...
Using default flat map
Options OK!
COLONY_BASE = /home/vadi/Programs/colony/Code/colony
COLONY_BIN = /home/vadi/Programs/colony/Code/colony/release/colony-bin
COLONY_CONFIG = /home/vadi/.colony

Checking paths...
Paths OK!

Checking files...
Files OK!

Running Colony...

****************************************************
****** Compiled Aug 16 2008 - 20:43:24 *************
****************************************************

Starting Colony....
Starting Ogre....
    Plugin directory = /home/vadi/Programs/colony/Code/colony/plugins
    Config directory = /home/vadi/.colony
    Resource directory = /home/vadi/Programs/colony/Code/colony/resources
    Log directory = /home/vadi/.colony/logs
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.9.3
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
/home/vadi/.colony/plugins.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.4.5 (Eihort)
OgreDebug :: Ogre Root started. Proper logging started.
Registering ResourceManager for type Volume
Registering ResourceManager for type MaterialMap
OgreDebug :: Setup resources.
terminate called after throwing an instance of 'Ogre::FileNotFoundException'
  what(): OGRE EXCEPTION(6:FileNotFoundException): '/home/vadi/.colony/resources.cfg' file not found! in ConfigFile::load at OgreConfigFile.cpp (line 84)

Colony exit with error ( -6 )
vadi@ubuntu-laptop:~/Programs/colony/Code/colony/release$

Revision history for this message
Chris Scutcher (chris-scutcher) wrote :

Do you have a folder /home/vadi/.colony ? It should be auto generated on the first run.

Changed in colony:
assignee: nobody → chris-scutcher
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 258793] Re: Ogre::FileNotFoundException

Yes I do, and in it it has a folder 'logs' with some logs.

/home/vadi/.colony/logs/ColoDebug.log - empty
/home/vadi/.colony/logs/Colony.log - encoding is broken, gedit refused to
open it. nano opened it as a binary file, here:
http://pastebin.com/m31bc1df7
/home/vadi/.colony/logs/ColoTrace.log - empty
/home/vadi/.colony/logs/OgreDebug.log - empty
/home/vadi/.colony/logs/OgreTrace.log - encoding ok, here:
http://pastebin.com/m181aeeb0

Revision history for this message
Chris Scutcher (chris-scutcher) wrote :

Could you try updating to the last revision then deleting the entire ~/.colony folder.

Then can you please send me everything that's printed on the first run of release/colony

Thanks for the bug report

Revision history for this message
Vadim Peretokin (vperetokin) wrote :
Download full text (3.2 KiB)

I re-downloaded colony, here's what I got after compiling it again:

vadi@ubuntu-laptop:~/Programs/colony/Code/colony$ rm -rf ~/.colony
vadi@ubuntu-laptop:~/Programs/colony/Code/colony$ cd release/
vadi@ubuntu-laptop:~/Programs/colony/Code/colony/release$ ./colony

Checking options...
Using default flat map
Options OK!
COLONY_BASE = /home/vadi/Programs/colony/Code/colony
COLONY_BIN = /home/vadi/Programs/colony/Code/colony/release/colony-bin
COLONY_CONFIG = /home/vadi/.colony

Checking paths...
ERROR: PATH LOG AT /home/vadi/.colony/logs IS NOT A DIRECTORY OR NOT
PRESENT!
ERROR: PATH CONFIG AT /home/vadi/.colony IS NOT A DIRECTORY OR NOT
PRESENT!
Paths OK!

Checking files...
Files OK!
Config directory does not exist!
Creating and populating with defaults!
Log directory does not exist!
Creating log

Running Colony...

****************************************************
****** Compiled Aug 17 2008 - 11:33:57 *************
****************************************************

Starting Colony....
Starting Ogre....
    Plugin directory = /home/vadi/Programs/colony/Code/colony/plugins
    Config directory = /home/vadi/.colony
    Resource directory = /home/vadi/Programs/colony/Code/colony/resources
    Log directory = /home/vadi/.colony/logs
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.9.3
This program uses FreeImage, a free, open source image library supporting
all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats:
bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so
terminate called after throwing an instance of
'Ogre::InternalErrorException'
  what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic
library /usr/local/lib/OGRE/RenderSystem_GL.so. System Error:
/usr/local/lib/OGRE/RenderSystem_GL.so: cannot open shared object file: No
such file or directory in DynLib::load at OgreDynLib.cpp (line 80)

Colony exit with error ( -6 )
vadi@ubu...

Read more...

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

I did a search for RenderSystem_GL.so and it came up in these folders:

/home/vadi/Games/RoR-linux-0.35/RenderSystem_GL.so
/usr/lib/OGRE/RenderSystem_GL.so
/usr/local/games/Ankh2/bin/lib/OGRE/RenderSystem_GL.so
/usr/share/games/tileracer/lib_linux/RenderSystem_GL.so

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

I'm sorry, this was covered in the FAQ. I changed the path and it worked.

I also ran into the Plugin_CgProgramManager.so not found error - I had this
file already from other games, so I simply moved it over into the plugins
folder. It looks like you'll need to ship/compile this file.

Revision history for this message
Chris Scutcher (chris-scutcher) wrote :

This ones explained in the README

Error############################################
terminate called after throwing an instance of 'Ogre::InternalErrorException'
  what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/local/lib/OGRE/RenderSystem_GL.so. System Error: /usr/local/lib/OGRE/RenderSystem_GL.so: cannot open shared object file: No such file or directory in DynLib::load at OgreDynLib.cpp (line 80)
#################################################

One possible reason for this error is ~/.colony/plugin.cfg (created when you run the first time) is looking in the wrong place for plugins. Look at the line starting "PluginFolder"

At the moment it'll be set to /usr/local/lib/OGRE and it needs to be changed to point to /usr/lib/OGRE

This is dependant on where OGRE is installed and at the moment its hardcoded. I need to hack it to automagically detect the location but for now just change plugin.cfg

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Okay, slight issue... Plugin_CgProgramManager.so doesn't exist in
64bit form. And colony refuses to load it because of the bitness
mismatch.

I don't know how to compile a 32bit app on 64bit either :\

What I think you'll need to do when you package it is ship a 32bit
only, and for 64bit, make ia32-libs package a requirement

Revision history for this message
Chris Scutcher (chris-scutcher) wrote :

Another one caught already

Error############################################
terminate called after throwing an instance of 'Ogre::InternalErrorException'
  what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/OGRE/Plugin_CgProgramManager.so. System Error: /usr/lib/OGRE/Plugin_CgProgramManager.so: cannot open shared object file: No such file or directory in DynLib::load at OgreDynLib.cpp (line 80)
#################################################

If this file in particular can't be loaded you're probably using your distros packaged version of Ogre... which doesnt seem to include this key plugin. Try commenting out the line; "Plugin=Plugin_CgProgramManager.so" in ~/.colony/plugin.cfg . This works but wierd stuff might happen.

Give it a shot.. i think all that happens as a result of this missing is the textures dont display right (all the grass is just pure green rather than being textured)

I think you're nearly there!!

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

Yeah I did get it to work (check above comments). Grass is indeed untextured :(

Revision history for this message
Chris Scutcher (chris-scutcher) wrote :

oh soz.. didnt see that comment

Changed in colony:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.