MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025280Community[OCCT] OCCT:Data Exchangepublic2014-09-27 00:372014-09-27 00:37
Reporternikiml 
Assigned Togka 
PrioritynormalSeveritycrash 
StatusnewResolutionopen 
PlatformWindowsOSVC++ 2008OS Version64 bit
Product Version[OCCT] 6.7.1 
Target VersionFixed in Version 
Summary0025280: Interface_BitMap::Init crashes
DescriptionInterface_BitMap bm(0);
bm.Init(Standard_False);//crashes due to theflags.IsNull() being true

this code is called by:
Interface_CopyTool::Interface_CopyTool
  (const Handle(Interface_InterfaceModel)& amodel,
   const Interface_GeneralLib& lib)

when amodel is empty

called by:
StepData_StepModel::GetFromAnother
    (const Handle_Interface_InterfaceModel & other
    )

called by:
Interface_CopyTool::FillModel(const Handle_Interface_InterfaceModel & bmodel)


called by
IFSelect_ModelCopier::SendSelected
    (const char * const filename
    , const Interface_Graph & G
    , const Handle_IFSelect_WorkLibrary & WL
    , const Handle_Interface_Protocol & protocol
    , const Interface_EntityIterator & list)

called by
IFSelect_WorkSession::SendSelected
    (const char * const filename
    , const Handle_IFSelect_Selection & sel
    , const unsigned int computegraph)
Steps To ReproduceJust Call IFSelect_WorkSession::SendSelected with valid model and selection, e.g

IFSelect_ReturnStatus stat = reader.ReadFile(attached_step_file_or_another_one_with_solids);
Handle_XSControl_WorkSession RWS = reader.WS();

Handle_IFSelect_SelectPointed sp = new IFSelect_SelectPointed;

Handle_Interface_InterfaceModel Model = RWS->Model();

Handle_Standard_Type tGRI = STANDARD_TYPE(StepShape_SolidModel);
Standard_Integer nb = Model->NbEntities();

for (Standard_Integer i = 1; i <= nb; i ++) {
  Handle_Standard_Transient enti = Model->Value(i);
  if ( ! enti->IsKind ( tGRI) ) continue;
  Handle_StepGeom_GeometricRepresentationItem gri =
    Handle_StepGeom_GeometricRepresentationItem::DownCast(enti);

  sp->SetEntity(gri);
  break;
}


STEPControl_Writer writer(RWS, Standard_False);
writer.WS()->WriteFile(valid_outfile, sp);
TagsNo tags attached.
Test case number
Attached Files7z file icon l3.7z (9,629 bytes) 2014-09-27 00:37

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-09-27 00:37 nikiml New Issue
2014-09-27 00:37 nikiml Assigned To => gka
2014-09-27 00:37 nikiml File Added: l3.7z


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker