View Issue Details

IDProjectCategoryView StatusLast Update
0032157CommunityOCCT:DRAWpublic2021-02-23 09:03
Reporterxuweibin Assigned Toabv 
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformWindowsOSVC++ 2013 
Product Version7.5.0 
Summary0032157: Draw Harness - Use XSDRAWSTLVRML_DataSource cause a crash
DescriptionWhen I use XSDRAWSTLVRML_DataSource,it cause a crash.
The code like below:
Handle(XSDRAWSTLVRML_DataSource) aDs = new XSDRAWSTLVRML_DataSource(astl_mesh);


It runs okay,but when I close my application,it crashed in the file Draw_Interpretor.cxx.

Draw_Interpretor::~Draw_Interpretor()
{
  SetDoLog (Standard_False);
  if (myFDLog >=0)
  {
    close (myFDLog);
    myFDLog = 0;
  }

  // MKV 01.02.05
#if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 4)))
  try {
    OCC_CATCH_SIGNALS
    Tcl_Exit(0);//crash
  }
  catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
    std::cout <<"Tcl_Exit have an exeption" << std::endl;
#endif
  }
#else
#ifdef _WIN32
  Tcl_Exit(0);
#endif  
#endif
}


My version of tcl is 8.6,the code check it and crash;

What happens?How can I do to solve it?
TagsNo tags attached.
Test case number

Activities

kgv

2021-02-23 09:02

developer   ~0099099

Last edited: 2021-02-23 09:03

I suppose this is irrelevant to XSDRAWSTLVRML_DataSource, and happens in Tcl itself. So the bug should be debugged there.
https://old.opencascade.com/content/crash-tkdrawdrawinterpretortclexit

As for XSDRAWSTLVRML_DataSource in application code - it is better avoiding links to Draw Harness libraries as long as Tcl interpretor in not used in your application (cannot say if it does from bug description).

Issue History

Date Modified Username Field Change
2021-02-23 04:18 xuweibin New Issue
2021-02-23 04:18 xuweibin Assigned To => abv
2021-02-23 08:50 kgv Summary Use XSDRAWSTLVRML_DataSource cause a crash. => Draw Harness - Use XSDRAWSTLVRML_DataSource cause a crash
2021-02-23 08:50 kgv Description Updated
2021-02-23 09:02 kgv Note Added: 0099099
2021-02-23 09:03 kgv Note Edited: 0099099