Dear Maintainer, stardict does not start in gnome wayland. Every time I start it, I crashes with a message "Segmentation fault". However, I does start in gnome for xorg. But it crashes when scan option is turned on with the same "Segmentation fault" message. This is true for every user. It works well when I log in as another user both in wayland and xorg, i.e., another user logs into my gnome environment , or I log into other's desktop environment, to start stardict. *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines ***
Hi, Thansk for your report. 在 2022/1/14 11:29, Quanlin Jie 写道: Another user is OK? How about create a new user then login into gnome wayland? Is it still crashes with a message "Segmentation fault"?
Dear Maintainer, For newly created users, the problem is the same.
On a testing/trixie system, stardict fails to start with the following: XDXF data parsing plug-in [loaded]. Gucharmap plug-in [loaded]. HTML data parsing plug-in [loaded]. Dict.cn network dictionary plug-in [loaded]. YouDao.com network dictionary plug-in [loaded]. WordNet data parsing plug-in [loaded]. Man plug-in [loaded]. QQWry plug-in [loaded]. Multi Command plug-in [loaded]. PowerWord data parsing plug-in [loaded]. User dict plug-in [loaded]. Espeak-ng plug-in [loaded]. Wiki data parsing plug-in [loaded]. WordNet dict rendering plug-in [loaded]. Update info plug-in [loaded]. Flite TTS plug-in [loaded]. bookname: StarDict dictionary, wordcount 9 'stardict' terminated by signal SIGSEGV (Address boundary error)
Hi, Is this bug only take palace in gnome? Is this bug appear in KDE or Xfce or other desktop? Would you help run dmesg after crash? Would you try use strace to start stardict in gnome-terminal? Thanks for your bugreport! 在 2025/8/2 20:42, Maytham Alsudany 写道: Regard,
Some GUI apps has some incompatible issue with xwayland, this bug also too. For xorg and other desktop, stardict will work normal. so degrade severity to important. 在 2025/8/3 21:25, xiao sheng wen(肖盛文) 写道:
I'm using KDE on Wayland. [140645.592113] stardict[701024]: segfault at 200000041 ip 00007f18f041b594 sp 00007ffefed65ed0 error 6 in libX11.so.6.4.0[9d594,7f18f039a000+90000] likely on CPU 2 (core 4, socket 0) [140645.592121] Code: e8 b1 fd f7 ff 49 89 c4 48 85 c0 0f 84 71 fd ff ff 49 89 87 20 0a 00 00 49 8b 47 08 48 8d 0d c3 f8 ff ff 48 8d 3d b8 00 01 00 <48> 89 48 40 41 83 4c 24 04 12 e8 3d eb f7 ff 48 85 c0 0f 84 18 02 Note that just like Bug#1108467, the problem is fixed by forcing X11 mode: WAYLAND_DISPLAY="" stardict
That's exactly the other way around: this application works
perfectly fine with Xwayland emulation but crashes
with Wayland native mode.
GDK_BACKEND=x11 stardict
dict/src/stardict.cpp needs to be patched
at the very top of "int main(int argc,char **argv)"
to do a setenv("GDK_BACKEND", "x11", 1);
I believe this should be RC buggy as wayland
is now the preferred environment but I'm more
interested about the technical fix.
Greetings
Alexandre
Hi, Thanks for your quick reply! 在 2025/8/3 22:00, Maytham Alsudany 写道: Thanks let me know this. There are many old GUI apps not incompatible with wayland. This fix patch is simply: https://sources.debian.org/src/artha/1.0.5-6/debian/patches/force_x11.patch/ I'll forward this patch to upstream. Regards,
Hi, 在 2025/8/3 23:57, Alexandre Detiste 写道: Thanks for your research about this bug. I'll forward your fix suggestion to upstream too. Regards,
Hi Neither of these two workarounds are meant to be applied upstream. Upstream has plenty of time to provide real Wayland support whenever they want. My patch was meant to be included this week in Debian and make is way to Trixie. Greetings Le dim. 3 août 2025 à 18:57, <atzlinux@debian.org> a écrit :
Hi, 在 2025/8/4 01:01, Alexandre Detiste 写道: Yes, just forward to upstream for reference. Include in this week,the time is to limit and shorter[1]. It's need more time to test in real Wayland, xwayland, x11,etc,. I prefer to fix it in Debian 13.1, the next point release. Would you sent a patch? also help do so some test? [1] https://lists.debian.org/debian-devel-announce/2025/07/msg00003.html Thanks!
Hi, I just try build use the following patch:--- stardict-3.0.7+git20220909+dfsg.orig/dict/src/stardict.cpp +++ stardict-3.0.7+git20220909+dfsg/dict/src/stardict.cpp @@ -2379,6 +2379,7 @@ static void activateMe(GtkApplication *a #ifdef _WIN32 DLLIMPORT int stardict_main(HINSTANCE hInstance, int argc, char **argv) #else +setenv("GDK_BACKEND", "x11", 1); int main(int argc,char **argv) #endif { But unfortunately, it's build failed. There are many error info in the buildlog. You may see them in attachment. The patch is welcome!