-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault #10927
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
@sbradnick yeah, the xeyes works fine, i tried to run gedit on ubuntu20.04, same error occurs. Sorry that i can't upload a screenshot cause i am on another computer now. Another thing is that gnuplot and xeyes also work fine in my ubuntu20.04, and the GUI i'm using is XLaunch |
Have you tried it using WSLg (the built-in setup where |
@sbradnick i haven't. But can you be more specific?i am new to this, still got lots of stuff to learn. but i will give it a try, really appreciate your patience. |
You shouldn't need to start (or set DISPLAY for) any X server explicitly. When you launch openSUSE-Leap-15.5 and are greeted with a prompt, you should get a default |
@sbradnick OMG,it worked! I tried it in my Ubuntu20.04 and it works just fine, you can see it in the screenshot below. But in opensuse, it will take about 7 minutes when the gedit window jumps out error:(forgot to take a screenshot) (gedit:219): dconf-WARNING **: 12:33:06.542: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=9d4052a4da68484c9d84f043dd4ce96c --binary-syntax --close-stderr”: Child process exited with code 1 (gedit:219): dconf-WARNING **: 12:33:06.545: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=9d4052a4da68484c9d84f043dd4ce96c --binary-syntax --close-stderr”: Child process exited with code 1 (gedit:219): dconf-WARNING **: 12:35:34.223: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=9d4052a4da68484c9d84f043dd4ce96c --binary-syntax --close-stderr”: Child process exited with code 1 then i typed this(i used to solve similar error in ubuntu, so i wonder it maybe works in this situation too): echo "export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0" >> ~/.bashrc (gedit:358): dconf-WARNING **: 12:42:30.344: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=9d4052a4da68484c9d84f043dd4ce96c --binary-syntax --close-stderr”: Child process exited with code 1 (gedit:358): dconf-WARNING **: 12:42:30.346: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=9d4052a4da68484c9d84f043dd4ce96c --binary-syntax --close-stderr”: Child process exited with code 1 Thanks a lot for your help and advice! |
You really shouldn't need to do that, DISPLAY should be set correctly out of the gate to work for your default [non root] user. I'm also not sure if you were trying to launch |
@sbradnick This is awkward cause when i got back to my desktop, the probelm changed to another one(XLaunch closed)...
to rule out all possible issues, i tested following codes in ubuntu:
root@DESKTOP-A4H0TLA:
root@DESKTOP-A4H0TLA:
Also, an interesting thing. no matter which ip address i export to, all 'xeyes' works fine with XLanuch open |
You're mixing and matching methodologies too much to adequately rule anything out or find a root cause. Also, this concept of "guest user" is concerning. As you run through 'firstboot' when installing openSUSE Leap 15.5, you (should have!) setup a non-root user and THAT USER is the one you should have a prompt for when launching the distro. You really seem to be complicating this by insisting on using root and throwing a non-WSLg X server into the mix. I'd suggest stopping all XLaunch processes and launching Leap w/ the non-root user (really should be the default), or you can force it with
and seeing what It does seem 2.0.14.0 can exhibit issues w/ WSLg and the usage of the
|
@sbradnick First i really appreciate your patience, hope i didn't drive you crazy (hah), it seems that i may be wrong even at the first step, so i am going to reinstall the whole distro and packages by 'non-ROOT' this time, and also uninstall XLaunch too. hope i make less mistakes...Anyway, thanks again. |
@sbradnick I reinstall the opensuse-leap and ubuntu20.04, and set the default user as non-root user. In opensuse, i run by following codes: #FOR X11 AND XT FONTS #FOR GEDIT, GNOME AND X11 XT the error pumps out : zjlcfd@DESKTOP-A4H0TLA: but finally i solved this by update my WSL and installed the cmake-gui: in opensuse distr this time it works, so is the 'camke-gui' the WSLg-X server that you mentioned? also, do you think something related to version of wsl? before that i never tried to update my WSL, when the problem was solved, also found that the interface of powershell changed a little, so maybe i have been using the old version of WSL2 which cause those problem? |
I'm on Win11 and using the latest version of WSLv2 (WSLv1 isn't enabled on purpose, to keep things simple 😛) - maybe these issues you're having come from Win10 and and old revision of WSL. What does The only issue I'm having is with WSLg and the |
@sbradnick
Finally this problem is gone, again thanks for giving me those useful advices, especially the principle ones. Hope the problem on your WSLg to be fixed soon. |
Windows Version
Microsoft Windows [Version 10.0.19045.3803]
WSL Version
WSL2
Are you using WSL 1 or WSL 2?
Kernel Version
5.10.16
Distro Version
openSUSE-Leap-15.5
Other Software
Name : gedit
Version : 40.1
Release : 150400.4.3.1
Architecture: x86_64
Repro Steps
trying to run gedit in openSUSE
DESKTOP-A4H0TLA:/etc # sudo zypper in -t pattern wsl_gui
Loading repository data...
Reading installed packages...
'pattern:wsl_gui' is already installed.
DESKTOP-A4H0TLA:/etc # sudo zypper in gedit nautilus
Loading repository data...
Reading installed packages...
'nautilus' is already installed.
DESKTOP-A4H0TLA:/etc # gedit
Segmentation fault
Expected Behavior
try to use gedit in WSL2
Actual Behavior
DESKTOP-A4H0TLA:/etc # gedit
Segmentation fault
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: