View Issue Details

IDProjectCategoryView StatusLast Update
0025610CommunityOCCT:Application Frameworkpublic2016-12-07 11:25
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeveritycrash 
Status closedResolutionunable to reproduce 
Product Version6.8.0 
Summary0025610: Undo a document and then redo will crash if current view has local open context.
Description     KernelBase.dll!000007fefd38940d() Unknown
     msvcr120d.dll!000007feed82c366() Unknown
     TKernel.dll!Standard_NoSuchObject::Throw() Line 10 C++
     TKernel.dll!Standard_Failure::Reraise() Line 153 C++
     TKernel.dll!Standard_Failure::Reraise(const char * const AString) Line 136 C++
     TKernel.dll!Standard_NoSuchObject::Raise(const char * const AString) Line 10 C++
     TKV3d.dll!AIS_DataMapOfSelStat::Find(const Handle_SelectMgr_SelectableObject & K) Line 196 C++
> TKV3d.dll!AIS_LocalContext::SelectionModes(const Handle_AIS_InteractiveObject & anObject) Line 899 C++
     TKV3d.dll!AIS_LocalContext::ClearOutdatedSelection(const Handle_AIS_InteractiveObject & theIO, const unsigned int toClearDeactivated) Line 929 C++
     TKV3d.dll!AIS_InteractiveContext::RecomputeSelectionOnly(const Handle_AIS_InteractiveObject & theIO) Line 1258 C++
     TKV3d.dll!AIS_InteractiveContext::Redisplay(const Handle_AIS_InteractiveObject & anIObj, const unsigned int updateviewer, const unsigned int allmodes) Line 1179 C++
     TKCAF.dll!TPrsStd_AISPresentation::AISUpdate() Line 984 C++
     TKCAF.dll!TPrsStd_AISPresentation::AfterResume() Line 845 C++
     TKCAF.dll!TPrsStd_AISPresentation::AfterAddition() Line 814 C++
     TKCAF.dll!TPrsStd_AISPresentation::AfterUndo(const Handle_TDF_AttributeDelta & AD, const unsigned int __formal) Line 889 C++
     TKLCAF.dll!TDF_Delta::BeforeOrAfterApply(const unsigned int before) Line 99 C++
     TKLCAF.dll!TDF_Data::Undo(const Handle_TDF_Delta & aDelta, const unsigned int withDelta) Line 403 C++
     TKLCAF.dll!TDocStd_Document::Redo() Line 639 C++
TagsNo tags attached.
Test case number

Activities

Vico Liang

2014-12-13 16:10

developer   ~0035392

To reproduce the issue, it's need a shape to be draw in the view and change the selection mode to face mode in a local context.

Vico Liang

2014-12-13 16:17

developer   ~0035393

The crash reason is that the AIS_InteractiveObject is displayed in Neutral Point, and it can't be found in local context.

Vico Liang

2014-12-14 17:34

developer   ~0035396

There is a similar issue http://www.opencascade.org/org/forum/thread_26718/?forum=3

git

2016-02-09 11:13

administrator   ~0050512

Branch CR25610 has been created by vro.

SHA-1: eed3ab4e20b617a01bd9e9ce34b54952ad4b753b


Detailed log of new commits:

Author: vro
Date: Tue Feb 9 11:12:57 2016 +0300

    0025610: Undo a document and then redo will crash if current view has local open context.
    A draw-command to define a selection mode for a presentation attribute of Ocaf: "AISSelectionMode doc entry mode"

vro

2016-02-09 11:20

developer   ~0050514

Hello Vico. I tried to reproduce the crash in DRAW following your description. A draw-script is below. Unfortunately (or fortunately) it doesn't fail. Could you please try to reproduce the crash in DRAW using the script below, please?
Beware, I had to introduce a new draw-command AISSelectionMode in order to define selection of faces in local context. Therefore, use the branch CR25610 for testing, please.
Any news or questions or remarks are welcome!

The script:

#New Ocaf document.
NewDocument D XmlOcaf
AISInitViewer D
UndoLimit D 100

#Make a box, display it and start selection of its faces.
box b 100 100 100
NewCommand D
SetShape D 0:1 b
AISSet D 0:1 NS
AISDisplay D 0:1
AISSelectionMode D 0:1 4
NewCommand D

#Undo/redo.
Undo D
Redo D

kgv

2016-11-19 09:06

developer   ~0060565

Dear bugmaster,

please close the bug as not reproducible.

git

2016-12-07 11:25

administrator   ~0061176

Branch CR25610 has been deleted by kgv.

SHA-1: eed3ab4e20b617a01bd9e9ce34b54952ad4b753b

Issue History

Date Modified Username Field Change
2014-12-13 16:06 Vico Liang New Issue
2014-12-13 16:06 Vico Liang Assigned To => szy
2014-12-13 16:10 Vico Liang Note Added: 0035392
2014-12-13 16:17 Vico Liang Note Added: 0035393
2014-12-14 17:34 Vico Liang Note Added: 0035396
2015-04-30 11:34 abv Target Version 6.9.0 => 7.1.0
2015-12-30 16:01 szy Assigned To szy => vro
2015-12-30 16:01 szy Status new => assigned
2016-02-09 11:13 git Note Added: 0050512
2016-02-09 11:20 vro Note Added: 0050514
2016-02-25 14:18 vro Assigned To vro => Vico Liang
2016-02-25 14:18 vro Status assigned => feedback
2016-11-03 17:13 abv Target Version 7.1.0 => 7.2.0
2016-11-19 09:06 kgv Note Added: 0060565
2016-11-19 09:06 kgv Assigned To Vico Liang => bugmaster
2016-11-19 09:06 kgv Resolution open => unable to reproduce
2016-11-19 09:06 kgv Target Version 7.2.0 =>
2016-11-22 09:41 abv Status feedback => closed
2016-12-07 11:25 git Note Added: 0061176