Bug 153501 - Crash when trying to do WollMux mail merge
Summary: Crash when trying to do WollMux mail merge
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Stephan Bergmann
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-09 14:28 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2023-02-09 20:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2023-02-09 14:28:46 UTC
-1. Install WollMux.oxt from https://github.com/LibreOffice/WollMux/releases/tag/RELEASE_18.2.10 
0. Install WollMux Config to ~/.wollmux from https://github.com/LibreOffice/wollmux-config/releases/tag/v18.1.0
1. Open Writer with WollMux installed
2. Go to Sidebar deck "WollMux Seriendruck"
3. Click "File ..." button in sidebar
4. Choose .wollmux/config/vorlagen/standard/30.Bienchen/Beispieldaten für Serienbrief.ods -> Calc opens
5. Go back to Writer
6. Click "Print ..." in sidebar
6. Click "E-Mails verschicken" in dialog
7. Click "Einzeldaten erzeugen" in dialog

-> Crash


warn:legacy.osl:173823:173823:svtools/source/uno/wizard/unowizard.cxx:319: Wizard::enableButtons: invalid dialog implementation!
warn:svtools.uno:173823:173823:svtools/source/uno/wizard/wizardshell.cxx:120: DBG_UNHANDLED_EXCEPTION in enterState exception: com.sun.star.uno.RuntimeException message: "not implemented at include/vcl/weldutils.hxx:71
java stack trace:
	at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
	at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
	at jdk.proxy1/jdk.proxy1.$Proxy51.setPosSize(Unknown Source)
	at de.muenchen.allg.itd51.wollmux.mailmerge.printsettings.MailmergeWizardController.onActivatePage(MailmergeWizardController.java:195)
	at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
	at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
	at jdk.proxy1/jdk.proxy1.$Proxy134.execute(Unknown Source)
	at de.muenchen.allg.itd51.wollmux.mailmerge.printsettings.MailmergeWizardController.startWizard(MailmergeWizardController.java:215)
	at de.muenchen.allg.itd51.wollmux.mailmerge.sidebar.MailMergeController.lambda$print$9(MailMergeController.java:614)
	at java.base/java.util.Optional.ifPresent(...
Comment 1 Samuel Mehrbrodt (allotropia) 2023-02-09 14:30:19 UTC
Crash happens with gtk3, but not with gen.
Comment 2 Samuel Mehrbrodt (allotropia) 2023-02-09 15:01:46 UTC
Seems to be a different thing that triggers the crash. 

@Stephan, any idea?

#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff783bc46 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007ffff78227fc in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ffff7efe397 in rtl::str::newFromStr<_rtl_String>(_rtl_String**, std::remove_extent<decltype (_rtl_String::buffer)>::type const*) (ppThis=0x7fffffff08b0, pCharStr=0x0)
    at sal/rtl/strtmpl.hxx:990
#6  0x00007ffff7efa9d8 in rtl_string_newFromStr(rtl_String**, char const*) (ppThis=0x7fffffff08b0, pCharStr=0x0) at sal/rtl/string.cxx:575
#7  0x00007fffe790af1b in rtl::OString::OString<char const*>(char const* const&, rtl::libreoffice_internal::CharPtrDetector<char const*, rtl::libreoffice_internal::Dummy>::Type)
    (this=0x7fffffff08b0, value=@0x7fffffff08b8: 0x0) at include/rtl/string.hxx:309
#8  0x00007fffe795a480 in (anonymous namespace)::GtkInstanceAssistant::set_page_index(rtl::OString const&, int) (this=0x55555f85c1a0, rIdent="1", nNewIndex=1)
    at vcl/unx/gtk3/gtkinst.cxx:7698
#9  0x00007ffff050b2aa in vcl::RoadmapWizardMachine::implUpdateRoadmap() (this=0x55555fcb3cf0) at vcl/source/control/roadmapwizard.cxx:474
#10 0x00007ffff050a5c2 in vcl::RoadmapWizardMachine::activatePath(short, bool) (this=0x55555fcb3cf0, _nPathId=2, _bDecideForIt=true) at vcl/source/control/roadmapwizard.cxx:291
#11 0x00007ffff2a8f2f3 in svt::uno::WizardShell::activatePath(short, bool) (this=0x55555fcb3cf0, i_nPathID=2, i_bFinal=true) at svtools/source/uno/wizard/wizardshell.hxx:78
#12 0x00007ffff2a8e8e1 in (anonymous namespace)::Wizard::activatePath(sal_Int16, sal_Bool) (this=0x55555fc46670, i_PathIndex=2, i_Final=1 '\001')
    at svtools/source/uno/wizard/unowizard.cxx:429
#13 0x00007fffe6c6d191 in gcc3::callVirtualMethod(void*, unsigned int, void*, _typelib_TypeDescriptionReference*, bool, unsigned long*, unsigned int, unsigned long*, double*)
    (pThis=0x55555fc46778, nVtableIndex=17, pRegisterReturn=0x0, pReturnTypeRef=0x555555612520, bSimpleReturn=true, pStack=0x7fffffff0c40, nStack=0, pGPR=0x7fffffff0db0, pFPR=0x7fffffff0de0)
    at bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx:77
#14 0x00007fffe6c6bc1a in cpp_call(bridges::cpp_uno::shared::UnoInterfaceProxy*, bridges::cpp_uno::shared::VtableSlot, typelib_TypeDescriptionReference*, sal_Int32, typelib_MethodParameter*, void*, void**, uno_Any**) (pThis=0x55555e20c950, aVtableSlot=..., pReturnTypeRef=0x555555612520, nParams=2, pParams=0x55555e6d0280, pUnoReturn=0x0, pUnoArgs=0x7fffffff0f10, ppUnoExc=0x7fffffff0fc0)
    at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:233
#15 0x00007fffe6c6c72f in bridges::cpp_uno::shared::unoInterfaceProxyDispatch(uno_Interface*, typelib_TypeDescription const*, void*, void**, uno_Any**)
    (pUnoI=0x55555e20c950, pMemberDescr=0x55555d80e4e0, pReturn=0x0, pArgs=0x7fffffff0f10, ppException=0x7fffffff0fc0) at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:413
#16 0x00007fffc0052cad in jni_uno::Bridge::call_uno(jni_uno::JNI_context const&, _uno_Interface*, _typelib_TypeDescription*, _typelib_TypeDescriptionReference*, int, _typelib_MethodParameter const*, _jobjectArray*) const (this=0x55555beba740, jni=..., pUnoI=0x55555e20c950, member_td=0x55555d80e4e0, return_type=0x555555612520, nParams=2, pParams=0x55555e6d0280, jo_args=0x7fffffff13c8)
    at bridges/source/jni_uno/jni_java2uno.cxx:243
#17 0x00007fffc0053cd1 in Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call(JNIEnv*, jobject, jlong, jstring, jobjectArray)
    (jni_env=0x55555fc46140, jo_proxy=0x7fffffff13b0, bridge_handle=93825102751552, jo_method=0x7fffffff13c0, jo_args=0x7fffffff13c8) at bridges/source/jni_uno/jni_java2uno.cxx:481
Comment 3 Commit Notification 2023-02-09 19:58:34 UTC
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6ed7a3cc51e560c6b2a6894f6829c0ac9f991ef2

tdf#153501 Fix OString construction from nullptr

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.