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.69k stars 654 forks source link

Switching language can hang session #6580

Closed thebearon closed 1 year ago

thebearon commented 1 year ago

This occurred on the demo.eu servers with 23.05.

Try opening a document, and switching language to something else.

-> Session hangs, typing not possible.

Could be that this is some kind of installation problem (lacking some components), and the UI is trying to show a message dialog that hasn't been tunneled that hangs the UI.

mmeeks commented 1 year ago

Trace is:

#0  0x00007f02e03e06a8 in BigPtrEntry::GetPos (this=<optimized out>)
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/o3tl/strong_int.hxx:86
#1  SwNode::GetIndex (this=<optimized out>) at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/inc/node.hxx:312
#2  FindParentText(SwShellCursor const&) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/core/crsr/crsrsh.cxx:717
#3  0x00007f02e03e3300 in SwCursorShell::StartsWith_ (this=this@entry=0x55dcd1616110)
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/core/crsr/crsrsh.cxx:876
#4  0x00007f02e03ea979 in SwCursorShell::EndAction(bool) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/core/crsr/crsrsh.cxx:245
#5  0x00007f02e05f5357 in SwEditShell::EndAllAction (this=this@entry=0x55dcd1616110)
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/core/edit/edws.cxx:102
#6  0x00007f02e05b64d0 in SwEditShell::SetDefault (this=this@entry=0x55dcd1616110, rFormatHint=...)
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/core/edit/edatmisc.cxx:89
#7  0x00007f02e0d3d4c6 in SwLangHelper::SetLanguage(SwWrtShell&, OutlinerView const*, ESelection const&, std::basic_string_view<char16_t, std::char_traits<char16_t> >, bool, SfxItemSet&) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sw/source/uibase/shells/langhelper.cxx:274
#8  0x00007f02e0d3dea2 in SwLangHelper::SetLanguage (rWrtSh=..., rLangText=..., bIsForSelection=bIsForSelection@entry=false, rCoreSet=...)
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/editeng/editdata.hxx:118
#9  0x00007f02e0d6520a in SwTextShell::Execute(SfxRequest&) () at /opt/rh/devtoolset-10/root/usr/include/c++/10/string_view:133
#10 0x00007f02eba5a0ef in SfxDispatcher::Call_Impl(SfxShell&, SfxSlot const&, SfxRequest&, bool) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sfx2/source/control/dispatch.cxx:254
#11 0x00007f02eba612a9 in SfxDispatcher::Execute_(SfxShell&, SfxSlot const&, SfxRequest&, SfxCallMode) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/o3tl/typed_flags_set.hxx:167
#12 0x00007f02eba63e90 in SfxDispatcher::Execute(unsigned short, SfxCallMode, SfxItemSet const*, SfxItemSet const*, unsigned short) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/sfx2/source/control/dispatch.cxx:813
#13 0x00007f02eba98def in SfxDispatchController_Impl::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/sfx2/ctrlitem.hxx:63
#14 0x00007f02eba992b2 in SfxOfficeDispatch::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/com/sun/star/uno/Reference.hxx:118
#15 0x00007f02ead8490c in comphelper::dispatchCommand(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) () at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/include/com/sun/star/uno/Reference.h:384
#16 0x00007f02ead84b38 in comphelper::dispatchCommand(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) ()
    at /home/collabora/jenkins/workspace/build_core_co-23.05_for_online_snapshot/comphelper/source/misc/dispatchcommand.cxx:76
#17 0x00007f02ebd79d97 in doc_postUnoCommand () at /opt/rh/devtoolset-10/root/usr/include/c++/10/bits/stl_vector.h:918
#18 0x000055dc9cb15813 in ChildSession::unoCommand(StringVector const&) ()
#19 0x000055dc9cb35161 in ChildSession::_handleInput(char const*, int) ()
#20 0x000055dc9cbae365 in Session::handleMessage(std::vector<char, std::allocator<char> > const&) ()
#21 0x000055dc9cb7ea39 in Document::forwardToChild(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<char, std::allocator<char> > const&) ()
#22 0x000055dc9cb80624 in Document::drainQueue() ()

Glad this is reproducible though =)
mistmist commented 1 year ago

this was a regression from core commit d81379db730a163c5ff75d4f3a3cddbd7b5eddda "tdf#154877 sw: generalise ExtendedSelectAll()" and should be fixed by https://gerrit.libreoffice.org/c/core/+/152797

mmeeks commented 1 year ago

Thanks so much Michael !