Open WLCIssuesBot opened 7 years ago
Comment by Cloudef Monday Nov 16, 2015 at 09:16 GMT
Do you have wlc output as well? Most likely the terminal crashes due to unimplemented wayland protocol features in wlc.
Comment by Manouchehri Monday Nov 16, 2015 at 12:38 GMT
Not yet, wasn't sure how to get it. Does it output messages in stdout or do I have set a flag first?
Comment by Manouchehri Monday Nov 16, 2015 at 14:19 GMT
@SirCmpwn That's only for sway and not wlc, no?
Comment by SirCmpwn Monday Nov 16, 2015 at 14:20 GMT
Nah, sway will pull in the wlc logs for you, too.
Comment by Manouchehri Monday Nov 16, 2015 at 14:35 GMT
https://gist.github.com/Manouchehri/cb23ad1ba27ac550cffc
I think it starts at line 2400 or 2180. I don't see any obvious error messages though except for [wlc] libinput bug: Unable to find topmost touch
.
Comment by Cloudef Monday Nov 16, 2015 at 15:31 GMT
The log looks quite ok, this may be very likely bug in gnome-terminal. Is this reproducable in weston?
Comment by Kinokoio Tuesday Nov 17, 2015 at 03:37 GMT
Before everything, do you know if you have libgconf-2.so.4 in your system? Have you tried reproducing the bug in Xorg?
Comment by Manouchehri Tuesday Nov 17, 2015 at 03:43 GMT
@Kinokoio The GDK error explicitly says it's an error in Wayland, so I'm pretty sure I won't be able to reproduce it in Xorg.
@Cloudef My guess GTK is trying to use something that's not implemented and/or encountering a non-fatal error, but then quitting anyways. It's being triggered by wl_display_dispatch (display_wayland->wl_display) < 0
, any idea what might cause that?
Comment by Kinokoio Tuesday Nov 17, 2015 at 03:43 GMT
Do you have the file and/or function where it crashes?
Comment by Manouchehri Tuesday Nov 17, 2015 at 03:45 GMT
@Kinokoio It's listed in the first post, or click here.
Comment by Manouchehri Tuesday Nov 17, 2015 at 03:48 GMT
@Kinokoio Re: libgconf-2.so.4
, GConf is not used in GTK3 (or GNOME).
Comment by Kinokoio Tuesday Nov 17, 2015 at 03:50 GMT
Indeed, it is good info but, you don't have the complete backtrace. You get it using the command bt in gdb. Still, what trills me is the following error:
usr/lib/gnome-terminal/gnome-terminal-migration: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
Comment by Manouchehri Tuesday Nov 17, 2015 at 03:58 GMT
@Kinokoio I don't use gdb too often, what exactly do I need to do to get the stack at the moment it crashes? I usually just debug line-by-line for my own asm programs, but that's not gonna work with a huge application.
gnome-terminal-migration
is expected to fail, it happens during the application's startup and doesn't do anything harmful (from what I can tell). The package should probably be built with --disable-migration
, but I'm not the maintainer so it's not my call.
Comment by Kinokoio Tuesday Nov 17, 2015 at 04:05 GMT
When the program crashes, it takes you to the gdb command prompt. There, you can use "bt" to get the current backtrace. Unfortunately, you don't have debugging symbols, so you would get only hex addresses.
You can use the command "x" combined with a form of representation (use the help command for more) like "x/10i" "address", which will get you the next 10 asm instruction starting from that address.
Edit: Changed "<" to "\""
Comment by Manouchehri Tuesday Nov 17, 2015 at 04:06 GMT
The program does exit with 1 though, so won't the stack be empty?
Comment by Kinokoio Tuesday Nov 17, 2015 at 04:09 GMT
Sorry, I forgot about that. Place a break at the exit instruction or the gwarning macro.
Also, just installed gnome-terminal on ArchLinux and tested it both in orbment and Xorg with gconf installed. It works perfectly.
Comment by Kinokoio Tuesday Nov 17, 2015 at 04:11 GMT
Comment by Manouchehri Tuesday Nov 17, 2015 at 04:13 GMT
Ah, thanks. I'll give that a shot this week.
It runs quite well for me too, it's a rather difficult bug to trigger reliably. You have to start copy-pasting, left/right clicking and move between windows rapidly for several minutes.
Comment by Cloudef Tuesday Nov 17, 2015 at 08:27 GMT
wl_display_dispatch (display_wayland->wl_display) < 0, any idea what might cause that?
Usually if wl_display_dispatch
fails, it means connection to the compositor is broken.
Comment by nicman23 Wednesday Apr 06, 2016 at 09:12 GMT
is there an update to this? copying/ pasting is quite unreliable.
Issue by Manouchehri Monday Nov 16, 2015 at 01:34 GMT Originally opened as https://github.com/Cloudef/wlc/issues/85
I've also posted a ticket with sway as I'm not sure of the source. I'm not that experienced in software debugging, so I apologize if there's information missing.
Getting random crashes with gnome-terminal (GTK3) when I left/right click a lot and move between windows (haven't narrowed down the exact cause). It's difficult to trigger, but does happen frequency enough to be an issue.