Archived issue #0023241
DRAWEXE crash on startup in Mac OS X
Description
Draw Harness fail to start on Mac OS X platform when linked against system Tcl/Tk libraries:
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address [revision removed]
Draw_Window.cxx, 1071:
> Draw_WindowDisplay = Tk_Display(mainWindow);
But system library doesn't uses XLib and returned pointer is somewhat different (but not NULL).
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address [revision removed]
Draw_Window.cxx, 1071:
> Draw_WindowDisplay = Tk_Display(mainWindow);
But system library doesn't uses XLib and returned pointer is somewhat different (but not NULL).
Public activity
6 archived notes
Participants are labeled by their role within this record.
The value returned by Tk_Display was a pointer to Display structure defined in system Tcl/Tk libraries. This structure differs from structure defined in X11 library. Replaced Tk_Display with XOpenDisplay.
Also changed the sequence of linkage (it was the reason of problems with events handling), fixed Code Blocks projects files generation and added minor fixes to the scripts.
Please, review git occt branch CR23241 and git occt-wok branch CR23241
Also changed the sequence of linkage (it was the reason of problems with events handling), fixed Code Blocks projects files generation and added minor fixes to the scripts.
Please, review git occt branch CR23241 and git occt-wok branch CR23241
Draw_Window.cxx
>Draw_WindowDisplay = XOpenDisplay(NULL);//Tk_Display(mainWindow);
Please add problem description into the sources (why we don't use Tk_Display) instead of just commenting old code.
>Draw_WindowDisplay = XOpenDisplay(NULL);//Tk_Display(mainWindow);
Please add problem description into the sources (why we don't use Tk_Display) instead of just commenting old code.
Added description. Please review.
Both branches were reviewed and remarks applied.
Dear Commenter 1,
Branch CR23241 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
Regressions:
Not detected
Improvements:
Not detected
Testing cases:
Not needed
Branch CR23241 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
Regressions:
Not detected
Improvements:
Not detected
Testing cases:
Not needed
Fix has been checked on MacOS platform.
DRAWEXE starts successfully.
DRAWEXE starts successfully.