<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi All,</tt><tt><br>
    </tt><tt><br>
    </tt><tt>on Mac OSX 10.8.2 with a recent pull from master I'm
      encountering OpenGL errors from the pqColorScale editor dialog. I
      don't have much experience with the Mac so I'm hoping someone out
      there can take a look?</tt><tt><br>
    </tt><tt><br>
    </tt><tt>To reproduce: start paraview (and attach to ParaView using
      Apple's OpenGL Profiler with "break on open gl errors" set),
      create a wavelet source, slice, color by RTData, open the color
      scale editor. At this point in the terminal:</tt><tt><br>
    </tt>
    <blockquote><tt>2013-03-16 14:39:04.866 paraview[28716:707] invalid
        drawable</tt><tt><br>
      </tt><tt>
        2013-03-16 14:39:04.867 paraview[28716:707] invalid drawable</tt><tt><br>
      </tt></blockquote>
    <tt>The profiler shows the following back trace:</tt><tt><br>
    </tt>
    <blockquote><tt>glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)&nbsp;</tt><tt><br>
      </tt><tt>
        Error: GL_INVALID_FRAMEBUFFER_OPERATION</tt><tt><br>
      </tt><tt>
        Context: 0x7fb7f998dc00</tt><tt><br>
      </tt><tt>
        Virtual Screen:&nbsp; 0/2</tt><tt><br>
      </tt><tt>
        kCGLCPCurrentRendererID:&nbsp; 16915206 (0x01021b06)</tt><tt><br>
      </tt><tt>
        GL_RENDERER:&nbsp; AMD Radeon HD 6750M OpenGL Engine</tt><tt><br>
      </tt><tt>
        GL_VENDOR:&nbsp; ATI Technologies Inc.</tt><tt><br>
      </tt><tt>
        GL_VERSION:&nbsp; 2.1 ATI-1.0.29</tt><tt><br>
      </tt><tt>
        kCGLCPGPUFragmentProcessing:&nbsp; GL_TRUE</tt><tt><br>
      </tt><tt>
        kCGLCPGPUVertexProcessing:&nbsp; GL_TRUE</tt><tt><br>
      </tt>
      <tt><br>
      </tt><tt>Function call stack:&nbsp;</tt><tt><br>
      </tt><tt>
        0: 0x10f4ec40c in vtkOpenGLRenderer::Clear() at
        vtkOpenGLRenderer.cxx: 1080&nbsp;</tt><tt><br>
      </tt><tt>
        1: 0x10f472cc8 in vtkOpenGLCamera::Render(vtkRenderer*) at
        vtkOpenGLCamera.cxx: 159&nbsp;</tt><tt><br>
      </tt><tt>
        2: 0x10f8a172d in vtkRenderer::UpdateCamera() at
        vtkRenderer.cxx: 402&nbsp;</tt><tt><br>
      </tt><tt>
        3: 0x10f4e5da7 in vtkOpenGLRenderer::DeviceRender() at
        vtkOpenGLRenderer.cxx: 250&nbsp;</tt><tt><br>
      </tt><tt>
        4: 0x10f8a0f9e in vtkRenderer::Render() at vtkRenderer.cxx: 301&nbsp;</tt><tt><br>
      </tt><tt>
        5: 0x10f89f19b in vtkRendererCollection::Render() at
        vtkRendererCollection.cxx: 53&nbsp;</tt><tt><br>
      </tt><tt>
        6: 0x10f8bb398 in vtkRenderWindow::DoStereoRender() at
        vtkRenderWindow.cxx: 773&nbsp;</tt><tt><br>
      </tt><tt>
        7: 0x10f8bb29a in vtkRenderWindow::DoFDRender() at
        vtkRenderWindow.cxx: 739&nbsp;</tt><tt><br>
      </tt><tt>
        8: 0x10f8bac1d in vtkRenderWindow::DoAARender() at
        vtkRenderWindow.cxx: 618&nbsp;</tt><tt><br>
      </tt><tt>
        9: 0x10f8ba1c5 in vtkRenderWindow::Render() at
        vtkRenderWindow.cxx: 433&nbsp;</tt><tt><br>
      </tt><tt>
        10: 0x104e477d8 in
        pqTransferFunctionChartViewWidget::renderView() at
        pqTransferFunctionChartViewWidget.cxx: 837&nbsp;</tt><tt><br>
      </tt>
      <tt><span class="" style="white-space:pre"></span></tt><tt>11:
        0x104e4777f in pqTransferFunctionChartViewWidget::resetView() at
        pqTransferFunctionChartViewWidget.cxx: 832&nbsp;</tt><tt><br>
      </tt><tt>
        12: 0x104be17a3 in pqColorScaleEditor::updateScalarRange(double,
        double) at pqColorScaleEditor.cxx: 2253&nbsp;</tt><tt><br>
      </tt><tt>
        13: 0x104bdd401 in pqColorScaleEditor::initColorScale() at
        pqColorScaleEditor.cxx: 2099&nbsp;</tt><tt><br>
      </tt><tt>
        14: 0x104bdb153 in
        pqColorScaleEditor::setRepresentation(pqDataRepresentation*) at
        pqColorScaleEditor.cxx: 574&nbsp;</tt><tt><br>
      </tt><tt>
        15: 0x104977cef in pqEditColorMapReaction::editColorMap() at
        pqEditColorMapReaction.cxx: 130&nbsp;</tt><tt><br>
      </tt><tt>
        16: 0x1049cba31 in pqEditColorMapReaction::onTriggered() at
        pqEditColorMapReaction.h: 59&nbsp;</tt><tt><br>
      </tt><tt>
        17: 0x1049d0880 in pqReaction::qt_static_metacall(QObject*,
        QMetaObject::Call, int, void**) at moc_pqReaction.cxx: 57&nbsp;</tt><tt><br>
      </tt><tt>
        18: 0x11383e1ee in QMetaObject::activate(QObject*, QMetaObject
        const*, int, void**) in &lt;QtCore&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        19: 0x1128da431 in QAction::triggered(bool) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        20: 0x1128db7c4 in QAction::activate(QAction::ActionEvent) in
        &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>21: 0x112c857b9 in QAbstractButtonPrivate::click() in
        &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt>
      <tt><span class="" style="white-space:pre"></span></tt><tt>22:
        0x112c85a51 in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
        in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        23: 0x112d53cd2 in QToolButton::mouseReleaseEvent(QMouseEvent*)
        in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        24: 0x11293d355 in QWidget::event(QEvent*) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        25: 0x112c84848 in QAbstractButton::event(QEvent*) in
        &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        26: 0x112d560df in QToolButton::event(QEvent*) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        27: 0x1128e09ed in QApplicationPrivate::notify_helper(QObject*,
        QEvent*) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        28: 0x1128e7590 in QApplication::notify(QObject*, QEvent*) in
        &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        29: 0x11382620c in QCoreApplication::notifyInternal(QObject*,
        QEvent*) in &lt;QtCore&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        30: 0x1128e4fdd in QApplicationPrivate::sendMouseEvent(QWidget*,
        QMouseEvent*, QWidget*, QWidget*, QWidget**,
        QPointer&lt;QWidget&gt;&amp;, bool) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        31: 0x112894acb in qt_mac_handleMouseEvent(NSEvent*,
        QEvent::Type, Qt::MouseButton, QWidget*, bool) in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        32: 0x7fff89e966d6 in -[NSWindow sendEvent:] in &lt;AppKit&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        33: 0x112889bb7 in -[QCocoaWindow sendEvent:] in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        34: 0x7fff89e92744 in -[NSApplication sendEvent:] in
        &lt;AppKit&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        35: 0x11288ebf4 in -[QNSApplication sendEvent:] in
        &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        36: 0x7fff89da82fa in -[NSApplication run] in &lt;AppKit&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        37: 0x112899a80 in
        QEventDispatcherMac::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;)
        in &lt;QtGui&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        38: 0x113825114 in
        QEventLoop::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;)
        in &lt;QtCore&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        39: 0x1138254c4 in
        QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) in
        &lt;QtCore&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        40: 0x113827bac in QCoreApplication::exec() in &lt;QtCore&gt;&nbsp;</tt><tt><br>
      </tt><tt>
        41: 0x1044c0625 in main at paraview_main.cxx: 81&nbsp;</tt><tt><br>
      </tt><tt>
        42: 0x7fff8c5c87e1 in start in &lt;libdyld.dylib&gt; </tt><tt><br>
      </tt>
    </blockquote>
    <tt>It's causing me problems because it's reported when I check for
      gl errors in my code. I'd really like to leave the error checking
      enabled. I filed a bug report : </tt>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <tt><a href="http://paraview.org/Bug/view.php?id=13947">http://paraview.org/Bug/view.php?id=13947</a></tt><tt><br>
    </tt><tt><br>
    </tt><tt>Thanks</tt><tt><br>
    </tt><tt>Burlen</tt><br>
  </body>
</html>