View Issue Details

IDProjectCategoryView StatusLast Update
0022622Open CASCADEOCCT:Application Frameworkpublic2013-02-19 18:45
ReportervtnAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionunable to reproduce 
OSLinux 
Fixed in Version6.5.4 
Summary0022622: If AISInitViewer command is called with ocaf document name in DRAW and corresponding document is closed then exception is raise
Descriptionsee caf 003 A4:

*** Abort *** an exception was raised, but no catch was found.

... The exception is:SIGSEGV 'segmentation violation' detected. Address 74c08514
TagsNo tags attached.
Test case numbercaf presentation(003) A4

Attached Files

Activities

vtn

2011-06-23 16:54

developer   ~0017729

The problem is in reference to closed OCAF document.

The document is created, some labels are displayed in viewer and it is closed
after that. The displayed labels are not erased before close of document.

The bug may be considered as NOT. It is necessary to add:
  AISErase D ${aLabel}
before
  Close D
command in caf 003 A4 and caf 006 B6

vtn

2011-06-30 19:48

developer   ~0017730

The problem is the following sequence of commands:

AISInitViewer D
Close D
exit

The problem is reproduced on Mandriva2008.

szy

2012-03-05 18:26

manager   ~0019868

Last edited: 2012-03-15 15:29

The problem (exception) is reproduced on Mandriva2008 and Debian 6.0.
On all set of Windows it was not reproduced.
The problem Linux specific only.
Draw reproducer.
pload FULL
NewDocument D MDTV-Standard
box b 100 100 100
SetShape D 0:1:1 b
ASIInitViewer D
AISSet D 0:1:1 NS
AISDisplay D 0:1:1
Close D
exit
==>
*** Abort *** an exception was raised, but no catch was found.
        ... The exception is:SIGSEGV 'segmentation violation' detected. Address 3a35333f

On Debian the command AISErase D 0:1:1 befor Close D helps to avoid exception.

szy

2012-03-15 15:34

manager  

OCC22622.zip (1,674 bytes)

szy

2012-03-15 15:36

manager   ~0019994

The problem (not closed doc) is fixed.
Updated scripts are attached.

vtn

2012-06-15 11:38

developer   ~0020703

Vladislav, please see if it is necessary to fix the problem is sources.

vro

2012-06-15 16:01

developer   ~0020708

Two OCAF draw-commands are corrected:
Close - now it cleans all attributes before closure of the document. It allows us to remove all interactive objects displayed from the closing document.
AISInitViewer - it uses a single viewer notation like the draw-command "vinit". It avoid a problem of "pending" viewer for a closed document.

vro

2012-06-15 16:01

developer   ~0020709

The changes are in CR22622.

vro

2012-07-13 13:40

developer   ~0020951

A small change: the code cleaning OCAF attributes before closing of a document is moved from a draw-command "Close" to TDocStd_Application::Close() method.
The modifications are integrated into CR22622.

vro

2012-07-13 13:56

developer   ~0020953

Please, review the changes.

abv

2012-07-13 17:47

manager   ~0020969

Reviewed with no remarks; the branch is rebased on the current master with name CR22622_1; branch CR22622 removed. Please test

mkv

2012-07-17 11:27

tester   ~0020999

Dear BugMaster,
The workbenches
KAS:dev:mkv-22622-occt (GIT branch CR22622_1)
KAS:dev:mkv-22622-products (GIT master)
were compiled on Linux platform and tested.

Regression:
caf 001 G3 H3 I3 - .. The exception is:Attempt to access to null object
caf 001 J6 - TDataStd_UAttribute
caf 006 A7 A8 A9 - .. The exception is:Attempt to access to null object
caf 003 D1 - AISHasOwnMaterial
caf 003 D2 - AISMaterial
caf 003 D3 - AISMaterial
caf 003 D4 - AISMaterial
caf 003 E1 - AISMaterial
caf 003 F1 - AISHasOwnTransparency
caf 003 F2 - AISColor; AISTransparency
caf 003 F3 - AISColor; AISTransparency
caf 003 F4 - AISColor; AISTransparency
caf 003 G1 - AISColor; AISTransparency
caf 003 H1 - AISColor
caf 003 H2 - AISColor
caf 003 I1 - AISColor
caf 003 I2 - AISColor
caf 003 J1 - AISColor
caf 003 J2 - AISColor
caf 003 K1 - AISColor
caf 003 K2 - AISColor

chl 929 K1 K2 K3 - .. The exception is:Attempt to access to null object
chl 922 Y3 - AISColor; AISTransparency
chl 922 Y4 - AISMaterial
chl 934 O4 - AISWidth
chl 914 E2 - AISMaterial, AISColor, AISTransparency
chl 914 E4 - AISMaterial, AISColor, AISTransparency

