Th3Ya0vi / vdrift-ogre

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

Occasional crash when loading new track #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This crash happens both in editor and game, but in editor it seems to happen 
more often.

I did a git bisect and found out that it's been there since ever, but since 
recently it happens even more often.

sr-editor: 
/build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderQueueSortingGrouping.cpp
:386: void Ogre::QueuedRenderableCollection::addRenderable(Ogre::Pass*, 
Ogre::Renderable*): Assertion `retPair.second && "Error inserting new pass 
entry into PassGroupRenderableMap"' failed.

Some googling revealed that this is a common crash in Ogre that can happen when 
changing materials dynamically when having more than 1 scene manager. A work 
around (clear render queue before each frame) is also mentioned, but it didnt 
work for us.

Game has 2 scene managers (1 seperate for gui), but editor doesn't, so probably 
this is something different.

Original issue reported on code.google.com by scrawl...@gmail.com on 24 Oct 2011 at 6:21

GoogleCodeExporter commented 8 years ago
I couldn't reproduce this in ages (with game, editor still does it every 3rd 
load or so)

Original comment by scrawl...@gmail.com on 15 Nov 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Ok, the reason I couldn't reproduce it anymore was because I played always with 
effects enabled. Seems like this problem vanishes when "All effects" and 1 
other effect (or SSAA) is enabled.

Luckily i've figured out a testcase that always crashes for me with the same 
exception:

1. start game and load a track
2. go to settings, set all effects OFF
3. set shadows to 'None' and apply (they have to be "depth" or "normal" before)

and this happens:

stuntrally: 
/build/buildd/ogre-1.7.3-ogredev/OgreMain/src/OgreRenderQueueSortingGrouping.cpp
:386: void Ogre::QueuedRenderableCollection::addRenderable(Ogre::Pass*, 
Ogre::Renderable*): Assertion `retPair.second && "Error inserting new pass 
entry into PassGroupRenderableMap"' failed.

Original comment by scrawl...@gmail.com on 17 Nov 2011 at 4:32

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 17 Nov 2011 at 4:32

GoogleCodeExporter commented 8 years ago
Suggested workaround until we know what is causing this: Add a "dummy" 
compositor to game and editor that does nothing (but will change the way 
viewports are rendered and thus fix the assert).

Original comment by scrawl...@gmail.com on 17 Nov 2011 at 4:34

GoogleCodeExporter commented 8 years ago
i'm not seeing this with ogre trunk with the repro above

Original comment by a.isma...@gmail.com on 21 Nov 2011 at 8:52

GoogleCodeExporter commented 8 years ago
I believe this is fixed now (Don't know why. I assume the crash had to do 
something with paged geometry). The test case mentioned above does not crash 
anymore and also editor is stable for me now (doesn't crash every few loads)

If someone gets this crash again please reopen (or make a new issue) 

Original comment by scrawl...@gmail.com on 30 Nov 2011 at 4:14