Created attachment 114116 [details]
bt + additional gdb
On pc Debian x86-64 with master sources updated 2 days ago, I've got a crash when opening 1st form of this attachment https://bugs.freedesktop.org/attachment.cgi?id=94532
I attached bt + interesting lines from gdb session.
DbTimeField::updateFromModel (this=0x3187c80, _rxModel=uno::Reference to (frm::TimeFieldColumn *) 0x3326d38)
2387 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbTimeField::updateFromModel: invalid call!" );
2389 util::Time aTime;
2390 if ( _rxModel->getPropertyValue( FM_PROP_DATE ) >>= aTime )
Stephan: I remember your patch http://cgit.freedesktop.org/libreoffice/core/commit/?id=fa6c09877ed6502593de2f73541d91f31c8feea1 which fixed the regression 5d05f7ed8582193c39e29b7dc16767fb850e9f28
I wonder if it could be the same kind of regression.
I can confirm crash with Version: 184.108.40.206.alpha0+
Build ID: 7f3628e54d4470cac6d51659d1b1bec5fb4f4e70
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-03-14_00:35:32
I can open report but LO crashes when click Next record.
Thank you Raal for the confirmation.
I don't reproduce this with LO Debian package 220.127.116.11->regression.
The call to DbTimeField::updateFromModel from DbCellControl::Init (both in svx/source/fmcomp/gridcell.cxx) got introduced with <http://cgit.freedesktop.org/libreoffice/core/commit/?id=42b809228dc0971c4280871728e37261abab62da> "On init of DbCellControl, load value from Model."
What is odd about DbTimeField::updateFromModel is that it uses FM_PROP_DATE (aka "Date") instead of FM_PROP_TIME (aka "Time") as DbTimeField::commitControl does, and that "Date" then causes the uncaught UnknownPropertyException. Looks like this is a copy/paste error between DbDateField::updateFromModel and DbTimeField::updateFromModel ever since <http://cgit.freedesktop.org/libreoffice/core/commit/?id=fba11e39f9f5b7d418969d414093ea7f7e1000ca> "#98012# #98171# some major changes - no, the DbCellControl (and derivees) is (are) a listener at the relevant model properties like ReadOnly, Text, Value aso."
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":
tdf#90029: FM_PROP_DATE/TIME confusion
It will be available in 4.5.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
This rings a bell, I get the impression I recently fixed exactly the same confusion betweeen Time and Date property, certainly at another place in the code.
(In reply to Lionel Elie Mamane from comment #6)
> This rings a bell, I get the impression I recently fixed exactly the same
> confusion betweeen Time and Date property, certainly at another place in the
It was exactly there, it is in my uncommitted changes... My bad.