Created attachment 120619 [details] Python script to connect to LibreOffice On x64 LO only, the connection through PyUNO makes LO crash. Crash on: - Official LibreOffice 5.0.3 x64 - LibreOffice 5.1.0.0.aplha1 x64 - LibreOffice 5.0.0.1 x64 Works fine on: - Official LibreOffice 5.0.3 x86 Here is the backtrace when it crashes: Traceback (most recent call last): File "python\Danny.py", line 98, in <module> getDesktop() File "python\Danny.py", line 95, in getDesktop StarDesktop = createUnoService( "com.sun.star.frame.Desktop" ) File "python\Danny.py", line 83, in createUnoService oObj = oServiceManager.createInstance( cClass ) __main__.RuntimeException: Binary URP bridge disposed during call The debugguer says that it crashes in cppu3.dll
LO is started with: C:\Program Files\LibreOffice 5\program\soffice.exe -accept=socket,host=localhost,port=8100;urp;StarOffice.ComponentContext Attached python script danny.py is started with: C:\Program Files\LibreOffice 5\program\python.exe danny.py
Created attachment 120817 [details] Backtrace of crash on Windows, LibO 5.0.3 Got a backtrace of the crash. Win 7 Pro 64-bit, Version: 5.0.3.2 (x64) Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75 Locale: fi-FI (fi_FI)
Stephan Bergmann committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=27f5679c84602713e74c947d88e72cfafc02fbc8 tdf#95903: Fix return value handling in msvc_win32_x86-64 bridge It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Stephan Bergmann committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=289a8c4c14403322d69240962704bcda4e49e892&h=libreoffice-5-1 tdf#95903: Fix return value handling in msvc_win32_x86-64 bridge It will be available in 5.1.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
requested backport to libreoffice-5-0 towards LO 5.0.5 at <https://gerrit.libreoffice.org/20723>
Stephan Bergmann committed a patch related to this issue. It has been pushed to "libreoffice-5-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=80acb57d5c60abd3a07b2674d1c30f926d311513&h=libreoffice-5-0 tdf#95903: Fix return value handling in msvc_win32_x86-64 bridge It will be available in 5.0.5. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.