Ogre exception 7 internalerrorexception ошибка

Dear HexiDave,

First of all, thank you very much for trying to help! Please don’t give up, and keep with me!

I checked plugins.cfg and the other .cfg files. They are ok, i think. Let me show you their contents:

plugins.cfg

# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9_d
Plugin=RenderSystem_GL_d
Plugin=Plugin_ParticleFX_d
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_CgProgramManager_d

media.cfg

Mesh=ogrehead.mesh
Mesh=geosphere4500.mesh
Mesh=razor.mesh
Mesh=knot.mesh
Mesh=RZR-002.mesh
Mesh=geosphere8000.mesh
Mesh=sphere.mesh

CubeMap=cubescene.jpg
CubeMap=early_morning.jpg
CubeMap=cubemap.jpg
CubeMap=morning.jpg
CubeMap=cloudy_noon.jpg
CubeMap=evening.jpg
CubeMap=stormy.jpg
CubeMap=stevecube.jpg

resources.cfg

# Resource locations to be added to the ‘boostrap’ path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../Media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=../../Media
FileSystem=../../Media/fonts
FileSystem=../../Media/materials/programs
FileSystem=../../Media/materials/scripts
FileSystem=../../Media/materials/textures
FileSystem=../../Media/models
FileSystem=../../Media/overlays
FileSystem=../../Media/particle
FileSystem=../../Media/gui
FileSystem=../../Media/DeferredShadingMedia
Zip=../../Media/packs/cubemap.zip
Zip=../../Media/packs/cubemapsJS.zip
Zip=../../Media/packs/dragon.zip
Zip=../../Media/packs/fresneldemo.zip
Zip=../../Media/packs/ogretestmap.zip
Zip=../../Media/packs/skybox.zip

quake3settings.cfg (i don’t really understand what this file is for… i don’t find chiropteraDM.pk3 anywhere… so i left this file like the others with their default contents)

<<<<<<< quake3settings.cfg
Pak0Location: ……MediapackschiropteraDM.pk3
Map: maps/chiropteradm.bsp

=======
Pak0Location: ……MediapackschiropteraDM.pk3
Map: maps/chiropteradm.bsp
>>>>>>> 1.2.32.1

By the way, these files are in the C:OgreSDKbindebug folder. And in this folder there are the samples applications that i built from the project that comes in the C:OgreSDKMogre-Samples folder.

In the C:OgreSDKbindebug folder I also have these dlls:
CEGUIBase_d.dll
CeguiBindings.dll
CeguiDotNet.dll
CEGUIExpatParser_d.dll
CEGUIFalagardWRBase_d.dll
cg.dll
Mogre.Cegui.dll
Mogre.Demo.ExampleApplication.dll
Mogre.dll
MogreFramework.dll
MogreNewt.dll
MOIS.dll
OgreBindings_Cegui.dll
OgreGUIRenderer_d.dll
OgreMain_d.dll
OIS_d.dll
Plugin_BSPSceneManager_d.dll
Plugin_CgProgramManager_d.dll
Plugin_OctreeSceneManager_d.dll
Plugin_ParticleFX_d.dll
RenderSystem_Direct3D9_d.dll
RenderSystem_GL_d.dll

Yes, I think that all Ogre DLLs have _d. I think CeguiBindings.dll, CeguiDotNet.dll, cg.dll Mogre.Cegui.dll, Mogre.Demo.ExampleApplication.dll, Mogre.dll, MogreFramework.dll, MogreNewt.dll, MOIS.dll and OgreBindings_Cegui.dll don’t need ‘_d’, is it correct?

PS- please, don’t go away :)

This is the first exception in my RoR.log. All I am trying to do is regen my cache and keep getting the Bad UTF-8 Continuation type.

If you need more info please dont hesitate to ask. I’ll keep trying to figure something out

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .RenderSystem_Direct3D10. System Error: The specified module could not be found.

in DynLib::load at C:datacodehgdependenciessrcOgreogre_src_v1-8-1OgreMainsrcOgreDynLib.cpp (line 93)
18:42:55: failed to load plugin: .RenderSystem_Direct3D10: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .RenderSystem_Direct3D10. System Error: The specified module could not be found.

in DynLib::load at C:datacodehgdependenciessrcOgreogre_src_v1-8-1OgreMainsrcOgreDynLib.cpp (line 93)

I’m using Ogre 3D 1.9, and I’m trying to load a mesh contained in a folder pointed by the resource.cfg file. The folder contains sub-folders, that separate the .mesh files, .material files and textures. Here’s the content of the resource.cfg file:

