MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032157Community[OCCT] OCCT:DRAWpublic2021-02-23 04:182021-02-23 09:03
Reporterxuweibin 
Assigned Toabv 
PrioritynormalSeveritycrash 
StatusnewResolutionopen 
PlatformWindowsOSVC++ 2013OS Version64 bit
Product Version[OCCT] 7.5.0 
Target VersionFixed in Version 
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
Attached Files

- Relationships

-  Notes
(0099099)
kgv (developer)
2021-02-23 09:02
edited on: 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 View Revisions
2021-02-23 08:57 kgv Relationship added related to 0026347
2021-02-23 09:02 kgv Note Added: 0099099
2021-02-23 09:03 kgv Note Edited: 0099099 View Revisions


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker