Bug#837146: [gnome-tweak-tool] press alt key make gnome-tweak-tool crash

2018-02-12 Thread Yasushi SHOJI
Hi guys,

I can reproduce this problem on my Sid, so I fire up gdb to see what's
going on.  It seems to me that ibus is causing Gdk Window to be NULL.
When I removed ibus, ibus-skk and im-config from my system, GNOME
Tweaks doesn't crash anymore.

Đặng, didn't you have some input method loaded?

Detail (gdb debug seesion log) is attached.

Thanks,
--
  yashi
Source directories searched: /tmp/gtk+3.0-3.22.26/gdk:$cdir:$cwd
Reading symbols from /usr/bin/python3...Reading symbols from 
/usr/lib/debug/.build-id/e7/1f68741e22cb60c0c643ecb4feff0a38af8a5e.debug...done.
done.
Starting program: /usr/bin/python3 /usr/bin/gnome-tweaks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec37e700 (LWP 17520)]
[New Thread 0x7fffebb7d700 (LWP 17521)]
[New Thread 0x7fffeb16f700 (LWP 17522)]
[New Thread 0x7fffe8b62700 (LWP 17524)]
[New Thread 0x7fffdbfff700 (LWP 17525)]
[New Thread 0x7fffcd22b700 (LWP 17527)]
[New Thread 0x7fffcca2a700 (LWP 17528)]
[New Thread 0x7fffc7fff700 (LWP 17530)]
[Thread 0x7fffe8b62700 (LWP 17524) exited]
[Thread 0x7fffdbfff700 (LWP 17525) exited]

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x73c2a102 in gdk_window_has_impl (window=) at 
../../../../gdk/gdkwindow.c:677
677 {
672 window->parent->window_type == GDK_WINDOW_ROOT;
673 }
674 
675 gboolean
676 _gdk_window_has_impl (GdkWindow *window)
677 {
678   return gdk_window_has_impl (window);
679 }
680 
681 static gboolean
$1 = 
#0  0x73c2a102 in gdk_window_has_impl (window=) at 
../../../../gdk/gdkwindow.c:677
#1  0x73c2a102 in _gdk_window_has_impl (window=window@entry=0x0) at 
../../../../gdk/gdkwindow.c:678
#2  0x73c615ee in gdk_x11_window_get_xid (window=0x0) at 
../../../../../gdk/x11/gdkwindow-x11.c:5560
#3  0x7fffe8dc41ab in gtk_im_context_xim_filter_keypress (context=0xca61e0 
[GtkIMContextXIM], event=0x1e87000)
at ../../../../../modules/input/gtkimcontextxim.c:673
#4  0x7fffeed56af3 in gtk_im_multicontext_filter_keypress (context=0xf570c0 
[GtkIMMulticontext], event=0x1e87000)
at ../../../../gtk/gtkimmulticontext.c:359
#5  0x75c7afce in ffi_call_unix64 () at ../src/x86/unix64.S:76
#6  0x75c7a93f in ffi_call (cif=cif@entry=0x1dd4268, fn=, rvalue=, 
rvalue@entry=0x7fffce08, avalue=) at 
../src/x86/ffi64.c:525
#7  0x7667adda in pygi_invoke_c_callable (function_cache=0x1dd41c0, 
state=, py_args=, py_kwargs=) at 
../../gi/pygi-invoke.c:682
#8  0x7667c9b8 in pygi_function_cache_invoke (function_cache=, py_args=py_args@entry=(, ), py_kwargs=) at 
../../gi/pygi-cache.c:863
#9  0x7667b648 in pygi_callable_info_invoke (info=, 
py_args=py_args@entry=(, ), kwargs=, cache=, 
user_data=user_data@entry=0x0) at ../../gi/pygi-invoke.c:725
#10 0x7667b67f in _wrap_g_callable_info_invoke (self=, 
py_args=py_args@entry=(, ), kwargs=) at ../../gi/pygi-invoke.c:762
#11 0x76670c29 in _callable_info_call (self=0x7fffec5945a8, 
args=(,), kwargs=0x0)
at ../../gi/pygi-info.c:561
#12 0x0045a0d3 in _PyObject_FastCallDict (func=, args=0x7fffdb7c5928, nargs=1, kwargs=0x0)
at ../Objects/abstract.c:2331
#13 0x0054fc17 in call_function 
(pp_stack=pp_stack@entry=0x7fffd038, oparg=, 
kwnames=kwnames@entry=0x0)
at ../Python/ceval.c:4848
#14 0x005545af in _PyEval_EvalFrameDefault (f=, 
throwflag=) at ../Python/ceval.c:3322
#15 0x0054efe8 in PyEval_EvalFrameEx (throwflag=0, f=Frame 
0x7fffdb7c5788, for file /usr/lib/python3/dist-packages/gtweak/tweakview.py, 
line 196, in _after_key_press (self=, '__spec__': , 
origin='/usr/lib/python3/dist-packages/gtweak/tweakview.py', loader_state=None, 
submodule_search_locations=None, _set_fileattr=True, 
_cached='/usr/lib/python3/dist-packages/gtweak/__pycache__/tweakview.cpython-36.pyc',
 _initializing=False) at 

Bug#837146: [gnome-tweak-tool] press alt key make gnome-tweak-tool crash

2016-09-10 Thread Đặng Duy Sơn

Hello Đặng Duy Sơn.


Hi Andreas, thanks for your reply.


(Not interpretting your "segmentation fault" literally as that's pretty
unlikely for being a python application. If it is an actual segmentation
fault and given we're not being flooded in bug reports about anything
written in python crashing it's likely your custom kernel or your
hardware/ram being broken in that case.)


I think you're right. I made a clean install into my USB drive, boot on the 
same machine, tried to reproduce but failed. Maybe I did something wrong in my 
Debian.
But custom kernel reason can be excluded. I boot into my backup original Debian 
kernel and it's still happen.


I'm not able to reproduce the problem you're seeing. Could you please
give more details? If you start the application from a terminal
do you get a python backtrace?


Here is some more details. I don't get any python backtrace, just a 
segmentation fault line (I deleted some duplicate line).


➜  ~ gnome-tweak-tool -d
DEBUG   : Schema not translated org.gnome.shell (domain: gnome-shell)
...
DEBUG   : Caching gsettings: 
DEBUG   : Shell version: [3, 21, 91]
DEBUG   : Schema not translated org.gnome.shell.overrides (domain: gnome-shell)
...
DEBUG   : Caching gsettings: 
DEBUG   : No translated schema for org.gnome.desktop.interface (domain: 
gsettings-desktop-schemas)
DEBUG   : Caching gsettings: 
DEBUG   : No translated schema for org.gnome.shell.extensions.user-theme 
(domain: gnome-shell-extensions)
DEBUG   : Caching gsettings: 
DEBUG   : Shell user-theme extension
{'description': 'Load shell themes from user directory.',
 'error': '',
 'extension-id': 'user-theme',
 'gettext-domain': 'gnome-shell-extensions',
 'hasPrefs': False,
 'name': 'User Themes',
 'path': 
'/usr/share/gnome-shell/extensions/user-th...@gnome-shell-extensions.gcampax.github.com',
 'settings-schema': 'org.gnome.shell.extensions.user-theme',
 'state': 1.0,
 'type': 1.0,
 'url': 'http://git.gnome.org/gnome-shell-extensions',
 'uuid': 'user-th...@gnome-shell-extensions.gcampax.github.com'}
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.settings-daemon.plugins.power 
(domain: gnome-settings-daemon)
DEBUG   : Caching gsettings: 
INFO: GSettings missing key org.gnome.settings-daemon.plugins.power (key 
lid-close-battery-action)
INFO: GSettings missing key org.gnome.settings-daemon.plugins.power (key 
lid-close-ac-action)
INFO: GSettings missing key org.gnome.settings-daemon.plugins.power (key 
lid-close-suspend-with-external-monitor)
DEBUG   : User autostart desktop file: 
/home/xpduyson/.config/autostart/ignore-lid-switch-tweak.desktop
DEBUG   : Schema not translated org.gnome.desktop.wm.preferences (domain: 
gsettings-desktop-schemas)
DEBUG   : Caching gsettings: 
DEBUG   : No translated schema for org.gnome.desktop.background (domain: 
gsettings-desktop-schemas)
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.nautilus.desktop (domain: nautilus)
...
DEBUG   : Caching gsettings: 
INFO: GSettings missing key org.gnome.nautilus.desktop (key 
computer-icon-visible)
DEBUG   : Schema not translated org.gnome.desktop.screensaver (domain: 
gsettings-desktop-schemas)
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.settings-daemon.plugins.xsettings 
(domain: gnome-settings-daemon)
DEBUG   : Caching gsettings: 
DEBUG   : No translated schema for org.gnome.desktop.input-sources (domain: 
gsettings-desktop-schemas)
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.mutter (domain: @GETTEXT_DOMAIN)
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.desktop.peripherals.mouse (domain: 
gsettings-desktop-schemas)
...
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.settings-daemon.peripherals.mouse 
(domain: gnome-settings-daemon)
...
DEBUG   : Caching gsettings: 
DEBUG   : Schema not translated org.gnome.desktop.peripherals.touchpad (domain: 
gsettings-desktop-schemas)
...
DEBUG   : Caching gsettings: 
DEBUG   : Found desktop file: /home/xpduyson/.config/autostart/icedove.desktop
DEBUG   : User autostart desktop file: 
/home/xpduyson/.config/autostart/icedove.desktop
DEBUG   : Found desktop file: /home/xpduyson/.config/autostart/dropbox.desktop
DEBUG   : User autostart desktop file: 
/home/xpduyson/.config/autostart/dropbox.desktop
DEBUG   : Query 
URL:https://extensions.gnome.org/extension-info/?uuid=audio-switcher@AndresCidoncha
...
[1]5747 segmentation fault  gnome-tweak-tool -d



Bug#837146: [gnome-tweak-tool] press alt key make gnome-tweak-tool crash

2016-09-10 Thread Andreas Henriksson
Control: tags -1 + unreproducible moreinfo

Hello Đặng Duy Sơn.

Thanks for your bug report.

On Fri, Sep 09, 2016 at 03:26:21PM +0700, Đặng Duy Sơn wrote:
> Package: gnome-tweak-tool
> Version: 3.21.91-1
> Severity: normal
> 
> Dear Maintainer,
> 
> When I open a new gnome-tweak-tool instance, press alt key make it
> segmentation fault immediately.

(Not interpretting your "segmentation fault" literally as that's pretty
unlikely for being a python application. If it is an actual segmentation
fault and given we're not being flooded in bug reports about anything
written in python crashing it's likely your custom kernel or your
hardware/ram being broken in that case.)

> How to reproduce:
> - Open a new gnome-tweak-tool instance.
> - Press alt immediately, it crash
> - Toggle some checkbox or dropdown menu in Tweak Tool main window, then
> press alt, it still crash.
> - Click the top left Search button on Tweak Tool window, then click again to
> close it. After that, press alt key doesn't make it crash anymore

I'm not able to reproduce the problem you're seeing. Could you please
give more details? If you start the application from a terminal
do you get a python backtrace?

Regards,
Andreas Henriksson



Bug#837146: [gnome-tweak-tool] press alt key make gnome-tweak-tool crash

2016-09-09 Thread Đặng Duy Sơn

Package: gnome-tweak-tool
Version: 3.21.91-1
Severity: normal

Dear Maintainer,

When I open a new gnome-tweak-tool instance, press alt key make it 
segmentation fault immediately.

How to reproduce:
- Open a new gnome-tweak-tool instance.
- Press alt immediately, it crash
- Toggle some checkbox or dropdown menu in Tweak Tool main window, then 
press alt, it still crash.
- Click the top left Search button on Tweak Tool window, then click 
again to close it. After that, press alt key doesn't make it crash anymore



--- System information. ---
Architecture: amd64
Kernel: Linux 4.7.0-2.1-liquorix-amd64

Debian Release: stretch/sid
500 yakkety ppa.launchpad.net
500 xenial ppa.launchpad.net
500 unstable liquorix.net
500 testing repository.spotify.com
500 testing debian.xtdv.net
500 stable dl.google.com
500 stable debian.xtdv.net
500 sid linux.dropbox.com

--- Package information. ---
Depends (Version) | Installed
===-+-==
python:any (<< 2.8) |
python:any (>= 2.7.5-5~) |
gsettings-desktop-schemas (>= 3.21.2) | 3.21.4-2
gnome-settings-daemon | 3.21.90-2
gnome-shell-common (>= 3.4) | 3.21.91-2
mutter-common | 3.21.91-2
python-gi (>= 3.2.1) | 3.20.1-1
gir1.2-gtk-3.0 (>= 3.12) | 3.21.5-3
gir1.2-gnomedesktop-3.0 | 3.21.90-3
gir1.2-soup-2.4 | 2.55.90-1
gir1.2-notify-0.7 | 0.7.6-2
gir1.2-glib-2.0 | 1.49.1-2
gir1.2-pango-1.0 | 1.40.2-1


Package's Recommends field is empty.

Package's Suggests field is empty.