Ogre 1.8 Crash After Changing to THREAD_SUPPORT=1

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Jackal
Gnoblar
Posts: 5
Joined: Thu May 02, 2013 11:38 am

Ogre 1.8 Crash After Changing to THREAD_SUPPORT=1

Post by Jackal »

Hello good friends,

Since yesterday i'm trying to do a background resource loading with no success.
As i've read in the forum i made all the ResourceBackgroundQueue and ticket things.
But Since i've changed the THREAD_SUPPORT from 0 to 1 and rebuilt the OGRE and my Project' i have the following problem.

When i'm trying to create a manual Texture i get a crash. it start in my command :
m_RGBOverLayTexture = Ogre::TextureManager::getSingleton().createManual("RGBOverLayTexture",Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,Ogre::TEX_TYPE_2D,VIDEO_WIDTH, VIDEO_HIGHT,0,Ogre::PF_R8G8B8,Ogre::TU_DYNAMIC_WRITE_ONLY_DISCARDABLE);
and continue into Ogre_Main when it stops/break in :

thread_primitives.hpp

In function :

boost::detail::win32

in that line :
#pragma intrinsic(_interlockedbittestandreset)

inline bool interlocked_bit_test_and_set(long* x,long bit)
{
return _interlockedbittestandset(x,bit)!=0;
}

inline bool interlocked_bit_test_and_reset(long* x,long bit)
{
return _interlockedbittestandreset(x,bit)!=0;
}

}
}
}
does anyone know what can be the problem ? please help me. it is very important to me.

Jackal.
cord
Halfling
Posts: 59
Joined: Tue Oct 22, 2013 10:22 am
x 7

Re: Ogre 1.8 Crash After Changing to THREAD_SUPPORT=1

Post by cord »

Rebuilding Ogre can take some time and careful work to get the build right.

Without giving up on threading, you may want to have a backup plan you can use until you can get threading sorted out.
Jackal
Gnoblar
Posts: 5
Joined: Thu May 02, 2013 11:38 am

Re: Ogre 1.8 Crash After Changing to THREAD_SUPPORT=1

Post by Jackal »

Thanks cord, can you be more specific please ?

I did clean and rebuild to all the projects also added the right references to Boost (in all projects) etc.
all the compilation process was just fine, also in Ogre and also in my project compilation.

Do you have any other advice ?

Jackal.

p.s.

I've also found that , but with no answer.
http://www.ogre3d.org/addonforums/viewt ... =8&t=14622
Jackal
Gnoblar
Posts: 5
Joined: Thu May 02, 2013 11:38 am

Re: Ogre 1.8 Crash After Changing to THREAD_SUPPORT=1

Post by Jackal »

Sorry for the bump but, does anyone have an idea or lead for how to fix the problem ? Please help me ...

Jackal.
Post Reply