Review Request 128406: KCollapsibleGroupBox: Stop animation if still running in destructor

Elvis Angelaccio elvis.angelaccio at kdemail.net
Fri Jul 8 19:44:03 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128406/#review97225
-----------------------------------------------------------



+1
This seems to fix the crash on the Ark side. 
To adapt the unit test here, maybe is enough to expand the collapsible box and then delete the widget?

- Elvis Angelaccio


On July 8, 2016, 7:29 p.m., Ragnar Thomsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128406/
> -----------------------------------------------------------
> 
> (Updated July 8, 2016, 7:29 p.m.)
> 
> 
> Review request for KDE Frameworks, David Edmundson and Elvis Angelaccio.
> 
> 
> Repository: kwidgetsaddons
> 
> 
> Description
> -------
> 
> We are using KCollapsibleGroupBox in Ark and stumbled upon a segfault in an autotest involving this widget (see backtrace [here](https://paste.kde.org/pwcohd64z)). It looks like QTimeLine::stop() gets called after KCollapsibleGroupBox is deleted. This causes QTimeLine::stateChanged to get emitted which then calls KCollapsibleGroupBox::updateChildrenVisibility() that causes the crash.
> 
> To see the crash, clone the newAddDialog branch of Ark and run the autotests.
> 
> This diff calls QTimeLine::stop() in the KCollapsibleGroupBox dtor if it is running, before deleting the d pointer.
> 
> 
> Diffs
> -----
> 
>   src/kcollapsiblegroupbox.cpp 0c3f866 
> 
> Diff: https://git.reviewboard.kde.org/r/128406/diff/
> 
> 
> Testing
> -------
> 
> The autotests in newAddDialog branch of Ark pass with this diff.
> 
> 
> Thanks,
> 
> Ragnar Thomsen
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160708/4d194cd8/attachment.html>


More information about the Kde-frameworks-devel mailing list