FS#30088 - [ogre] Skeletal animation crashes

Attached to Project: Community Packages
Opened by sftrytry (sftrytry) - Friday, 01 June 2012, 01:02 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 08 June 2012, 13:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Skeletal animation makes ogre crash.

Additional info:
* package version(s)
1.8.0
* config and/or log files etc.
ABS config

Steps to reproduce:
1. Runs /opt/OGRE/samples/SampleBrowser
2. Choose any sample using skeletal animation, such as Character, Dynamic Texturing, New Instancing or Skeletal Animation.
3. See the crash immediately.

Or, make you own ogre code using skeletal animation like official tutorial on ogre wiki. It will also crash.

It seems a historical bug back to 1.7 or more. It effects linux at least arch. It works fine on my win7.

It is a upstream bug not arch. But I have found a way to make work here. It is all about OgreOptimisedUtilSSE.cpp which can not be optimized more than -O1 with gcc 4.7. So I hardcoded with following steps:

cd ogre_src_v1-8-0
cd OgreMain/src/
g++ -c -O1 -march=native -msse -fPIC OgreOptimisedUtilSSE.cpp -I ../include/ -I ../../build/include/
cp OgreOptimisedUtilSSE.o ../../build/OgreMain/CMakeFiles/OgreMain.dir/src/OgreOptimisedUtilSSE.cpp.o
cd ../../build
make

Then, there is no crash any more.

I can put those into PKGBUILD to make it work. And there should be other better way than hardcoding. I found "set_source_files_properties" of cmake can set CFLAGS individually for source files. It might be better to patch CMakeLists.txt.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 08 June 2012, 13:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  rel -2
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 02 June 2012, 19:41 GMT
Thanks for the workaround. It certainly is no fix. I don't know which package broke this. This definitely used to work. We should tell ogre upstream.
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 02 June 2012, 19:41 GMT Comment by sftrytry (sftrytry) - Wednesday, 06 June 2012, 22:10 GMT
Actually, those latest replies in that post are from me.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 06 June 2012, 22:49 GMT Comment by sftrytry (sftrytry) - Friday, 08 June 2012, 03:24 GMT
Devs are looking at it now. It should be solved soon. If you keep following the post you found.
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70052&p=459618&hilit=OgreOptimisedUtilSSE#p457209
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 08 June 2012, 13:33 GMT
Thanks, that allowed me to workaround the problem for now.

Loading...