Unexpected crash from AIS_InteractiveContext

Hi,
I am running the sample/qt/IESample under occ6.6, qt5.0.2, and mac.
When I press the new button it tries to create a 3d view,
it crashes in ApplicationWindow::onSelectionChanged
at Handle(AIS_InteractiveContext) context = doc->getContext();
getContext() returns Handle(AIS_InteractiveContext) myContext;
There are no errors, I located it by debugging.
Has anyone else had crashes from AIS_InteractiveContext?
Thanks
onSelectionChanged - http://pastebin.com/61zjjPkG
getContext - http://pastebin.com/NbT5e9RY