Issue 85662 - RPT: Application hung when D&D of field
Summary: RPT: Application hung when D&D of field
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOH680m4
Hardware: All Windows XP
: P2 Trivial (vote)
Target Milestone: OOo 2.4
Assignee: lars.langhans
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks: 84957
  Show dependency tree
 
Reported: 2008-01-29 05:33 UTC by drewjensen.inbox
Modified: 2008-03-10 11:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
bug doc database (152.05 KB, application/vnd.sun.xml.base)
2008-01-29 06:00 UTC, drewjensen.inbox
no flags Details
Screen shot of SRB when system hangs (73.66 KB, image/png)
2008-01-29 06:02 UTC, drewjensen.inbox
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description drewjensen.inbox 2008-01-29 05:33:34 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.
Comment 1 drewjensen.inbox 2008-01-29 05:41:21 UTC
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
Comment 2 drewjensen.inbox 2008-01-29 05:59:57 UTC
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%
Comment 3 drewjensen.inbox 2008-01-29 06:00:57 UTC
Created attachment 51218 [details]
bug doc database
Comment 4 drewjensen.inbox 2008-01-29 06:02:13 UTC
Created attachment 51219 [details]
Screen shot of SRB when system hangs
Comment 5 Frank Schönheit 2008-01-29 09:05:58 UTC
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
Comment 6 lars.langhans 2008-01-30 09:41:14 UTC
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.
Comment 7 lars.langhans 2008-01-30 13:02:43 UTC
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.
Comment 8 lars.langhans 2008-01-31 08:24:06 UTC
verified.
Comment 9 drewjensen.inbox 2008-03-10 11:09:03 UTC
Tested with m_10 under XP and Linux and SRB 1.0.2
Closing