[Paraview-developers] WG: endless loop in vtkOpenGLError

Lodron, Gerald Gerald.Lodron at joanneum.at
Mon Dec 9 03:19:47 EST 2013


Here is the reduced example code for evaluation, please tell me if you can reproduce my issue (I am using the VTK libs of Paraview 4.1.0):

vtkContextView* poContextView = vtkContextView::New();
    poContextView->GetRenderer()->SetBackground(1.0, 1.0, 1.0);

    vtkChartXY* poChart = vtkChartXY::New();
    poChart->GetAxis(1)->SetTitle( "xaxis" );
    poChart->GetAxis(0)->SetTitle( "yaxis" );
    poChart->SetTitle( "Title" );

    poContextView->GetScene()->AddItem(poChart);

    // Create a poTable with some points in it...
    vtkTable* poTable = vtkTable::New();

    vtkSmartPointer<vtkDoubleArray> oXAxis = vtkSmartPointer<vtkDoubleArray>::New();
    oXAxis->SetName("xaxis");
        poTable->AddColumn(oXAxis);

    //poTable->AddColumn(oXAxis);

    vtkSmartPointer<vtkDoubleArray> oPositionlot = vtkSmartPointer<vtkDoubleArray>::New();

    oPositionlot->SetName( "Data0" );
    poTable->AddColumn(oPositionlot);


    poTable->SetNumberOfRows( 10 );

    poContextView->GetRenderWindow()->SetMultiSamples(0);

    poTable->GetColumn(0)->SetName("col1");
    for ( size_t nRow = 0; nRow < 10; ++nRow )
    {
        poTable->SetValue(nRow, 0, 1);
    }

    vtkPlot * poPlot = poChart->AddPlot(vtkChart::LINE);
    poPlot->SetInputData(poTable, 0, 0);
    //poPlot->SetInput(m_poTable, 0, nColumn);
    poPlot->SetColor( 1, 0, 0, 1 );
    poPlot->SetWidth( 1 );
    poPlot->GetPen()->SetLineType(1);

     poContextView->GetRenderer()->Render();
     poContextView->GetInteractor()->Initialize();
    poContextView->GetInteractor()->Start();


Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von Lodron, Gerald
Gesendet: Montag, 09. Dezember 2013 08:53
An: VTK Developer (vtk-developers at vtk.org)
Cc: (vtkusers at vtk.org)
Betreff: [vtkusers] endless loop in vtkOpenGLError

Hi

I currently migrated my vtk code to vtk 6.1 and now have an endless loop in vtkClearOpenGLErrors at line 192 of vtkOpenGLError.h while using vtkContextView. This seems to be called in ClearLights of vtkOpenGLRenderer.cxx, any ideas, would be great!

Best regards
Gerald

_________________________________________________________________

JOANNEUM RESEARCH Forschungsgesellschaft mbH

DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria

phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

Please consider the environment before printing this page.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20131209/be68825e/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20131209/be68825e/attachment.txt>


More information about the Paraview-developers mailing list