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

            Bug ID: 149626
           Summary: HANG during basic macro using
                    com.sun.star.datatransfer.dnd
           Product: LibreOffice
           Version: 7.3.4.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: dominic.coo...@domelia.co.uk

Description:
A basic macro which has worked for the last 10 years now hangs indefinitely.

Event listeners are registered using com.sun.star.awt.Toolkit
addDropTargetListener.

Subroutines are in place to handle all the com.sun.star.datatransfer.dnd
events.

Previously if something was dragged onto the form, the listener would trigger,
and the code would check to see if dropping was allowed (using a global
variable which in my code is called boolFileStorage). If so, the filename was
obtained and passed through to another routine.

Now, since version 7.3.4.2 (via Fedora 36), upon a dragover, Libreoffice is
immediately unresponsive. The basic IDE inbuilt debugger is no use as that
freezes also. For that reason I am unable to work out which listener (if any)
is hanging.

My use case is within LibreOffice BASE, but I have copied and pasted the Macro
into a Writer document which displays the same buggy behaviour.

Steps to Reproduce:
1.Open sample document (attached)
2.Press the push button (to register the event handlers)
3.Drag a file onto the document

Actual Results:
Libreoffice hangs and all windows unresponsible without a kill -9 or "Force
Quit"

Expected Results:
Drag icon should change to show that dropping is allowed; if the file is
dropped on to the window, in the test code it should show the filename and a
message box (in my production code it calls other routines).


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.4.2
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.17; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to