Apache OpenOffice (AOO) Bugzilla – Issue 85662
RPT: Application hung when D&D of field
Last modified: 2008-03-10 11:09:03 UTC
Using 680M4, SRB 1.0.2, XP A few of times the application has hung when using the Report Builder - the scenario is when adding a field to an existing report by drag and drop from the add fields window to the report. Specific steps this last time ( as best as I can explain ) - the cursor moves over an existing field on the report, the background of that field turns red, stop the cursor over top of the field and pause for a moment then move it off the field and back over. The red background of the field will not change when you leave it again - you can not drop the new field and the application hangs. OO.o does generate a crash report - but I am attaching a copy of the crash report files generated by MS Windows when I kill the process.
Sorry the MS generated files are much to large to attach, since it includes a dump file. You can pull down a copy of the file at: http://www.paintedfrogceramics.com/OpenOffice/QA/ooo_hang_1_28.zip
I am attaching a database with a report that I can cause this problem with almost every time. Also a screen shot of the report builder when it happens. The steps to cause the hang - open the report Invoice_1, open the Add fields window, select the field 'Line Total' - start to drag it so that it will be placed in the group footer below 'Line Total' in the detail section. If you go slow, and drop as soon as you hit the footer section it may not hang - but you will see that 2 controls stay with red backgrounds when the cursor passed over them - move the cursor back over top a second time - or move it to the page footer section..move it around a bit in other words and then try to drop it in the group footer - 4 out of 6 times I got a hung system with CPU at 100%
Created attachment 51218 [details] bug doc database
Created attachment 51219 [details] Screen shot of SRB when system hangs
can reproduce. It seems to hang reliably as soon as you dragged over a control in one section (which stays red), and drop in another section. fs->lla: - open the attached database document - open the Invoice_1 report in edit mode - from the "Add Field" window, drag the "Line Total" item - still holding the mouse button down, drag it over any of the controls in the detail section - still holding the mouse button down, drag it over the group footer ("InvoiceID Footer"). Note that the control in the details section stays red - release the mouse button => OOo freezes
LLA: very ease to check, simply drag something out of Add Field window near the right. The problem is, that now the Label and the TextField are no longer set left and right but up and down. The check algorithm has a problem here and tries endless to find a better position. This will be fixed.
fixed. To check the new code: - via D&D take a element out of Add Field window and drop it near the right border, label will occur below the textfield. - repeat this three times - now drop a element left from the last three ones. The label and textfield should be dropped under the other. Endless loop should not occur anymore.
verified.
Tested with m_10 under XP and Linux and SRB 1.0.2 Closing