Bug 1193833 - unable to change state of GtkSwitch during handler for notify::active
Summary: unable to change state of GtkSwitch during handler for notify::active
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk3
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1195844 (view as bug list)
Depends On:
Blocks: 1238692
TreeView+ depends on / blocked
 
Reported: 2015-02-18 11:13 UTC by Jens Petersen
Modified: 2015-12-18 01:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1238692 (view as bug list)
Environment:
Last Closed: 2015-12-18 01:20:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
switch off (495 bytes, text/plain)
2015-04-13 19:46 UTC, David Shea
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 751754 0 None None None Never

Description Jens Petersen 2015-02-18 11:13:12 UTC
Description of problem:
F22 boot.iso install needs network to be enabled by hand...
if one go to the timezone spoke first and tries to turn on
ntp then anaconda seems to hang.

Version-Release number of selected component (if applicable):
current boot.iso image

How reproducible:
need to re-test

Steps to Reproduce:
1. boot.iso
2. goto timezone spoke
3. press done or enable network time

Actual results:
anaconda hangs

Expected results:
no hang

Comment 1 Jens Petersen 2015-02-18 11:43:03 UTC
Hmm, actually I can't get networking to work, wonder if there is a bug for that...

Comment 2 David Shea 2015-02-24 21:34:03 UTC
*** Bug 1195844 has been marked as a duplicate of this bug. ***

Comment 3 David Shea 2015-04-13 19:43:34 UTC
This is a gtk bug, it turns out. If the ntp switch is turned on while networking is disabled, anaconda will turn the switch back off. In Fedora 21 and newer (gtk3-3.14+), the notify handler is stuck in a loop.

Comment 4 David Shea 2015-04-13 19:46:29 UTC
Created attachment 1014058 [details]
switch off

Attaching a small script that demonstrates the issue. On gtk-3.10, attempting to turn the switch on will:

1) call the notify::active handler with get_active() == True, which calls set_active(False)
2) call the notify::active handler with get_active() == False, which does nothing
3) stops

On gtk-3.14, after step 2 the notify::active handler is again called with get_active() == True, and this continues until it crashes.

Comment 5 Matthias Clasen 2015-12-18 01:20:24 UTC
I believe that this was fixed in the meantime, by 

https://git.gnome.org/browse/gtk+/commit/gtk/gtkswitch.c?id=1be338fd444f0cdea8dad030f0fb52b346054fcd


Note You need to log in before you can comment on or make changes to this bug.