View Issue Details

IDProjectCategoryView StatusLast Update
0007721Open CASCADEOCCT:Visualizationpublic2012-01-12 13:47
Reportervro Assigned Tovro  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.3.0 
Summary0007721: Visualization of 33 000 interactive objects crashes an application
DescriptionTry to display 33 000 interactive objects (any!), an exception is being raised
in TKOpenGl. As far as I can judge, it occurs in the mechanism of allocation of
objects in memory (specific mechanism of TKOpenGl).
In order to reproduce the bug I used Official Open CASCADE sample:
graphic3ddemo. Insert the following code into onAbout() method:


#include <TopoDS_Vertex.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <AIS_InteractiveContext.hxx>
#include <AIS_Shape.hxx>
void Application::onAbout()
{

    Handle(AIS_InteractiveContext) IC = getActiveMDI()->getDocument()->getContext();
    for (int i = 1; i <= 100000; i++)
    {
        gp_Pnt p(i, i, i);
        TopoDS_Vertex V = BRepBuilderAPI_MakeVertex(p);
        Handle(AIS_Shape) A = new AIS_Shape(V);
        IC->Display(A, false);
    }
    IC->UpdateCurrentViewer();


  QMessageBox::information(this,tr("TIT_ABOUT"),tr("INF_ABOUT"), tr("BTN_OK"),
                         QString::null, QString::null, 0, 0);
}

Just call Help / About menu command to see the crash.
Additional information
and documentation updates
Documentation remark, added by VRO 2008-05-22 11:23:20:

Improvements:
There was a restriction of visualization of about 33 000 interactive objects.
Now this restriction is removed.
Modified entities:
OpenGl/OpenGl_GraphicDriver.cxx
TagsNo tags attached.
Test case number

Attached Files

  • vro-occ7721-v1.rar (1,110 bytes)

Activities

2008-04-18 13:12

 

vro-occ7721-v1.rar (1,110 bytes)

Issue History

Date Modified Username Field Change
2005-01-13 14:16 bugmaster Assigned To bugmaster => san
2005-01-13 14:16 bugmaster Status new => assigned
2008-05-22 12:17 bugmaster Assigned To san => vro
2008-05-22 12:17 bugmaster Status assigned => tested
2008-06-06 08:35 bugmaster Status tested => verified
2009-06-23 18:29 bugmaster Status verified => closed
2009-06-23 18:29 bugmaster Resolution @0@ => fixed
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2012-01-12 13:47 atp Description Updated
2012-01-12 13:47 atp Additional Information Updated