https://bugs.documentfoundation.org/show_bug.cgi?id=133630

Leyan <ouyang.le...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ouyang.le...@hotmail.com

--- Comment #12 from Leyan <ouyang.le...@hotmail.com> ---
(In reply to Michael Meeks from comment #7)
> Ah - I am interested of course =) but my fix was in fact a complete accident
> ;-) presumably it is a side-effect of lurking not actually destroying the
> sidebar panel widgets - but keeping them around: a vital optimization for
> mobile.
> 
> Is there a stack-trace ?

I got the same kind of crash, with slightly different repro steps. I tried to
understand what happened in the code, it seems that the ModifyListener of the
different panels sometimes (always?) stay active once created, then they try to
update the corresponding data, even if the currently selected object is not of
the correct type. This causes issues with axes especially: either an assert in
debug mode (complaining about the object type, the one in Comment 8) or an
exception otherwise.

I managed to avoid the crash I saw by adding a sanity check inside
ChartAxisPanel::updateData(), but what would be the correct way to solve this?
Just more checks on object types at each updateData? Or a way to remove
listeners without destroying the widgets?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to