After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 710530 - crash when chaning settings of AlternateTab extension
crash when chaning settings of AlternateTab extension
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-10-19 23:50 UTC by Dominique Leuenberger
Modified: 2013-11-06 23:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-tweak-tool with GIL hack (3.12 KB, text/plain)
2013-10-22 03:17 UTC, Simon Feltman
Details

Description Dominique Leuenberger 2013-10-19 23:50:46 UTC
g-t-t segfaults when opening the configuration dialog for the AlternateTab extension:
* Launch g-tweak-tool
* Select Extensions
* Click the cog wheel next to AlternateTab extenion (in my case, the extension is turned off)
=> Segfault.


(gdb) bt
  • #0 sem_post
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S line 33
  • #1 PyThread_release_lock
    from /usr/lib64/libpython2.7.so.1.0
  • #2 g_object_ref
    at gobject.c line 3069
  • #3 g_settings_backend_dispatch_signal
    at gsettingsbackend.c line 329
  • #4 g_settings_backend_changed
    at gsettingsbackend.c line 400
  • #5 dconf_engine_change_notify
    at dconfsettingsbackend.c line 250
  • #6 dconf_engine_handle_dbus_signal
    at dconf-engine.c line 1164
  • #7 emit_signal_instance_in_idle_cb
    at gdbusconnection.c line 3743
  • #8 g_main_dispatch
    at gmain.c line 3065
  • #9 g_main_context_dispatch
    at gmain.c line 3641
  • #10 g_main_context_iterate
    at gmain.c line 3712
  • #11 g_main_context_iteration
    at gmain.c line 3773
  • #12 dconf_gdbus_worker_thread
    at dconf-gdbus-thread.c line 81
  • #13 g_thread_proxy
    at gthread.c line 798
  • #14 start_thread
    at pthread_create.c line 309
  • #15 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 111

Comment 1 Simon Feltman 2013-10-20 09:52:44 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.

*** This bug has been marked as a duplicate of bug 709223 ***
Comment 2 Simon Feltman 2013-10-22 03:17:25 UTC
Created attachment 257810 [details]
gnome-tweak-tool with GIL hack

Dominique,

Can you run the attached "gnome-tweak-tool" script and see if it fixes the problem? This is the same version sitting the gnome-3-10 branch with an added forcing of GIL creation. If this works for you I will submit the change as a patch.
Comment 3 Jean Delvare 2013-10-22 06:59:06 UTC
Simon, thanks for the quick reply. I tested the version of gnome-tweak-tool in comment #2 and I can confirm it fixes the problem for me.
Comment 4 Dominique Leuenberger 2013-10-22 09:44:33 UTC
Simon, my local tests match Jean's test... seems to be an acceptable workaround.
Comment 5 Dominique Leuenberger 2013-10-22 18:49:33 UTC
One side-effect I'd seen is that the window to configure the extension is opened behind the main window of g-t-t (but focused)
Comment 6 John Stowers 2013-10-23 07:33:24 UTC
(In reply to comment #5)
> One side-effect I'd seen is that the window to configure the extension is
> opened behind the main window of g-t-t (but focused)

That is not related. I can't do anything about this because the configuration dialog is a separate process.
Comment 7 Dominique Leuenberger 2013-10-23 07:38:30 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > One side-effect I'd seen is that the window to configure the extension is
> > opened behind the main window of g-t-t (but focused)
> 
> That is not related. I can't do anything about this because the configuration
> dialog is a separate process.
 
I thought so.. as a result.. I'm fine with this fix for now...
Comment 8 Romano Giannetti 2013-11-06 22:02:00 UTC
I --- I am trying to see if this is the same as https://bugs.launchpad.net/ubuntu/+source/gnome-tweak-tool/+bug/1228626 (I think so). 

I am trying to execute the script in comment 2, but it fails with 

Traceback (most recent call last):
  • File "./gnome-tweak-tool-wrapper.py", line 84 in <module>
    from gtweak.app import GnomeTweakTool
ImportError: No module named app

...probably wrong version. Could you please advise?
Comment 9 John Stowers 2013-11-06 22:46:18 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

To test

git clone https://git.gnome.org/browse/gnome-tweak-tool
cd gnome-tweak-tool
git checkout -b gnome-3-10 origin/gnome-3-10
./gnome-tweak-tool
Comment 10 Romano Giannetti 2013-11-06 23:01:29 UTC
Can't test it on Ubuntu Gnome 13.10 --- probably a dependence problem. 
Thanks anyway --- it seems the same problem, so I will mark this bug as upstream, I hope that some developer with more knowledge than me could port the fix down. 

(0)samsung-romano:~/tmp/gnome-tweak-tool% ./gnome-tweak-tool 
Traceback (most recent call last):
  • File "./gnome-tweak-tool", line 84 in <module>
    from gtweak.app import GnomeTweakTool
  • File "/home/romano/tmp/gnome-tweak-tool/gtweak/app.py", line 25 in <module>
    from gtweak.tweakview import Window
  • File "/home/romano/tmp/gnome-tweak-tool/gtweak/tweakview.py", line 26 in <module>
    from gtweak.widgets import Title
  • File "/home/romano/tmp/gnome-tweak-tool/gtweak/widgets.py", line 207 in <module>
    class ListBoxTweakGroup(Gtk.ListBox, TweakGroup):
  • File "/usr/lib/python2.7/dist-packages/gi/module.py", line 313 in __getattr__
    return getattr(self._introspection_module, name)
  • File "/usr/lib/python2.7/dist-packages/gi/module.py", line 134 in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'ListBox'