What steps will reproduce the problem?
1. Open a track.
2. Delete the road.
3. Save track; close editor and load track again
4. Insert a road point.
Does this happen every time?
- Yes.
What is the expected output? What do you see instead?
- Expected: new road is created
- What happens: Ogre assertion and crash:
NOTE: this only happens when I save and reload the track without road first.
sr-editor: /usr/include/OGRE/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.
Stack trace in gdb:
#0 0x00007ffff4cd7595 in raise () from /lib/libc.so.6
#1 0x00007ffff4cd8a16 in abort () from /lib/libc.so.6
#2 0x00007ffff4cd00f5 in __assert_fail () from /lib/libc.so.6
#3 0x00000000004e339a in setExtents (this=<value optimized out>,
mesh=0x7ffff1fd72f8, aabox=..., pos=..., norm=..., clr=..., tcs=...,
idx=..., sMtrName=...) at /usr/include/OGRE/OgreAxisAlignedBox.h:251
#4 merge (this=<value optimized out>, mesh=0x7ffff1fd72f8, aabox=...,
pos=..., norm=..., clr=..., tcs=..., idx=..., sMtrName=...)
at /usr/include/OGRE/OgreAxisAlignedBox.h:417
#5 SplineRoad::CreateMesh (this=<value optimized out>, mesh=0x7ffff1fd72f8,
aabox=..., pos=..., norm=..., clr=..., tcs=..., idx=..., sMtrName=...)
at /home/scrawl/Entwicklung/StuntRally/source/road/Road_Mesh.cpp:52
#6 0x00000000004ddcf7 in SplineRoad::RebuildRoadInt (this=0x3f35fb0)
at /home/scrawl/Entwicklung/StuntRally/source/road/Road_Rebuild.cpp:564
#7 0x00000000004753f7 in App::frameEnded (this=0x7b20c0, evt=...)
---Type <return> to continue, or q <return> to quit---
at /home/scrawl/Entwicklung/StuntRally/source/editor/Update_Edit.cpp:459
#8 0x00007ffff797ccb5 in Ogre::Root::_fireFrameEnded(Ogre::FrameEvent&) ()
from /usr/lib/libOgreMain.so.1.7.2
#9 0x00007ffff797eed9 in Ogre::Root::_fireFrameEnded() ()
from /usr/lib/libOgreMain.so.1.7.2
#10 0x00007ffff797f05d in Ogre::Root::startRendering() ()
from /usr/lib/libOgreMain.so.1.7.2
#11 0x000000000046ef9c in BaseApp::Run (this=0x7b20c0,
showDialolg=<value optimized out>)
at /home/scrawl/Entwicklung/StuntRally/source/editor/BaseApp_Create.cpp:134
#12 0x0000000000461f0f in main (argc=<value optimized out>,
argv=<value optimized out>)
at /home/scrawl/Entwicklung/StuntRally/source/editor/main.cpp:30
Original issue reported on code.google.com by scrawl...@gmail.com on 10 Apr 2011 at 12:48
Original issue reported on code.google.com by
scrawl...@gmail.com
on 10 Apr 2011 at 12:48