<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
When i tried Slolution 1,it worked. <span style="font-family: Calibri, sans-serif; font-size: 14.6667px; display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted1">
Hossein Nourikhah, t</span>hank you very much. Kevin Suo, Thank you very much too. </div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>发件人:</b> Hossein Nourikhah <hossein@libreoffice.org><br>
<b>发送时间:</b> 2023年7月21日 22:03<br>
<b>收件人:</b> Kevin Suo <suokunlong@126.com><br>
<b>抄送:</b> libreoffice@lists.freedesktop.org <libreoffice@lists.freedesktop.org>; 赵 晓东 <xiaodongzhaoneu@hotmail.com><br>
<b>主题:</b> Re: [Help] Exception occurred, When debugging LibreOffice by VS Code on ubuntu (gnome desktop) . can't debug by vscode nomally.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hello,<br>
<br>
I think there is something wrong with the VS Code installation. A <br>
similar question is asked, and answered here:<br>
<br>
Java: symbol lookup error: <br>
/snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined <br>
symbol: __libc_pthread_init, version GLIBC_PRIVATE<br>
<a href="https://stackoverflow.com/q/75921414" data-auth="NotApplicable">https://stackoverflow.com/q/75921414</a><br>
<br>
Solution 1: Ignore the path set for GTK. Invoke "unset GTK_PATH" or tune <br>
it in the settings.json according to the instructions.<br>
Solution 2: Install VS Code without snap. For example, using .deb files.<br>
Solution 3: Use gen UI for debugging: "instdir/program/soffice <br>
-env:SAL_USE_VCLPLUGIN=gen"<br>
<br>
Regards,<br>
Hossein<br>
<br>
On 21.07.2023 03:24, Kevin Suo wrote:<br>
> Could someone on the list take look at the error Zhao Xiao has<br>
> encountered when he is debugging in VS Code. He is a newcomer and is<br>
> preparing to contribute on CJK bug fixing.<br>
> <br>
> Kevin Suo<br>
> <br>
> 于 2023年7月18日 GMT+08:00 下午12:07:26, "赵 晓东"<br>
> <xiaodongzhaoneu@hotmail.com> 写到:<br>
> <br>
>> [ENV]<br>
>> OS: Ubuntu 22.04.2 LTS<br>
>> LibreOffice: 7.5.5.1<br>
>> VS Code: 1.80.1<br>
>> <br>
>> [Compile Command]<br>
>> ./autogen.sh --enable-debug --disable-ldap<br>
>> make<br>
>> <br>
>> [GDB Debug is OK]<br>
>> make debug<br>
>> run --writer<br>
>> <br>
>> [When running libreoffice on VS Code terminal, exception occurred]<br>
>> it@it-hp-desktop02:~/dev/libreoffice_dev/libreoffice-7.5.5.1$<br>
>> ./instdir/program/soffice<br>
>> <br>
>> <br>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/soffice.bin:<br>
>> symbol lookup error:<br>
>> /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined<br>
>> symbol: __libc_pthread_init, version GLIBC_PRIVATE<br>
>> <br>
>> [When debugging by VS Code, exception occurred]<br>
>> <br>
>> Thread 1 "soffice.bin" hit Breakpoint 4, InitVCL () at<br>
>> <br>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/vcl/source/app/svmain.cxx:357<br>
>> <br>
>> 357 pSVData->mpDefInst->AfterAppInit();<br>
>> Loaded<br>
>> <br>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/libvclplug_gtk3lo.so'.<br>
>> Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libgtk-3.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libgdk-3.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libpango-1.0.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0'. Symbols<br>
>> loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libatk-1.0.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0'. Symbols<br>
>> loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libXi.so.6'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libXfixes.so.3'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libcairo-gobject.so.2'. Symbols<br>
>> loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0'. Symbols<br>
>> loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libepoxy.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libfribidi.so.0'. Symbols loaded.<br>
>> Loaded '/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libharfbuzz.so.0'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libXinerama.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libXrandr.so.2'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libXcursor.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libXcomposite.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libXdamage.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libxkbcommon.so.0'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-cursor.so.0'. Symbols<br>
>> loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-egl.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libwayland-client.so.0'. Symbols<br>
>> loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libthai.so.0'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libjpeg.so.8'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libatspi.so.0'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libgraphite2.so.3'. Symbols loaded.<br>
>> <br>
>> Loaded '/lib/x86_64-linux-gnu/libdatrie.so.1'. Symbols loaded.<br>
>> <br>
>> Loaded<br>
>> <br>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/libgcc3_uno.so'.<br>
>> Symbols loaded.<br>
>> <br>
>> Loaded<br>
>> <br>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/../program/libconfigmgrlo.so'.<br>
>> Symbols loaded.<br>
>> <br>
>> Loaded<br>
>> <br>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/../program/liblocalebe1lo.so'.<br>
>> Symbols loaded.<br>
>> <br>
>> Thread 1 "soffice.bin" hit Breakpoint 2, GtkSalData::Init<br>
>> (this=0x5555555ee330) at<br>
>> <br>
> /home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/vcl/unx/gtk3/gtkdata.cxx:544<br>
>> <br>
>> <br>
>> 544 gtk_init_check( &nParams, &pCmdLineAry );<br>
>> <br>
>> [Thread 0x7fffe66d6640 (LWP 8690) exited]<br>
>> <br>
>> <br>
> =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"<br>
>> <br>
>> <br>
>> <br>
> =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"<br>
>> <br>
>> <br>
>> [Thread 0x7fffefbd7100 (LWP 8609) exited]<br>
>> <br>
>> [Thread 0x7fffe5ed5640 (LWP 8691) exited]<br>
>> <br>
>> [New process 8609]<br>
>> <br>
>> [Inferior 1 (process 8609) exited with code 0177]<br>
>> <br>
>> The program<br>
>> <br>
> '/home/it/dev/libreoffice_dev/libreoffice-7.5.5.1/instdir/program/soffice.bin'<br>
>> has exited with code 177 (0x000000b1).<br>
<br>
-- <br>
Hossein Nourikhah, Ph.D., Developer Community Architect<br>
Tel: +49 30 5557992-65 | Email: hossein@libreoffice.org<br>
The Document Foundation, Winterfeldtstraße 52, 10781 Berlin, DE<br>
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts<br>
Legal details: <a href="https://www.documentfoundation.org/imprint" data-auth="NotApplicable">
https://www.documentfoundation.org/imprint</a><br>
</div>
</span></font></div>
</body>
</html>