Th3Ya0vi / vdrift-ogre

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

Game crash with auto load track #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable "all effects" and any effect (e.g. motion blur)
2. Enable "Auto load track" 
3. Restart game

Crash on loading step "Finishing..." with this assertion:

stuntrally: 
/build/buildd/ogre-1.7.3-ogredev/OgreMain/include/OgreAxisAlignedBox.h:252: 
void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const 
Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= 
max.z) && "The minimum corner of the box must be less than or equal to maximum 
corner"' failed.

relevant part of stack:

#2  0x00007ffff4d897c5 in __assert_fail (
    assertion=0x7ffff7aa3970 "(min.x <= max.x && min.y <= max.y && min.z <= max.z) && \"The minimum corner of the box must be less than or equal to maximum corner\"", file=<value optimized out>, line=252, function=<value optimized out>) at assert.c:81
#3  0x00007ffff7a28885 in setExtents (this=<value optimized out>, m=..., 
body=...)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/include/OgreAxisAlignedBox.h:251
#4  merge (this=<value optimized out>, m=..., body=...) at 
/build/buildd/ogre-1.7.3-ogredev/OgreMain/include/OgreAxisAlignedBox.h:417
#5  Ogre::FocusedShadowCameraSetup::transformToUnitCube (this=<value optimized 
out>, m=..., body=...)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreShadowCameraSetupFocused.cpp:371
#6  0x00007ffff7a30209 in Ogre::LiSPSMShadowCameraSetup::getShadowCamera 
(this=0x7fffd1fdff00, sm=0x7fffde681318, cam=0x7fffd217edd8, 
    vp=<value optimized out>, light=0x7fff54800188, texCam=0x7fffd1ffbeb0, iteration=0)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreShadowCameraSetupLiSPSM.cpp:305
#7  0x00007ffff7a335d4 in Ogre::PSSMShadowCameraSetup::getShadowCamera 
(this=0x7fffd1fdff00, sm=0x7fffde681318, cam=0x7fffd217edd8, 
    vp=0x7fffde376d78, light=<value optimized out>, texCam=<value optimized out>, iteration=0)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreShadowCameraSetupPSSM.cpp:128
#8  0x00007ffff79cb75c in Ogre::SceneManager::prepareShadowTextures 
(this=0x7fffde681318, cam=0x7fffd217edd8, vp=0x7fffde376d78, 
    lightList=0x7fffde685658) at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreSceneManager.cpp:6153
#9  0x00007ffff79ca873 in Ogre::SceneManager::_renderScene 
(this=0x7fffde681318, camera=0x7fffd217edd8, vp=0x7fffde376d78, 
    includeOverlays=<value optimized out>) at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreSceneManager.cpp:1369
#10 0x00007ffff781b77c in Ogre::Camera::_renderScene (this=0x7fffd217edd8, 
vp=0x7fffde376d78, includeOverlays=false)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreCamera.cpp:412
#11 0x00007ffff798e578 in Ogre::RenderTarget::_updateViewport 
(this=0x7fffd217c828, viewport=0x7fffde376d78, updateStatistics=true)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderTarget.cpp:146
#12 0x00007ffff798e65b in Ogre::RenderTarget::_updateAutoUpdatedViewports 
(this=0x7fffd217c828, updateStatistics=true)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderTarget.cpp:124
#13 0x00007ffff798e04e in Ogre::RenderTarget::updateImpl (this=0x7fffd217c828)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderTarget.cpp:101
#14 0x00007ffff798e34c in Ogre::RenderTarget::update (this=0x7fffd217c828, 
swap=true)
    at /build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderTarget.cpp:541
#15 0x00000000005bb250 in CarReflection::Update (this=0x7fffcef9ac50)

Maybe the shadow camera setup isn't prepared in this case.

Original issue reported on code.google.com by scrawl...@gmail.com on 25 Oct 2011 at 3:47

GoogleCodeExporter commented 8 years ago
Ok looks like the "How to reproduce" part is wrong. It doesnt seem to happen 
always (maybe 1/2 of the times) and it was just random that I had effects on 
when it happened.

What steps will reproduce the problem?
2. Enable "Auto load track" 
3. Restart game a few times until it crashes

Original comment by scrawl...@gmail.com on 25 Oct 2011 at 3:49

GoogleCodeExporter commented 8 years ago
which version of ogre is this ? i'm using the trunk and cannot see it

Original comment by a.isma...@gmail.com on 27 Oct 2011 at 4:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This happens in Debug mode for me, 3 asserts only at the start of game.
With no shadows or with auto load track off this doesn't happen.
(I have Ogre 1.7.1, I don't think ver matters here)
The Issue#93 is far more severe.

Original comment by Cry...@gmail.com on 27 Oct 2011 at 6:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 16 Nov 2011 at 6:36

GoogleCodeExporter commented 8 years ago
why are we rendering the shadows inside the reflection ? we definitely should 
disable shadows there    

Original comment by a.isma...@gmail.com on 23 Nov 2011 at 5:31

GoogleCodeExporter commented 8 years ago
Good point. I've changed this now in latest commit, I started game 10 times 
with auto load track and it didn't crash, I assume this is fixed. If someone 
can still reproduce this, please reopen.

Original comment by scrawl...@gmail.com on 23 Nov 2011 at 5:52