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

            Bug ID: 114839
           Summary: During execution of the Document Recovery dialog,
                    Dialog::Execute() keeps looping even if nothing
                    happens
           Product: LibreOffice
           Version: 6.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If LibreOffice shows the Document Recovery dialog when it starts, while the
dialog is shown the code in Dialog::Execute() keeps looping in the while (
!xWindow->IsDisposed() && mbInExecute ) loop, calling Application::Yield()
again and again endlessly, even if the user doesn't touch anything, move the
mouse etc.

Steps to Reproduce:
Add some debugging output into Dialog::Execute() in
vcl/source/window/dialog.cxx and rebuild vcl:

    while ( !xWindow->IsDisposed() && mbInExecute )
        { SAL_DEBUG("Dialog::Execute: Calling Application::Yield()");
        Application::Yield();
        }

Run instdir/LibreOfficeDev.app/Contents/MacOS/soffice. (The started LibreOffice
will not get focus, that is another issue, and not serious, as end-users of
course aren't supposed to start LibreOffice from the Terminal by explicitly
running the soffice binary.) Hit Cmd-N to open a fresh Writer document, type a
few words, switch back to the Terminal and kill soffice with Control-C.

Run soffice again. You will see an endless loop of debug:1991:499247:
Dialog::Execute: Calling Application::Yield() even before you switch focus to
the recovery window, and while it has focus. (If you switch focus away, it will
no longer loop.)


Actual Results:  
.

Expected Results:
Once it reaches a steady state, it should not keep calling Application::Yield()
all the time while nothing happens.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7
(KHTML, like Gecko) Version/11.0.2 Safari/604.4.7

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to