View Issue Details

IDProjectCategoryView StatusLast Update
0025595CommunityOCCT:Visualizationpublic2015-03-31 12:01
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeveritycrash 
Status closedResolutionunable to reproduce 
PlatformWindowsOSVC++ 2013 
Product Version6.9.0 
Summary0025595: Visual3d_View Redraw crash when closing QT view widget.
DescriptionThe crash just occur in QT widget resizeEvent when closing the view. More details in picture.

void Geom3DView::resizeEvent(QResizeEvent* /*theEvent*/)
{
    if (!myOccView.IsNull())
        myOccView->MustBeResized();
}
TagsNo tags attached.
Test case number

Activities

Vico Liang

2014-12-12 12:11

developer  

kgv

2014-12-12 12:33

developer   ~0035354

Could you please provide more details about the crash:
- Can it be reproduced in Qt sample from OCCT?
- Which version of Qt is used?
- How view is closed?

From the stack it looks like the memory has been corrupted somewhere before.

Vico Liang

2014-12-12 13:05

developer   ~0035355

It can be reproducted in QT5.3. I don't try that in in QT sample. The view is closed by clicking the upper-right close button in the widget and the crash is not reproduced stablely.

Vico Liang

2014-12-16 10:25

developer   ~0035411

There is no such crash in occt6.7.1. So it's should be a new issue in OCCT6.8.0.

Vico Liang

2014-12-23 16:15

developer   ~0035607

Hi kgv,

I tried in OCCT QT sample, The issue can't be reproduced in OCCT samples even if with QT5.3. It can't be reproduced steadily in our product. Could you tell where is the possible root cause by static code analysising?

Thanks,
Vico

abv

2014-12-23 16:22

manager   ~0035609

Hello Vico, not sure my comment will be relevant in your case, but AFAIK we usually block all signals in the object when it starts to be destroyed. Otherwise, you can get sporadic situation when some signal comes to your widget while it is already in the process of destruction...

Vico Liang

2014-12-23 17:48

developer   ~0035618

Dear abv,

Thanks for your comment. so do you have strategy to correct it? Or Could you direct me to the right place of the code you mentioned in the comment? I'd like to see what happends in the destruction process.

Best,
Vico

abv

2014-12-24 10:41

manager   ~0035656

Hello Vico, the point is that the issue I mentioned is not specific to OCCT but to the application, hence you have to address it on your side.

Vico Liang

2015-03-14 07:36

developer   ~0038365

I guess the problem might be that the closed QT widget is still alive in memory and it receives message even though it's in closed state. If we force to delete the closed widget from memory, this won't occur.

kgv

2015-03-26 15:50

developer   ~0038919

Since the problem seems to be irrelevant to OCCT code, I consider to close the issue. Do you agree, Vico?

Vico Liang

2015-03-27 08:28

developer   ~0038931

Yes, I agree. Please close this issue.

kgv

2015-03-27 09:14

developer   ~0038933

Dear bugmaster,

please close the issue.

Issue History

Date Modified Username Field Change
2014-12-12 12:11 Vico Liang New Issue
2014-12-12 12:11 Vico Liang Assigned To => kgv
2014-12-12 12:11 Vico Liang File Added: Visual3d_View Redraw crash when closing QT view widget..png
2014-12-12 12:33 kgv Note Added: 0035354
2014-12-12 12:33 kgv Assigned To kgv => Vico Liang
2014-12-12 12:33 kgv Status new => feedback
2014-12-12 13:05 Vico Liang Note Added: 0035355
2014-12-16 10:25 Vico Liang Note Added: 0035411
2014-12-16 10:26 Vico Liang Assigned To Vico Liang => kgv
2014-12-23 16:15 Vico Liang Note Added: 0035607
2014-12-23 16:22 abv Note Added: 0035609
2014-12-23 17:48 Vico Liang Note Added: 0035618
2014-12-24 07:05 Vico Liang Status feedback => assigned
2014-12-24 10:41 abv Note Added: 0035656
2015-03-14 07:36 Vico Liang Note Added: 0038365
2015-03-26 15:50 kgv Note Added: 0038919
2015-03-26 15:50 kgv Assigned To kgv => Vico Liang
2015-03-26 15:50 kgv Status assigned => feedback
2015-03-27 08:28 Vico Liang Note Added: 0038931
2015-03-27 08:29 Vico Liang Assigned To Vico Liang => kgv
2015-03-27 08:29 Vico Liang Status feedback => confirmed
2015-03-27 09:14 kgv Note Added: 0038933
2015-03-27 09:14 kgv Assigned To kgv => bugmaster
2015-03-27 09:14 kgv Status confirmed => feedback
2015-03-27 09:14 kgv Resolution open => unable to reproduce
2015-03-27 09:14 kgv Target Version 6.9.0 =>
2015-03-31 12:01 abv Status feedback => closed