Crash on Intel GMA 950 on Mac Mini

Bug #298504 reported by Alexey Torkhov
2
Affects Status Importance Assigned to Milestone
Ember
Invalid
Undecided
Unassigned

Bug Description

When running on Mac Mini with Intel GMA 950 video card, after walking some time in village direction, it crashes with following message:
---
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000001f4
---

And backtrace:
---
#0 0x161205ad in gleVtxLightSpecRGBAFrontPtr () at iostream:76
#1 0x1605fb18 in gleRenderSmoothTrianglesFunc () at iostream:76
#2 0x16057e23 in gleFlushAtomicFunc () at iostream:76
#3 0x160d92d7 in gleDrawArraysOrElements_ExecCore () at iostream:76
#4 0x160db80d in gleDrawArraysOrElements_VBO_Exec () at iostream:76
#5 0x91426b08 in glDrawElements ()
#6 0x15e2c4e0 in Ogre::GLRenderSystem::_render (this=0x30b7600, op=@0x170f434) at /Users/worldforge/build/ogre/Mac/Ogre/../../RenderSystems/GL/src/OgreGLRenderSystem.cpp:2724
#7 0x0126220b in Ogre::SceneManager::renderSingleObject (this=0x1993e000, rend=0x1c0bd630, pass=0x1a43d300, lightScissoringClipping=true, doLightIteration=true, manualLightList=0x0) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:3206
#8 0x012476bc in Ogre::SceneManager::SceneMgrQueuedRenderableVisitor::visit (this=0x199423c8, r=0x1c0bd630) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2659
#9 0x011f43e8 in Ogre::QueuedRenderableCollection::acceptVisitorGrouped (this=0x1e301698, visitor=0x199423c8) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRenderQueueSortingGrouping.cpp:430
#10 0x011f46e5 in Ogre::QueuedRenderableCollection::acceptVisitor (this=0x1e301698, visitor=0x199423c8, om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRenderQueueSortingGrouping.cpp:398
#11 0x01247add in Ogre::SceneManager::renderObjects (this=0x1993e000, objs=@0x1e301698, om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP, lightScissoringClipping=true, doLightIteration=true, manualLightList=0x0) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2749
#12 0x0124ff33 in Ogre::SceneManager::renderBasicQueueGroupObjects (this=0x1993e000, pGroup=0x1e330750, om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2827
#13 0x01247d53 in Ogre::SceneManager::_renderQueueGroupObjects (this=0x1993e000, pGroup=0x1e330750, om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2806
#14 0x0124ca2d in Ogre::SceneManager::renderVisibleObjectsDefaultSequence (this=0x1993e000) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2098
#15 0x01247625 in Ogre::SceneManager::_renderVisibleObjects (this=0x1993e000) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:2020
#16 0x01254fcc in Ogre::SceneManager::_renderScene (this=0x1993e000, camera=0x315da00, vp=0x15ddcff0, includeOverlays=true) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreSceneManager.cpp:1344
#17 0x00ffffd1 in Ogre::Camera::_renderScene (this=0x315da00, vp=0x15ddcff0, includeOverlays=true) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreCamera.cpp:403
#18 0x012f4757 in Ogre::Viewport::update (this=0x15ddcff0) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreViewport.cpp:191
#19 0x01207f1b in Ogre::RenderTarget::updateImpl (this=0x15db3470) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRenderTarget.cpp:113
#20 0x0120758f in Ogre::RenderTarget::update (this=0x15db3470, swap=false) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRenderTarget.cpp:501
#21 0x011fec01 in Ogre::RenderSystem::_updateAllRenderTargets (this=0x30b7600, swapBuffers=false) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRenderSystem.cpp:112
#22 0x01236965 in Ogre::Root::_updateAllRenderTargets (this=0x15d30610) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRoot.cpp:1132
#23 0x01236a4c in Ogre::Root::renderOneFrame (this=0x15d30610) at /Users/worldforge/build/ogre/Mac/Ogre/../../OgreMain/src/OgreRoot.cpp:839
#24 0x0003f4c6 in EmberOgre::EmberOgre::renderOneFrame (this=0x2a56790) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../../src/components/ogre/EmberOgre.cpp:297
#25 0x0050eb61 in Ember::Application::mainLoopStep (this=0xbfffe95c) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../../src/main/Application.cpp:119
#26 0x0050f015 in Ember::Application::mainLoop (this=0xbfffe95c) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../../src/main/Application.cpp:142
#27 0x0050f053 in Ember::Application::start (this=0xbfffe95c) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../../src/main/Application.cpp:289
#28 0x00515070 in SDL_main (argc=1, argv=0x2a107e0) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../../src/main/Ember.cpp:185
#29 0x0056a37b in -[SDLMain applicationDidFinishLaunching:] (self=0x2a30f40, _cmd=0x94efc9a4, note=0x2a21ba0) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../src/SDLMain.m:302
#30 0x9402954a in _nsnote_callback ()
#31 0x95978aba in __CFXNotificationPost ()
#32 0x95978d93 in _CFXNotificationPostNotification ()
#33 0x940267b0 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#34 0x9402fff8 in -[NSNotificationCenter postNotificationName:object:] ()
#35 0x92e82b7a in -[NSApplication _postDidFinishNotification] ()
#36 0x92e82a89 in -[NSApplication _sendFinishLaunchingNotification] ()
#37 0x92dfc62f in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#38 0x92dfbe28 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#39 0x9404eb6f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#40 0x9404e87f in _NSAppleEventManagerGenericHandler ()
#41 0x94e19648 in aeDispatchAppleEvent ()
#42 0x94e1957e in dispatchEventAndSendReply ()
#43 0x94e19425 in aeProcessAppleEvent ()
#44 0x93b9847d in AEProcessAppleEvent ()
#45 0x92df9719 in _DPSNextEvent ()
#46 0x92df8db8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#47 0x92df1df3 in -[NSApplication run] ()
#48 0x0056a17d in CustomApplicationMain (argc=1, argv=0xbffff88c) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../src/SDLMain.m:229
#49 0x0056a63e in main (argc=1, argv=0xbffff88c) at /Users/worldforge/build/ember-0.5.4/Mac/Ember/../src/SDLMain.m:380
#50 0x00002e5e in start ()
---

Ember 0.5.4, ogre 1.6. Log is in attachment.

Revision history for this message
Alexey Torkhov (atorkhov) wrote :
Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

Ogre log says:
GL_VERSION = 1.2 APPLE-1.5.28

1.2 is quite an old gl version to support. I'm not sure what 1.5.28 refers to, but I think the glew code will use just the "1.2" part to determine that only OpenGL 1.2 is supported.

However. it seems that that card doesn't support shaders in the hardware and instead uses software emulation. Could you try disabling the CgPluginManager and see what happens?

Revision history for this message
Alexey Torkhov (atorkhov) wrote :

I thought only DirectX could do software emulation.

Anyway, without CgPluginManager seems that it doesn't crash.

Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

As I understand it it's the Intel drivers that does the software emulation. I searched for references for that card on the Ogre forum, and the consensus there is that it's not really supported since the drivers are broken in places; the card reporting incorrect capabilities etc. And that the shader support is really spotty, being software based. That might however have changed with newer drivers.

Anyway, the cool thing here is that you've obviously have gotten Ember running on OSX, which is great news!!

Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

Should we then close this bug as it seems to be related to issues with the drivers?

Changed in ember:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.