xml 001 A7 A8 A9 - ... The exception is:Attempt to access to null object
xml 001 B2 - TDataStd_UAttribute
xml 002 B2 - TDataStd_UAttribute
xml 003 L1 - XCAFDoc_Location

Improvements:
Not detected

Testing case:
caf 003 A4

See results in /QADisk/occttests/results/KAS/dev/mkv-22622-products-1_16072012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120622-opt_22062012/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://doc/doku.php?id=occt:certification

dbv

2013-02-14 17:53

developer   ~0023342

Can't reproduce the original problem on master on Mandriva 2010.

Dear mkv, could you please, check if the problem still occurs. Test cases are: caf 003 A4

or

pload ALL
NewDocument D MDTV-Standard
box b 100 100 100
SetShape D 0:1:1 b
AISInitViewer D
AISSet D 0:1:1 NS
AISDisplay D 0:1:1
Close D
exit

mkv

2013-02-14 18:54

tester   ~0023343

Dear dbv,

Test case caf/003/A4 is OK on current master.
See:
http://occt-tests/IR-08-02-2013-master-occt/Windows-32-VC9/caf/presentation/A4.html
http://occt-tests/IR-08-02-2013-master-occt/Mandriva2010/caf/presentation/A4.html

You can see also another test cases in this result folder, its are OK.

dbv

2013-02-15 09:44

developer   ~0023348

Dear bugmaster, the problem can not be reproduced on current master. Issue can be closed.

Issue History

Date Modified Username Field Change
2011-06-23 16:10 vtn Assigned To bugmaster => san
2011-06-23 16:10 vtn Status new => assigned
2011-06-23 16:54 vtn Status assigned => closed
2011-06-23 16:54 vtn Resolution @0@ => unable to reproduce
2011-06-30 19:46 vtn Summary => If AISInitViewer command is called with ocaf document name in DRAW and corresponding document is closed then exception is raised on exit.
2011-06-30 19:47 vtn Assigned To san => bugmaster
2011-06-30 19:47 vtn Status closed => assigned
2011-06-30 19:47 vtn Category => OCAF
2011-06-30 19:47 vtn Resolution unable to reproduce => @0@
2011-06-30 19:48 vtn Assigned To bugmaster => szy
2011-08-02 10:32 bugmaster Category OCCT:OCAF => OCCT:Application Framework
2012-03-05 18:26 szy Note Added: 0019868
2012-03-15 15:29 szy Note Edited: 0019868
2012-03-15 15:34 szy File Added: OCC22622.zip
2012-03-15 15:36 szy Note Added: 0019994
2012-03-15 15:36 szy Assigned To szy => vtn
2012-03-15 15:36 szy Status assigned => resolved
2012-06-15 11:34 vtn Note View State: 0017729: public
2012-06-15 11:34 vtn Note View State: 0017730: public
2012-06-15 11:37 vtn Assigned To vtn => vro
2012-06-15 11:38 vtn Note Added: 0020703
2012-06-15 11:38 vtn Status resolved => assigned
2012-06-15 16:01 vro Note Added: 0020708
2012-06-15 16:01 vro Assigned To vro => vtn
2012-06-15 16:01 vro Status assigned => resolved
2012-06-15 16:01 vro Note Added: 0020709
2012-07-13 13:40 vro Note Added: 0020951
2012-07-13 13:40 vro Assigned To vtn => abv
2012-07-13 13:40 vro Status resolved => assigned
2012-07-13 13:56 vro Note Added: 0020953
2012-07-13 13:56 vro Status assigned => resolved
2012-07-13 17:47 abv Note Added: 0020969
2012-07-13 17:47 abv Assigned To abv => bugmaster
2012-07-13 17:47 abv Status resolved => reviewed
2012-07-16 13:27 mkv Assigned To bugmaster => mkv
2012-07-17 11:27 mkv Note Added: 0020999
2012-07-17 11:28 mkv Assigned To mkv => vro
2012-07-17 11:28 mkv Status reviewed => assigned
2012-07-17 11:28 mkv Fixed in Version EMPTY =>
2012-07-17 11:28 mkv Description Updated
2012-07-17 12:24 vtn Assigned To vro => dbv
2013-02-14 17:53 dbv Note Added: 0023342
2013-02-14 17:53 dbv Assigned To dbv => mkv
2013-02-14 17:53 dbv Status assigned => feedback
2013-02-14 18:54 mkv Note Added: 0023343
2013-02-14 18:57 mkv Test case number => caf presentation(003) A4
2013-02-14 18:57 mkv Assigned To mkv => dbv
2013-02-15 09:44 dbv Note Added: 0023348
2013-02-15 09:44 dbv Assigned To dbv => bugmaster
2013-02-15 09:44 dbv Status feedback => resolved
2013-02-19 18:44 bugmaster Status resolved => closed
2013-02-19 18:44 bugmaster Resolution open => unable to reproduce
2013-02-19 18:45 bugmaster Fixed in Version => 6.5.4