Bug 89601 - Crash when trying to view properties of a field in a report
Summary: Crash when trying to view properties of a field in a report
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:4.5.0
Keywords: haveBacktrace, regression
Depends on:
Blocks:
 
Reported: 2015-02-23 23:10 UTC by Julien Nabet
Modified: 2015-02-27 19:52 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Nabet 2015-02-23 23:10:23 UTC
On pc Debian x86-64 with master sources updated yesterday (debug mode), I've got a crash when trying to view properties of a field report.

bt extract:
#6  0x00002aaaabcb6872 in __cxa_call_unexpected () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00002aaae3a30a42 in pcr::FormComponentPropertyHandler::actuatingPropertyChanged (this=0x69987f0, _rActuatingPropertyName="FormatKey", _rNewValue=uno::Any 10000, 
    _rxInspectorUI=uno::Reference to (pcr::CachedInspectorUI *) 0x6a6e7a8, _bFirstTimeInit=1 '\001')
    at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/formcomponenthandler.cxx:1521
#8  0x00002aaae04e960a in rptui::ReportComponentHandler::actuatingPropertyChanged (this=0x6998b00, ActuatingPropertyName="FormatKey", NewValue=uno::Any 10000, 
    OldValue=uno::Any 10000, InspectorUI=uno::Reference to (pcr::CachedInspectorUI *) 0x6a6e7a8, FirstTimeInit=1 '\001')
    at /home/julien/compile-libreoffice/libreoffice/reportdesign/source/ui/inspection/ReportComponentHandler.cxx:204
#9  0x00002aaae3a89ea3 in pcr::OPropertyBrowserController::impl_broadcastPropertyChange_nothrow (this=0x6972ab0, _rPropertyName="FormatKey", _rNewValue=uno::Any 10000, 
    _rOldValue=uno::Any 10000, _bFirstTimeInit=true) at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/propcontroller.cxx:1737
#10 0x00002aaae3a87020 in pcr::OPropertyBrowserController::UpdateUI (this=0x6972ab0)
    at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/propcontroller.cxx:1267
#11 0x00002aaae3a85316 in pcr::OPropertyBrowserController::impl_rebindToInspectee_nothrow (this=0x6972ab0, _rObjects=std::__debug::vector of length 1, capacity 1 = {...})
    at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/propcontroller.cxx:967
#12 0x00002aaae3a81b84 in pcr::OPropertyBrowserController::inspect (this=0x6972ab0, _rObjects=uno::Sequence of length 1 = {...})
    at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/propcontroller.cxx:284
#13 0x00002aaae051d19c in rptui::PropBrw::implSetNewObject (this=0x69653d0, _aObjects=uno::Sequence of length 1 = {...})
    at /home/julien/compile-libreoffice/libreoffice/reportdesign/source/ui/report/propbrw.cxx:318
#14 0x00002aaae051e58d in rptui::PropBrw::Update (this=0x69653d0, pNewView=0x3327f90)
    at /home/julien/compile-libreoffice/libreoffice/reportdesign/source/ui/report/propbrw.cxx:521
#15 0x00002aaae050f02a in rptui::ODesignView::MarkTimeout (this=0x2f6b820) at /home/julien/compile-libreoffice/libreoffice/reportdesign/source/ui/report/DesignView.cxx:271
#16 0x00002aaae050efab in rptui::ODesignView::LinkStubMarkTimeout (pThis=0x2f6b820, pCaller=0x2f6d818)
    at /home/julien/compile-libreoffice/libreoffice/reportdesign/source/ui/report/DesignView.cxx:267

Breakpoint 1, pcr::FormComponentPropertyHandler::actuatingPropertyChanged (this=0x69987f0, _rActuatingPropertyName="FormatKey", _rNewValue=uno::Any 10000, 
    _rxInspectorUI=uno::Reference to (pcr::CachedInspectorUI *) 0x6a6e7a8, _bFirstTimeInit=1 '\001')
    at /home/julien/compile-libreoffice/libreoffice/extensions/source/propctrlr/formcomponenthandler.cxx:1523
1523	        if ( !_rxInspectorUI.is() )
(gdb) n
1526	        ::osl::MutexGuard aGuard( m_aMutex );
(gdb) 
1527	        PropertyId nActuatingPropId( impl_getPropertyId_nothrow( _rActuatingPropertyName ) );
(gdb) 
1529	        ::std::vector< PropertyId > aDependentProperties;
(gdb) 
1531	        switch ( nActuatingPropId )
(gdb) 
1742	            Reference< XNumberFormatsSupplier >  xSupplier;
(gdb) 
1743	            OSL_VERIFY( m_xComponent->getPropertyValue( PROPERTY_FORMATSSUPPLIER ) >>= xSupplier );
(gdb) 
terminate called after throwing an instance of 'com::sun::star::beans::UnknownPropertyException'
Comment 1 Julien Nabet 2015-02-23 23:11:28 UTC
I put tdf#89536 in See Also because it might be related (except that the exception is not caught in this one)
Comment 2 raal 2015-02-24 14:54:40 UTC
I can not confirm with Version: 4.5.0.0.alpha0+
Build ID: a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-02-23_02:34:05
I can show properties of report field in my database.
Comment 3 Julien Nabet 2015-02-24 15:12:12 UTC
raal: do you use a debug build? Indeed, the crash seems to come from OSL_VERIFY line (see my previous comment).
Comment 4 raal 2015-02-24 15:26:58 UTC
(In reply to Julien Nabet from comment #3)
> raal: do you use a debug build? Indeed, the crash seems to come from
> OSL_VERIFY line (see my previous comment).

took build from here : http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@46-TDF/current/
Comment 5 Alex Thurgood 2015-02-25 15:33:29 UTC
@Julien : how do you view the properties of the field in the report :

- via keyboard switch ?
- via menu ? 
- via toolbar toggle button ?

or doesn't it matter ?


Alex
Comment 6 Alex Thurgood 2015-02-25 15:38:27 UTC
Forget my questions, I  get a spinning beach ball hand, then forced exit on OSX with my master debug build so confirming.

1) Open an ODB file containing a report
2) Open the report for editing.
3) Click on the Properties toolbar toggle button to switch on the Properties view pane.
4) Select a field in the report to attempt to display its properties in the view pane.

Hang/crash.
Comment 7 Julien Nabet 2015-02-27 18:42:07 UTC
Fixed with http://cgit.freedesktop.org/libreoffice/core/commit/?id=fa6c09877ed6502593de2f73541d91f31c8feea1
Thank you Stephan!