# Resources required by the sample browser and most samples.
[Essential]


# Resource locations to be added to the default path
[General]
FileSystem=media
FileSystem=media/materials/scripts
FileSystem=media/materials/textures
FileSystem=media/models

After this i declare and initialize the mesh, materials and textures with the following:

Ogre::ResourceGroupManager::getSingleton().declareResource("ram.mesh", "Mesh", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("char_ram_col.png", "Font", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("char_ram_nor.png", "Font", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_eyelids.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_eyes.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_horns.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());

Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

Then i attach the mesh to a node:

Ogre::Entity *entity = scene->createEntity("LocalMesh_Ent", "ram.mesh");
Ogre::SceneNode *cube = node->createChildSceneNode("ram.mesh", Ogre::Vector3(x, y, z));
cube->attachObject(entity);

where cube is a SceneNode previously created.

I have problem loading the texture. The code is build without any problem, but when i run it i have the following error (in the log file):

OGRE EXCEPTION(7:InternalErrorException): Error decoding image in FreeImageCodec::decode at ........OgreMainsrcOgreFreeImageCodec.cpp (line 419)

The mesh and the materials are created correctly, if for example i comment the part regarding the texture.

Does anybody know which could be the problem ?

Second question: i read that the .png file has to be declared as Font, but there’s also the Texture option (which doesn’t work as well). Is that correct ?

Problem

I had an binary compiled on Ubuntu 14.04. I tried to run it on Ubuntu 16.04 and got this error:

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL

Solution

From the error, I could see that it was looking for an OGRE library file. I installed the OGRE library available on Ubuntu 16.04:

$ sudo apt install libogre-1.9-dev

The error still persisted, because Ubuntu 16.04 only has OGRE 1.9, while this binary was looking for OGRE 1.8 library files.

I tried to create a symbolic link of an OGRE 1.8 directory to the existing OGRE 1.9 directory:

$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s OGRE-1.9.0 OGRE-1.8.0

This worked! The executable ran without problems. This saved me from having to build OGRE 1.8 from source on this computer.

When running rviz I get the following error messages:

[ WARN] [1414015276.298139367]: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL.  System Error: /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL.so: undefined symbol: _ZN4Ogre15StringInterface17msDictionaryMutexE in DynLib::load at /home/stefania/software/ogre/OgreMain/src/OgreDynLib.cpp (line 93)

terminate called after throwing an instance of 'Ogre::InternalErrorException'
  what():  OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL.  System Error: /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL.so: undefined symbol: _ZN4Ogre15StringInterface17msDictionaryMutexE in DynLib::load at /home/stefania/software/ogre/OgreMain/src/OgreDynLib.cpp (line 93)
Aborted (core dumped)

I’m running on Ubuntu 14.04 and ROS Indigo.

My graphics card info:

VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09) (prog-if 00 [VGA controller])

UPDATE 1

Running rviz tries to compile against OGRE 1.8.1, and then gives the error messages above

[ INFO] [1414078694.030851551]: compiled against OGRE version 1.8.1 (Byatis)

and on this path

 /usr/lib/x86_64-linux-gnu/

I have three versions of OGRE

OGRE-1.8.0/ OGRE-1.8.1/ OGRE-1.9.0/

UPDATE 2

So I removed all versions of OGRE.

First installed libogre-1.9-dev. For some reason, rviz was also removed from my machine. I tried to install it again, and it says:

The following packages have unmet dependencies:
 ros-indigo-rviz : Depends: libogre-1.8-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

So I Installed libogre-1.8-dev and then installed rviz , but again getting the error messages above while running rviz and it crashes

UPDATE 3

Ok I uninstalled OGRE (and rviz automatically)

  sudo apt-get remove libogre-1.8.0 libogre-1.8.0-dbg libogre-1.8-dev

I tried to install rviz and this time didn’t give any dependency error and automatically installed ogre too

  sudo apt-get install ros-indigo-rviz

Just in case I also ran this command:

  sudo apt-get install libogre-1.8.0 libogre-1.8.0-dbg libogre-1.8-dev

Currently in /usr/lib/x86_64-linux-gnu/ I have only these ogre folders:

OGRE-1.8.0/ OGRE-1.8.1/

Понравилась статья? Поделить с друзьями:
  • Office ошибка при перенаправлении команды приложению
  • Office ошибка при запуске приложения 142
  • Office ошибка 1935 ошибка при установке компонента сборки
  • Office ошибка 1606 нет доступа к сетевой папке
  • Office ошибка 1058 4 что это