[Paraview] Uninitialized pointer in pqPythonShell::pqImplementation

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Oct 15 09:01:20 EDT 2007


Thanks for pointing that out. That has now been fixed.
Utkarsh

OSHIMA Takuya wrote:
> Hi,
> 
> I tried the latest CVS of ParaView3 built with MSVC++ and encountered
> a crash after selecting Tools->Python Shell. A bit of debugging
> indicates it's because in ParaView3/Qt/Python/pqPythonShell.cxx
> 
> vtkPVPythonInteractiveInterpretor* Interpreter
> 
> in struct pqPythonShell::pqImplementation is not initialized in ctor
> so if it has an uninitialized non-null value
> 
>    if (this->Interpreter)
> 
> at line 95 and hence the subsequent line 104 of pqPythonShell.cxx
> 
>       this->Interpreter->MakeCurrent();
> 
> are executed against a non-allocated object. I'm not sure if this is
> the correct fix but changing line 54 from
> 
>     : Console(Parent)
> 
> to
> 
>     : Console(Parent), Interpreter(NULL)
> 
> fixed the problem for me.
> 
> Regards,
> Takuy OSHIMA
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
> 


More information about the ParaView mailing list