回复: [Help] Exception occurred, When debugging LibreOffice by VS Code on ubuntu (gnome desktop) . can't debug by vscode nomally.
赵 晓东
xiaodongzhaoneu at hotmail.com
Tue Jul 25 08:49:32 UTC 2023
When i tried Slolution 1,it worked. Hossein Nourikhah, thank you very much. Kevin Suo, Thank you very much too.
________________________________
发件人: Hossein Nourikhah <hossein at libreoffice.org>
发送时间: 2023年7月21日 22:03
收件人: Kevin Suo <suokunlong at 126.com>
抄送: libreoffice at lists.freedesktop.org <libreoffice at lists.freedesktop.org>; 赵 晓东 <xiaodongzhaoneu at hotmail.com>
主题: Re: [Help] Exception occurred, When debugging LibreOffice by VS Code on ubuntu (gnome desktop) . can't debug by vscode nomally.
Hello,
I think there is something wrong with the VS Code installation. A
similar question is asked, and answered here:
Java: symbol lookup error:
/snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined
symbol: __libc_pthread_init, version GLIBC_PRIVATE
https://stackoverflow.com/q/75921414
Solution 1: Ignore the path set for GTK. Invoke "unset GTK_PATH" or tune
it in the settings.json according to the instructions.
Solution 2: Install VS Code without snap. For example, using .deb files.
Solution 3: Use gen UI for debugging: "instdir/program/soffice
-env:SAL_USE_VCLPLUGIN=gen"
Regards,
Hossein
On 21.07.2023 03:24, Kevin Suo wrote:
> Could someone on the list take look at the error Zhao Xiao has
> encountered when he is debugging in VS Code. He is a newcomer and is
> preparing to contribute on CJK bug fixing.
>
> Kevin Suo
>
> 于 2023年7月18日 GMT+08:00 下午12:07:26, "赵 晓东"
> <xiaodongzhaoneu at hotmail.com> 写到:
>
>> [ENV]
>> OS: Ubuntu 22.04.2 LTS
>> LibreOffice: 7.5.5.1
>> VS Code: 1.80.1
>>
>> [Compile Command]
>> ./autogen.sh --enable-debug --disable-ldap
>> make
>>
>> [GDB Debug is OK]
>> make debug
>> run --writer
>>
>> [When running libreoffice on VS Code terminal, exception occurred]
>> it at it-hp-desktop02:~/dev/libreoffice_dev/libreoffice-7.5.5.1$
>> ./instdir/program/soffice
>>
>>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/soffice.bin:
>> symbol lookup error:
>> /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined
>> symbol: __libc_pthread_init, version GLIBC_PRIVATE
>>
>> [When debugging by VS Code, exception occurred]
>>
>> Thread 1 "soffice.bin" hit Breakpoint 4, InitVCL () at
>>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/vcl/source/app/svmain.cxx:357
>>
>> 357 pSVData->mpDefInst->AfterAppInit();
>> Loaded
>>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/libvclplug_gtk3lo.so'.
>> Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libgtk-3.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libgdk-3.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libpango-1.0.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0'. Symbols
>> loaded.
>> Loaded '/lib/x86_64-linux-gnu/libatk-1.0.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0'. Symbols
>> loaded.
>> Loaded '/lib/x86_64-linux-gnu/libXi.so.6'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libXfixes.so.3'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libcairo-gobject.so.2'. Symbols
>> loaded.
>> Loaded '/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0'. Symbols
>> loaded.
>> Loaded '/lib/x86_64-linux-gnu/libepoxy.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libfribidi.so.0'. Symbols loaded.
>> Loaded '/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libharfbuzz.so.0'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libXinerama.so.1'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libXrandr.so.2'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libXcursor.so.1'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libXcomposite.so.1'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libXdamage.so.1'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libxkbcommon.so.0'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-cursor.so.0'. Symbols
>> loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-egl.so.1'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-client.so.0'. Symbols
>> loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libthai.so.0'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libjpeg.so.8'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libatspi.so.0'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libgraphite2.so.3'. Symbols loaded.
>>
>> Loaded '/lib/x86_64-linux-gnu/libdatrie.so.1'. Symbols loaded.
>>
>> Loaded
>>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/libgcc3_uno.so'.
>> Symbols loaded.
>>
>> Loaded
>>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/../program/libconfigmgrlo.so'.
>> Symbols loaded.
>>
>> Loaded
>>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/../program/liblocalebe1lo.so'.
>> Symbols loaded.
>>
>> Thread 1 "soffice.bin" hit Breakpoint 2, GtkSalData::Init
>> (this=0x5555555ee330) at
>>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/vcl/unx/gtk3/gtkdata.cxx:544
>>
>>
>> 544 gtk_init_check( &nParams, &pCmdLineAry );
>>
>> [Thread 0x7fffe66d6640 (LWP 8690) exited]
>>
>>
> =library-unloaded,id="/home/it/snap/code/common/.cache/gio-modules/libgiolibproxy.so",target-name="/home/it/snap/code/common/.cache/gio-modules/libgiolibproxy.so",host-name="/home/it/snap/code/common/.cache/gio-modules/libgiolibproxy.so",thread-group="i1"
>>
>>
>>
> =library-unloaded,id="/lib/x86_64-linux-gnu/libproxy.so.1",target-name="/lib/x86_64-linux-gnu/libproxy.so.1",host-name="/lib/x86_64-linux-gnu/libproxy.so.1",thread-group="i1"
>>
>>
>> [Thread 0x7fffefbd7100 (LWP 8609) exited]
>>
>> [Thread 0x7fffe5ed5640 (LWP 8691) exited]
>>
>> [New process 8609]
>>
>> [Inferior 1 (process 8609) exited with code 0177]
>>
>> The program
>>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/soffice.bin'
>> has exited with code 177 (0x000000b1).
--
Hossein Nourikhah, Ph.D., Developer Community Architect
Tel: +49 30 5557992-65 | Email: hossein at libreoffice.org
The Document Foundation, Winterfeldtstraße 52, 10781 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230725/b7f24292/attachment.htm>
More information about the LibreOffice
mailing list