MantisBT - Open CASCADE
View Issue Details
0028350Open CASCADE[OCCT] OCCT:DRAWpublic2017-01-12 16:482017-09-29 16:24
nbv 
apn 
normalminor 
closedfixed 
Windows
[OCCT] 7.2.0 
[OCCT] 7.2.0[OCCT] 7.2.0 
Not needed
0028350: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream on Windows
If we call DRAWEXE with a pipeline then we have hanging.
Try in command window:

"draw.bat" - OK

"echo pload;exit | draw.bat" - HANGING
No tags attached.
related to 0028110closed apn Configuration - specify Unicode charset instead of multibyte in project files for Visual Studio 
related to 0028381closed apn Draw Harness - DRAWEXE still hangs up immediatly when redirecting input stream on Windows 
Issue History
2017-01-12 16:48nbvNew Issue
2017-01-12 16:48nbvAssigned To => apn
2017-01-12 16:53nbvRelationship addedrelated to 0028110
2017-01-12 16:55nbvNote Added: 0062542
2017-01-13 07:47amlNote Added: 0062559
2017-01-13 10:57msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15802#r15802
2017-01-15 14:40kgvPlatform => Windows
2017-01-15 14:40kgvProduct Version => 7.2.0
2017-01-15 14:40kgvSummaryDRAWEXE hangs up immediatly after executing => Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream on Windows
2017-01-15 14:43gitNote Added: 0062601
2017-01-15 14:44kgvNote Added: 0062602
2017-01-15 14:44kgvAssigned Toapn => abv
2017-01-15 14:44kgvStatusnew => resolved
2017-01-16 11:10gitNote Added: 0062611
2017-01-16 11:13abvNote Added: 0062612
2017-01-16 11:13abvAssigned Toabv => bugmaster
2017-01-16 11:13abvStatusresolved => reviewed
2017-01-16 17:36apvAssigned Tobugmaster => apv
2017-01-17 13:53apvTest case number => Not needed
2017-01-17 14:24apvNote Added: 0062701
2017-01-17 14:24apvAssigned Toapv => bugmaster
2017-01-17 14:24apvStatusreviewed => tested
2017-01-20 16:12apnChangeset attached => occt master 7755fe82
2017-01-20 16:12apnAssigned Tobugmaster => apn
2017-01-20 16:12apnStatustested => verified
2017-01-20 16:12apnResolutionopen => fixed
2017-01-23 11:08nbvRelationship addedrelated to 0028381
2017-02-08 11:36gitNote Added: 0063610
2017-09-29 16:21aivFixed in Version => 7.2.0
2017-09-29 16:24aivStatusverified => closed

Notes
(0062542)
nbv   
2017-01-12 16:55   
This bug has been detected while running draw.bat via EMACS (or WOK).

The problem has been initiated by the fix 0028110.
(0062559)
aml   
2017-01-13 07:47   
The problem is reproducible on my workstation too:

Windows: 10, 64 bit
MSVC: 2015 Professional
OCCT: master from 2016-12-29
Environment: WOK Emacs

Hang log:
:LOC:dev:master> vc12-x64/draw.bat
Hint: use "pload ALL" command to load standard commands
Draw[1]> pload AL
(0062601)
git   
2017-01-15 14:43   
Branch CR28350 has been created by kgv.

SHA-1: 3d76a2fdd320bf273565e3519eae566f1c384efe


Detailed log of new commits:

Author: kgv
Date: Sun Jan 15 14:43:41 2017 +0300

    0028350: Draw Harness - DRAWEXE hangs up immediatly when redirecting input stream on Windows
    
    Fallback using fgetws() instead of ReadConsoleW() for reading input from a pipe.
(0062602)
kgv   
2017-01-15 14:44   
Patch is ready for review.
(0062611)
git   
2017-01-16 11:10   
Branch CR28350 has been updated forcibly by kgv.

SHA-1: d38691ad54f862149f5ad5d0108da48b5bc0012d
(0062612)
abv   
2017-01-16 11:13   
No remarks, please test
(0062701)
apv   
2017-01-17 14:24   
Dear BugMaster,

Branch CR28350 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: d38691ad54f862149f5ad5d0108da48b5bc0012d

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MasOS: 0 (0 on master)
products component:
   Linux: 63
   Windows: 0
   MacOS: 1124

Regressions/Differences:
Not detected

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 92992723 / 92922377 [+0.08%]
Total CPU difference: 21054.58000000016 / 21506.1200000003 [-2.10%]

Testing on Windows:
Total MEMORY difference: 58632144 / 58649007 [-0.03%]
Total CPU difference: 19516.645505898618 / 19749.742200098677 [-1.18%]
(0063610)
git   
2017-02-08 11:36   
Branch CR28350 has been deleted by kgv.

SHA-1: d38691ad54f862149f5ad5d0108da48b5bc0012d