<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739">I compiled vtk 6.3 with VS 2010.</div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739">I had a few crashes when my GUI Is launched.</div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739">I added the following code in my application program</div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2847" class="">#include <vtkAutoInit.h></span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2849" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2851" class="">VTK_MODULE_INIT(vtkRenderingOpenGL); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2853" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2855" class="">VTK_MODULE_INIT(vtkRenderingContextOpenGL); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2857" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2859" class="">VTK_MODULE_INIT(vtkInteractionStyle); </span><br></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class=""><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class="">to avoid these crashes.</span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class=""><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2739"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class="">Then </span><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2889" class="">when my code starts from</span><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2891" class=""> </span></div><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2893" class="">QApplication app(argc, argv); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2895" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2897" class="">MyQTGUI mygui; </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2899" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2901" class="">mygui.show(); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2903" class=""><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2906">app.exec(); <==crashes from here. </span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class=""><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3021" class="">call stack shows this->Implementation->TextRenderer is <span class="" style="background: rgb(255, 255, 153);" id="yui_3_16_0_1_1452278087525_3023">NULL</span></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class="">in the following code. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3025" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3027" class="">what is the reason?</span><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;"><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class=""><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2933" class="">vtkVector2i vtkTextRendererStringToImage::GetBounds( </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2935" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2937" class=""> vtkTextProperty *property, const vtkUnicodeString& string, int dpi) </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2939" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2941" class="">{ </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2943" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2945" class=""> int tmp[4] = { 0, 0, 0, 0 }; </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2947" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2949" class=""> vtkVector2i recti(tmp); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2951" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2953" class=""> if (!property) </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2955" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2957" class=""> { </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2959" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2961" class=""> return recti; </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2963" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2965" class=""> } </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2967" class=""><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2969" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2971" class=""> this->Implementation->TextRenderer->GetBoundingBox(property, string, tmp, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2973" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2931" class=""> dpi); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2976" class=""><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2978" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2980" class=""> recti.Set(tmp[1] - tmp[0], </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2982" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2984" class=""> tmp[3] - tmp[2]); </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2986" class=""><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2988" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2990" class=""> return recti; </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2992" class=""><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_2994" class="">} </span><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;"><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class=""><br></span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class="" id="yui_3_16_0_1_1452278087525_3181">======================call statck output=======================================</span></div><div dir="ltr" id="yui_3_16_0_1_1452278087525_2907"><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;" class="" id="yui_3_16_0_1_1452278087525_3061"><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3063" class=""> vtkRenderingCore-6.3.dll!vtkTextRenderer::GetBoundingBox(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox, int dpi, int backend) Line 158 + 0x5 bytes C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3065" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3067" class=""> vtkRenderingFreeType-6.3.dll!vtkTextRendererStringToImage::GetBounds(vtkTextProperty * property, const vtkUnicodeString & string, int dpi) Line 66 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3069" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3071" class=""> vtkRenderingContextOpenGL-6.3.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkUnicodeString & string, float * bounds) Line 947 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3073" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3075" class=""> vtkRenderingContextOpenGL-6.3.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 849 + 0x48 bytes C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3077" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3079" class=""> vtkRenderingContext2D-6.3.dll!vtkContext2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 646 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3081" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3083" class=""> vtkChartsCore-6.3.dll!vtkAxis::GetBoundingRect(vtkContext2D * painter) Line 845 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3085" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3087" class=""> vtkChartsCore-6.3.dll!vtkChartXY::UpdateLayout(vtkContext2D * painter) Line 851 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3089" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3091" class=""> vtkChartsCore-6.3.dll!vtkChartXY::Paint(vtkContext2D * painter) Line 395 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3093" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3095" class=""> vtkRenderingContext2D-6.3.dll!vtkContextScenePrivate::PaintItems(vtkContext2D * context) Line 81 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3097" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3099" class=""> vtkRenderingContext2D-6.3.dll!vtkContextScene::Paint(vtkContext2D * painter) Line 120 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3101" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3103" class=""> vtkRenderingContext2D-6.3.dll!vtkContextActor::RenderOverlay(vtkViewport * viewport) Line 221 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3105" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3107" class=""> vtkRenderingCore-6.3.dll!vtkRenderer::UpdateGeometry() Line 585 + 0x41 bytes C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3109" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3111" class=""> vtkRenderingOpenGL-6.3.dll!vtkOpenGLRenderer::DeviceRender() Line 273 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3113" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3115" class=""> vtkRenderingCore-6.3.dll!vtkRenderer::Render() Line 298 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3117" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3119" class=""> vtkRenderingCore-6.3.dll!vtkRendererCollection::Render() Line 53 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3121" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3123" class=""> vtkRenderingCore-6.3.dll!vtkRenderWindow::DoStereoRender() Line 771 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3125" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3127" class=""> vtkRenderingCore-6.3.dll!vtkRenderWindow::DoFDRender() Line 739 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3129" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3131" class=""> vtkRenderingCore-6.3.dll!vtkRenderWindow::DoAARender() Line 618 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3133" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3060" class=""> vtkRenderingCore-6.3.dll!vtkRenderWindow::Render() Line 434 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3136" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3138" class=""> vtkRenderingCore-6.3.dll!vtkRenderWindowInteractor::Render() Line 175 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3140" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3142" class=""> vtkViewsContext2D-6.3.dll!vtkContextInteractorStyle::RenderNow() Line 147 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3144" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3146" class=""> vtkViewsContext2D-6.3.dll!vtkContextInteractorStyle::ProcessInteractorEvents(vtkObject * __formal, unsigned long eventId, void * clientdata, vtkObject * __formal) Line 132 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3148" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3150" class=""> vtkCommonCore-6.3.dll!vtkCallbackCommand::Execute(vtkObject * caller, unsigned long event, void * callData) Line 43 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3152" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3154" class=""> vtkCommonCore-6.3.dll!vtkSubjectHelper::InvokeEvent(unsigned long event, void * callData, vtkObject * self) Line 619 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3156" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3158" class=""> vtkCommonCore-6.3.dll!vtkObject::InvokeEvent(unsigned long event, void * callData) Line 785 + 0x1c bytes C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3160" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3162" class=""> vtkGUISupportQt-6.3.dll!QVTKInteractor::TimerEvent(int timerId) Line 217 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3164" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3166" class=""> vtkGUISupportQt-6.3.dll!QVTKInteractorInternal::TimerEvent(int id) Line 73 C++ </span><br style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3168" class=""><span style="font-size: 13.44px;" id="yui_3_16_0_1_1452278087525_3170" class=""> vtkGUISupportQt-6.3.dll!QVTKInteractorInternal::qt_static_metacall(QObject * _o, QMetaObject::Call _c, int _id, void * * _a) Line 52 C++ </span><br></span></div></div></body></html>