CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.8k stars 690 forks source link

unexpected empty auth dialog #9453

Closed mmeeks closed 2 months ago

mmeeks commented 3 months ago

Opened an existing file; just one user - editing with:

COOLWSD version: 24.04.4.4snapshot (git hash: 07bc101) LOKit version: Collabora Office 24.04.4.20240706 (git hash: 9723c93) Served by: Ubuntu 22.04.4 LTS

Got a "Document cannot be saved" message and then:

image

pkill -USR1 of the kit process shows:

Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Windows: 3 Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Window: no notifier { "id": "", "type": "borderwindow", "text": "Authentication Required", "enabled": true, "children": [ { "id": "LoginDialog", "type": "dialog", "text": "Authentication Required", "enabled": true, "children": [ { "id": > Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Window: no notifier { "id": "", "type": "borderwindow", "text": "", "enabled": true, "visible": false, "children": [ { "id": "", "type": "listboxwindow", "text": "", "enabled": true, "visible": false, "children": [ { "id": "", "type": "l> Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Window: no notifier { "id": "", "type": "borderwindow", "text": "", "enabled": true, "visible": false, "children": [ { "id": "", "type": "listboxwindow", "text": "", "enabled": true, "visible": false, "children": [ { "id": "", "type": "l> Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Window: sfxviewsh: 10bb0fa0 doc: 0 view: 4 { "id": "", "type": "borderwindow", "text": "Michael-Lily.odt — Collabora Office Writer", "enabled": false, "children": [ { "id": "", "type": "workwindow", "text": "Michael-Lily.odt — Collabora > Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Window: no notifier { "id": "", "type": "borderwindow", "text": "VCL ImplGetDefaultWindow", "enabled": true, "visible": false, "children": [ { "id": "", "type": "workwindow", "text": "VCL ImplGetDefaultWindow", "enabled": true, "visible"> Jul 08 10:21:50 ip-172-31-14-76 coolwsd[17414]: Image Manager items: 9 size: 0 kb

mmeeks commented 3 months ago
Thread 7 (Thread 0x78ee1bfff640 (LWP 17673) "utl::Moderator"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x11be7cd8) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x11be7cd8) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x11be7cd8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x11be7ce0, cond=0x11be7cb0) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x11be7cb0, mutex=0x11be7ce0) at ./nptl/pthread_cond_wait.c:627
#5  0x000078ee3c8ac747 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from target:/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x000078ee3514caeb in std::condition_variable::wait<osl_waitCondition(oslCondition, const TimeValue*)::<lambda()> > (__p=..., __lock=..., this=0x11be7cb0) at /opt/rh/devtoolset-12/root/usr/include/c++/12/condition_variable:102
#7  osl_waitCondition (Condition=0x11be7cb0, pTimeout=0x0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sal/osl/unx/conditn.cxx:125
#8  0x000078ee35f6ce39 in osl::Condition::wait (pTimeout=0x0, this=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/osl/conditn.hxx:123
#9  salhelper::ConditionWaiter::ConditionWaiter (this=this@entry=0x78ee1bfedc90, aCond=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/salhelper/source/condition.cxx:86
#10 0x000078ee39aa4cfe in utl::(anonymous namespace)::Moderator::handle (this=0x11bee370, Request=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucblockbytes.cxx:512
#11 0x000078ee29d9afed in http_dav_ucp::DAVAuthListener_Impl::authenticate (this=this@entry=0x78ee0c006cd0, inRealm=..., inHostName=..., inoutUserName=..., outPassWord=..., bCanUseSystemCredentials=bCanUseSystemCredentials@entry=false, bUsePreviousCredentials=true) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx:75
#12 0x000078ee29d63417 in http_dav_ucp::CurlProcessor::ProcessRequest (rSession=..., rURI=..., rMethod=..., rOptions=..., pEnv=<optimized out>, pRequestHeaderList=..., pxOutStream=<optimized out>, pxInStream=<optimized out>, pRequestedHeaders=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/CurlSession.cxx:1429
#13 0x000078ee29d827f5 in http_dav_ucp::CurlSession::HEAD (this=this@entry=0x78ee0c19ddc0, rURIReference=..., rHeaderNames=..., io_rResource=..., rEnv=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/CurlSession.cxx:1841
#14 0x000078ee29d97299 in http_dav_ucp::DAVResourceAccess::HEAD (this=0x78ee0c11ee80, rHeaderNames=..., rResource=..., xEnv=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/DAVResourceAccess.cxx:341
#15 0x000078ee29da6685 in http_dav_ucp::Content::isResourceAvailable (xEnv=..., rResAccess=..., rDAVOptions=...) at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/unique_ptr.h:191
#16 0x000078ee29d6b1b2 in http_dav_ucp::Content::getResourceOptions (this=0x11891ba0, xEnv=..., rDAVOptions=..., rResAccess=..., networkAccessAllowed=0x0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/webdavcontent.cxx:4165
#17 0x000078ee29db2c05 in http_dav_ucp::Content::open (this=0x11891ba0, rArg=..., xEnv=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/webdavcontent.cxx:2255
#18 0x000078ee29db9e6f in http_dav_ucp::Content::execute (this=0x11891ba0, aCommand=..., Environment=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucb/source/ucp/webdav-curl/webdavcontent.cxx:539
#19 0x000078ee398e3db3 in ucbhelper::Content_Impl::executeCommand (this=0x11be7d70, rCommand=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucbhelper/source/client/content.cxx:1264
#20 0x000078ee398e61df in ucbhelper::Content::executeCommand (this=this@entry=0x11bee418, rCommandName=..., rCommandArgument=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/rtl/ref.hxx:214
#21 0x000078ee39aa2c3e in utl::(anonymous namespace)::Moderator::run (this=0x11bee370) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucblockbytes.cxx:580
#22 0x000078ee37ad5fae in osl::threadFunc (param=0x11bee370) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/osl/thread.hxx:189
#23 0x000078ee35177de3 in osl_thread_start_Impl (pData=0x11be7e90) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sal/osl/unx/thread.cxx:237
#24 0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#25 0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 6 (Thread 0x78ee20bf9640 (LWP 17672) "WakeUpThread"):
#0  __futex_abstimed_wait_common64 (private=1008427808, cancel=true, abstime=0x78ee20be8d10, op=393, expected=0, futex_word=0x1088a980) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=1008427808, abstime=0x78ee20be8d10, clockid=0, expected=0, futex_word=0x1088a980) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x1088a980, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x78ee20be8d10, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493e9b in __pthread_cond_wait_common (abstime=0x78ee20be8d10, clockid=0, mutex=0x78ee3c227ec0 <(anonymous namespace)::SharedWakeUpThread::getMutex()::mutex>, cond=0x1088a958) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_timedwait64 (cond=0x1088a958, mutex=0x78ee3c227ec0 <(anonymous namespace)::SharedWakeUpThread::getMutex()::mutex>, abstime=0x78ee20be8d10) at ./nptl/pthread_cond_wait.c:652
#5  0x000078ee38323427 in __gthread_cond_timedwait (__abs_timeout=0x78ee20be8d10, __mutex=0x78ee3c227ec0 <(anonymous namespace)::SharedWakeUpThread::getMutex()::mutex>, __cond=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/x86_64-redhat-linux/bits/gthr-default.h:872
#6  std::__condvar::wait_until (__abs_time=..., __m=..., this=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/std_mutex.h:162
#7  std::condition_variable::__wait_until_impl<std::chrono::duration<long, std::ratio<1l, 1000000000l> > > (__lock=..., __atime=<synthetic pointer>..., this=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/condition_variable:221
#8  std::condition_variable::wait_until<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > (__atime=..., __lock=..., this=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/condition_variable:134
#9  std::condition_variable::wait_until<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> >, (anonymous namespace)::SharedWakeUpThread::execute()::<lambda()> > (__p=..., __atime=..., __lock=..., this=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/condition_variable:151
#10 std::condition_variable::wait_for<long int, std::ratio<1, 1000>, (anonymous namespace)::SharedWakeUpThread::execute()::<lambda()> > (__rtime=..., __p=..., __lock=..., this=0x1088a958) at /opt/rh/devtoolset-12/root/usr/include/c++/12/condition_variable:174
#11 (anonymous namespace)::SharedWakeUpThread::execute (this=0x1088a930) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/framework/source/helper/wakeupthread.cxx:68
#12 0x000078ee35f6d20f in salhelper::Thread::run (this=0x1088a930) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/salhelper/source/thread.cxx:39
#13 0x000078ee35f6dd54 in osl::threadFunc (param=0x1088a940) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/osl/thread.hxx:189
#14 0x000078ee35177de3 in osl_thread_start_Impl (pData=0x11b621f0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sal/osl/unx/thread.cxx:237
#15 0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#16 0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 5 (Thread 0x78ee23386640 (LWP 17631) "kitbroker_099"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x78ee23375d60, op=393, expected=0, futex_word=0x10877bbc) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x78ee23375d60, clockid=544500075, expected=0, futex_word=0x10877bbc) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x10877bbc, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x78ee23375d60, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493e9b in __pthread_cond_wait_common (abstime=0x78ee23375d60, clockid=0, mutex=0x10877b68, cond=0x10877b90) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_timedwait64 (cond=0x10877b90, mutex=0x10877b68, abstime=0x78ee23375d60) at ./nptl/pthread_cond_wait.c:652
#5  0x00000000005aaac5 in Watchdog::checkTime() ()
#6  0x0000000000ae0633 in ?? ()
#7  0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#8  0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 4 (Thread 0x78ee22479640 (LWP 17630) "kitbroker_099"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x3f0dd04, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x3f0dcb0, cond=0x3f0dcd8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x3f0dcd8, mutex=0x3f0dcb0) at ./nptl/pthread_cond_wait.c:627
#5  0x000078ee3c8ac747 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from target:/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000005e7993 in ThreadPool::work() ()
#7  0x0000000000ae0633 in ?? ()
#8  0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x78ee21c78640 (LWP 17629) "kitbroker_099"):
--Type <RET> for more, q to quit, c to continue without paging--
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x3f0dd04, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x3f0dcb0, cond=0x3f0dcd8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x3f0dcd8, mutex=0x3f0dcb0) at ./nptl/pthread_cond_wait.c:627
#5  0x000078ee3c8ac747 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from target:/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000005e7993 in ThreadPool::work() ()
#7  0x0000000000ae0633 in ?? ()
#8  0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x78ee21477640 (LWP 17628) "kitbroker_099"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x3f0dd04) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x3f0dd04, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x000078ee3c493a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x3f0dcb0, cond=0x3f0dcd8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x3f0dcd8, mutex=0x3f0dcb0) at ./nptl/pthread_cond_wait.c:627
#5  0x000078ee3c8ac747 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from target:/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000005e7993 in ThreadPool::work() ()
#7  0x0000000000ae0633 in ?? ()
#8  0x000078ee3c494ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x000078ee3c526850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x78ee3caa17c0 (LWP 17414) "kitbroker_099"):
#0  0x000078ee3c518cce in __ppoll (fds=0x1181f9a0, nfds=3, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:42
#1  0x000000000067b54f in SocketPoll::poll(long) ()
#2  0x00000000005d09cd in KitSocketPoll::kitPoll(int) ()
#3  0x000078ee3a1598fd in SvpSalInstance::ImplYield (this=<optimized out>, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/headless/svpinst.cxx:430
#4  0x000078ee3a159b4d in SvpSalInstance::DoYield (this=0x158d280, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/headless/svpinst.cxx:471
#5  0x000078ee39fb37b1 in ImplYield (i_bWait=<optimized out>, i_bAllEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/app/svapp.cxx:396
#6  0x000078ee39bc20a7 in Dialog::Execute (this=0x11ff6b50) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/window/dialog.cxx:1078
#7  0x000078ee39f65db0 in virtual thunk to SalInstanceDialog::run() () at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/inc/salvtables.hxx:544
#8  0x000078ee39abb5ad in weld::DialogController::run (this=0x7ffcf4743630) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/vcl/weld.hxx:2675
#9  (anonymous namespace)::executeLoginDialog (rRealm=..., rInfo=..., pParent=0x10f959b0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/iahndl-authentication.cxx:111
#10 (anonymous namespace)::handleAuthenticationRequest_ (pParent=0x10f959b0, xIH=..., xContext=..., rRequest=..., rContinuations=..., rURL=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/iahndl-authentication.cxx:263
#11 0x000078ee39abc7f7 in UUIInteractionHelper::handleAuthenticationRequest (this=this@entry=0x11b8ae88, rRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/iahndl-authentication.cxx:600
#12 0x000078ee39ab748d in UUIInteractionHelper::handleRequest_impl (this=0x11b8ae88, rRequest=..., bObtainErrorStringOnly=<optimized out>, bHasErrorString=@0x7ffcf4743f30: false, rErrorString=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/iahndl.cxx:763
#13 0x000078ee39ab808d in UUIInteractionHelper::handleRequest (this=this@entry=0x11b8ae88, rRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/iahndl.cxx:177
#14 0x000078ee39ac93ec in (anonymous namespace)::UUIInteractionHandler::handle (this=0x11b8ae40, rRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/uui/source/interactionhandler.cxx:194
#15 0x000078ee37b28cbb in comphelper::SimpleFileAccessInteraction::intercepted (this=<optimized out>, aRequest=..., xRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/comphelper/source/misc/simplefileaccessinteraction.cxx:95
#16 0x000078ee398e9f2b in ucbhelper::InterceptedInteraction::impl_interceptRequest (this=0x11be17d0, xRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucbhelper/source/client/interceptedinteraction.cxx:117
#17 0x000078ee398e9fdb in ucbhelper::InterceptedInteraction::impl_handleDefault (this=<optimized out>, xRequest=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/ucbhelper/source/client/interceptedinteraction.cxx:69
#18 0x000078ee39aa6ea1 in utl::UCBOpenContentSync (xInteract=..., xSink=..., rArg=..., xContent=..., xLockBytes=<synthetic pointer>...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucblockbytes.cxx:769
#19 utl::UcbLockBytes::CreateLockBytes (xContent=..., rProps=..., eOpenMode=eOpenMode@entry=StreamMode::READ, xInteractionHandler=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucblockbytes.cxx:1321
#20 0x000078ee39aaa4c5 in utl::lcl_CreateStream (rFileName=..., eOpenMode=StreamMode::READ, xInteractionHandler=..., bEnsureFileExists=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucbstreamhelper.cxx:118
#21 0x000078ee39aaab00 in utl::UcbStreamHelper::CreateStream (rFileName=..., eOpenMode=eOpenMode@entry=StreamMode::READ, xParentWin=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/unotools/source/ucbhelper/ucbstreamhelper.cxx:148
#22 0x000078ee39ebf029 in vcl::graphic::loadFromURL (rURL=..., pParentWin=pParentWin@entry=0x10f959b0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/graphic/GraphicLoader.cxx:26
#23 0x000078ee388b9326 in sfx2::LinkManager::GetGraphicFromAny (this=<optimized out>, rMimeType=..., rValue=..., rGraphic=..., pParentWin=pParentWin@entry=0x10f959b0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/appl/linkmgr2.cxx:538
#24 0x000078ee2c2cf578 in SwBaseLink::DataChanged (this=<optimized out>, rMimeType=..., rValue=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/docnode/swbaslnk.cxx:115
#25 0x000078ee2c2cf23d in SwBaseLink::SwapIn (this=this@entry=0x10c762e0, bWaitForData=bWaitForData@entry=false, bNativFormat=bNativFormat@entry=false) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/docnode/swbaslnk.cxx:251
#26 0x000078ee2c3ade4e in SwGrfNode::SwapIn (this=0x10c03ab0, bWaitForData=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/graphic/ndgrf.cxx:438
#27 0x000078ee2c3adfc1 in SwGrfNode::GetGrf (this=0x10c03ab0, bWait=bWait@entry=false) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/graphic/ndgrf.cxx:360
#28 0x000078ee2c6b7e89 in SwXFrame::getPropertyValue (this=0x11b78fb0, rPropertyName=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/unocore/unoframe.cxx:2122
#29 0x000078ee3a5f36d0 in XMLTextParagraphExport::_exportTextGraphic (this=<optimized out>, rPropSet=..., rPropSetInfo=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:3523
#30 0x000078ee3a5fe6f2 in XMLTextParagraphExport::exportAnyTextFrame (this=0x11696270, rTxtCntnt=..., eType=XMLTextParagraphExport::FrameType::Graphic, bAutoStyles=<optimized out>, bIsProgress=<optimized out>, bExportContent=<optimized out>, pRangePropSet=0x7ffcf4744fc8) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:3264
#31 0x000078ee3a5fd5f0 in XMLTextParagraphExport::exportTextGraphic (pRangePropSet=0x7ffcf4744fc8, bAutoStyles=false, rTextContent=..., this=0x11696270) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/xmloff/txtparae.hxx:570
#32 XMLTextParagraphExport::exportTextContentEnumeration (this=<optimized out>, rContEnum=..., bAutoStyles=false, rBaseSection=..., bIsProgress=true, bExportParagraph=true, pRangePropSet=0x7ffcf4744fc8, eExtensionNS=TextPNS::ODF) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:2040
#33 0x000078ee3a5f601b in XMLTextParagraphExport::exportTextRangeEnumeration (this=0x11696270, rTextEnum=..., bAutoStyles=false, bIsProgress=true, rPrevCharIsSpace=@0x7ffcf4745240: true) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:2465
#34 0x000078ee3a5fa4bb in XMLTextParagraphExport::exportParagraph (this=<optimized out>, rTextContent=..., bAutoStyles=<optimized out>, bIsProgress=<optimized out>, bExportParagraph=<optimized out>, rPropSetHelper=..., eExtensionNS=TextPNS::ODF) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:2385
#35 0x000078ee3a5fd478 in XMLTextParagraphExport::exportTextContentEnumeration (this=<optimized out>, rContEnum=..., bAutoStyles=false, rBaseSection=..., bIsProgress=true, bExportParagraph=true, pRangePropSet=0x0, eExtensionNS=TextPNS::ODF) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:2000
#36 0x000078ee3a5fda08 in XMLTextParagraphExport::exportText (this=0x11696270, rText=..., bAutoStyles=bAutoStyles@entry=false, bIsProgress=<optimized out>, bExportParagraph=bExportParagraph@entry=true, eExtensionNS=eExtensionNS@entry=TextPNS::ODF) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/text/txtparae.cxx:1856
#37 0x000078ee2c92601f in XMLTextParagraphExport::exportText (eExtensionNS=TextPNS::ODF, bExportParagraph=true, bIsProgress=<optimized out>, rText=..., this=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/xmloff/txtparae.hxx:494
#38 SwXMLExport::ExportContent_ (this=0x119f9d70) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/xmlexp.cxx:513
#39 0x000078ee3a308509 in SvXMLExport::ImplExportContent (this=0x119f9d70) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/core/xmlexp.cxx:1159
#40 0x000078ee3a30a590 in SvXMLExport::exportDoc (this=this@entry=0x119f9d70, eClass=eClass@entry=xmloff::token::XML_TEXT) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/core/xmlexp.cxx:1397
#41 0x000078ee2c9280fd in SwXMLExport::exportDoc (this=0x119f9d70, eClass=xmloff::token::XML_TEXT) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/xmlexp.cxx:286
#42 0x000078ee3a3060f6 in SvXMLExport::filter (this=0x119f9d70, aDescriptor=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/xmloff/source/core/xmlexp.cxx:815
#43 0x000078ee2c91d790 in SwXMLWriter::WriteThroughComponent (xOutputStream=..., xComponent=..., rxContext=..., pServiceName=0x78ee2cdb0d58 "com.sun.star.comp.Writer.XMLOasisContentExporter", rArguments=..., rMediaDesc=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_sn--Type <RET> for more, q to quit, c to continue without paging--
apshot/sw/source/filter/xml/wrtxml.cxx:577
#44 0x000078ee2c91e0c6 in SwXMLWriter::WriteThroughComponent (this=<optimized out>, xComponent=..., pStreamName=<optimized out>, rxContext=..., pServiceName=0x78ee2cdb0d58 "com.sun.star.comp.Writer.XMLOasisContentExporter", rArguments=..., rMediaDesc=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/wrtxml.cxx:526
#45 0x000078ee2c91f371 in SwXMLWriter::Write_ (this=0x11b62170, pMediumItemSet=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/wrtxml.cxx:386
#46 0x000078ee2c920f06 in SwXMLWriter::WriteMedium (this=0x11b62170, aTargetMedium=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/wrtxml.cxx:470
#47 0x000078ee2c9095ab in StgWriter::Write (this=this@entry=0x11b62170, rPaM=..., rStg=..., pFName=pFName@entry=0x0, pMedium=pMedium@entry=0x116b39c0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/writer/writer.cxx:497
#48 0x000078ee2c91b991 in SwXMLWriter::Write (this=0x11b62170, rPaM=..., rMed=..., pFileName=0x0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/xml/wrtxml.cxx:478
#49 0x000078ee2c84635d in SwWriter::Write (this=this@entry=0x7ffcf4747160, rxWriter=..., pRealFileName=pRealFileName@entry=0x0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/filter/basflt/shellio.cxx:872
#50 0x000078ee2c985a4f in SwDocShell::SaveAs (this=0x10a77f10, rMedium=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/uibase/app/docsh.cxx:542
#51 0x000078ee38aca782 in SfxObjectShell::SaveAsOwnFormat (this=0x10a77f10, rMedium=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/doc/objstor.cxx:3378
#52 0x000078ee38ad3e36 in SfxObjectShell::SaveTo_Impl (this=0x10a77f10, rMedium=..., pSet=0x7ffcf4747810) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/doc/objstor.cxx:1520
#53 0x000078ee38ad6258 in SfxObjectShell::DoSave_Impl (this=0x10a77f10, pArgs=0x7ffcf4747810) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/doc/objstor.cxx:2760
#54 0x000078ee38b0e6fa in SfxBaseModel::storeSelf (this=0x109caff0, aSeqArgs=...) at /opt/rh/devtoolset-12/root/usr/include/c++/12/optional:306
#55 0x000078ee38a96a31 in SfxStoringHelper::GUIStoreModel (this=this@entry=0x11af4b10, xModel=..., aSlotName=..., aArgsSequence=..., bPreselectPassword=bPreselectPassword@entry=false, nDocumentSignatureState=SignatureState::NOSIGNATURES, bIsAsync=false) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/doc/guisaveas.cxx:1556
#56 0x000078ee38ab7b40 in SfxObjectShell::ExecFile_Impl (this=0x10a77f10, rReq=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/doc/objserv.cxx:1092
#57 0x000078ee3891f36f in SfxDispatcher::Call_Impl (this=0x10bcb230, rShell=..., rSlot=..., rReq=..., bRecord=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/control/dispatch.cxx:254
#58 0x000078ee3892742a in SfxDispatcher::Execute (this=0x10bcb230, nSlot=<optimized out>, nCall=nCall@entry=SfxCallMode::SYNCHRON, pArgs=pArgs@entry=0x7ffcf47483b0, pInternalArgs=pInternalArgs@entry=0x7ffcf4748350, nModi=0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sfx2/source/control/dispatch.cxx:813
#59 0x000078ee38964da5 in SfxDispatchController_Impl::dispatch (this=<optimized out>, aURL=..., aArgs=..., rListener=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/sfx2/ctrlitem.hxx:63
#60 0x000078ee37af8a07 in comphelper::dispatchCommand (rCommand=..., rFrame=..., rArguments=..., rListener=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/comphelper/source/misc/dispatchcommand.cxx:56
#61 0x000078ee37af8b55 in comphelper::dispatchCommand (rCommand=..., rArguments=..., rListener=...) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/comphelper/source/misc/dispatchcommand.cxx:76
#62 0x000078ee38c8fe90 in doc_postUnoCommand (pThis=<optimized out>, pCommand=<optimized out>, pArguments=<optimized out>, bNotifyWhenFinished=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/desktop/source/lib/init.cxx:5435
#63 0x0000000000573ad5 in ChildSession::unoCommand(StringVector const&) ()
#64 0x00000000005922d8 in ChildSession::_handleInput(char const*, int) ()
#65 0x0000000000616258 in Session::handleMessage(std::vector<char, std::allocator<char> > const&) ()
#66 0x00000000005cf17c in Document::forwardToChild(std::string const&, std::vector<char, std::allocator<char> > const&) ()
#67 0x00000000005d0459 in Document::drainQueue() ()
#68 0x00000000005d09f8 in KitSocketPoll::kitPoll(int) ()
#69 0x000078ee3a1598fd in SvpSalInstance::ImplYield (this=<optimized out>, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/headless/svpinst.cxx:430
#70 0x000078ee3a159b4d in SvpSalInstance::DoYield (this=0x158d280, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/headless/svpinst.cxx:471
#71 0x000078ee39fb37b1 in ImplYield (i_bWait=<optimized out>, i_bAllEvents=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/app/svapp.cxx:396
#72 0x000078ee39fb3f65 in Application::Execute () at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/app/svapp.cxx:374
#73 0x000078ee38c1b07a in desktop::Desktop::Main (this=0x7ffcf474b4f0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/desktop/source/app/app.cxx:1605
#74 0x000078ee39fbcc91 in ImplSVMain () at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/app/svmain.cxx:229
#75 0x000078ee38c3e96c in soffice_main () at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/desktop/source/app/sofficemain.cxx:94
#76 0x000078ee38c54bb5 in lo_runLoop (pPollCallback=0x5d10b0 <pollCallback(void*, int)>, pWakeCallback=0x5c02c0 <wakeCallback(void*)>, pData=0x10a524e0) at /home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/desktop/source/lib/init.cxx:7568
#77 0x00000000005d817b in lokit_main(std::string const&, std::string const&, std::string const&, std::string const&, bool, bool, bool, bool, unsigned long) ()
#78 0x00000000005a411a in ?? ()
#79 0x00000000005a5bad in forkLibreOfficeKit(std::string const&, std::string const&, std::string const&) ()
#80 0x00000000005a9721 in forkit_main(int, char**) ()
#81 0x000078ee3c429d90 in __libc_start_call_main (main=main@entry=0x568230 <main>, argc=argc@entry=9, argv=argv@entry=0x7ffcf474d3e8) at ../sysdeps/nptl/libc_start_call_main.h:58
#82 0x000078ee3c429e40 in __libc_start_main_impl (main=0x568230 <main>, argc=9, argv=0x7ffcf474d3e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcf474d3d8) at ../csu/libc-start.c:392
#83 0x000000000056cc22 in _start ()
mmeeks commented 3 months ago

It's slightly amazing to be paging in remote images from URLs we need to authenticate as - during the save process. @vmiklos did something change there recently - I would expect save to just save what we have and/or what we got, and not do that sort of thing =)

@Ezinnem Can you come up with a clean test document that has an image embedded to a remote system that requires authentication - that we can use in manual testing in future ? =) Saving appears to trigger badness there.

eszkadev commented 3 months ago

This should be fixed by: https://gerrit.libreoffice.org/c/core/+/170159 (by fixed I mean, the dialog should work now, I don't look into any remote image fetching code)

Steps to reproduce:

  1. open website behind basic authentication (browser will ask in native popup about user and password)
  2. ctrl+a and ctrl+c to select all and copy (it should contain some graphics pointing to the content behind authentication)
  3. open COOL, paste

Result: dialog appears

vmiklos commented 3 months ago

@vmiklos did something change there recently

Hmm, no, I'm not aware of a recent change in this area.

eszkadev commented 2 months ago

should be fixed now

mmeeks commented 2 months ago

If this happens during a swap-in in a background save; hopefully we will terminate the process, and fall-back to synchronous save: at least - we should =) @Ezinnem worth testing I think.

Ezinnem commented 2 months ago

I tested fine using: COOLWSD version: 24.04.5.1 (git hash: 48bf0bf (E)) LOKit version: Collabora Office 24.04.5.1 (git hash: 1a3f037 )

Sample file: Writer-with-Embedded-image-and-Linked-image.odt