Bug 828597

Summary: [abrt] ibus-hangul-1.4.1-2.fc16: main.py:184:on_value_changed:TypeError: 'NoneType' object is not iterable
Product: [Fedora] Fedora Reporter: Kenichi Takemura <ktakemur>
Component: ibus-hangulAssignee: Daiki Ueno <dueno>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dueno, ebaak, i18n-bugs, pwu, shawn.p.huang
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b2b2ffe5168223429e63dfff9345611fd99eb9eb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-26 00:47:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to fix ibus-hangul-setup race condition none

Description Kenichi Takemura 2012-06-05 00:40:11 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        python /usr/share/ibus-hangul/setup/main.py
executable:     /usr/share/ibus-hangul/setup/main.py
kernel:         3.3.7-1.fc16.x86_64
reason:         main.py:184:on_value_changed:TypeError: 'NoneType' object is not iterable
time:           Tue 05 Jun 2012 10:36:11 AM EST
uid:            1000
username:       ktakemur

backtrace:
:main.py:184:on_value_changed:TypeError: 'NoneType' object is not iterable
:
:Traceback (most recent call last):
:  File "/usr/share/ibus-hangul/setup/main.py", line 184, in on_value_changed
:    for i in model:
:TypeError: 'NoneType' object is not iterable
:
:Local variables in innermost frame:
:name: 'HangulKeyboard'
:data: None
:section: 'engine/Hangul'
:value: <GLib.Variant('ro')>
:model: None
:config: <Config object at 0x1e250f0 (IBusConfig at 0x1e5f8e0)>
:self: <__main__.Setup instance at 0x1e172d8>

comment:
:1. Activate ibus
:2. Select language to IBusHangul
:3. Click setup and change Keyboard Layout to 'Romaja'

Comment 1 Daiki Ueno 2012-06-05 07:29:49 UTC
Created attachment 589420 [details]
patch to fix ibus-hangul-setup race condition

Thanks for the report.  If you are able to reproduce it constantly, could you try the attached patch?  So it can be proposed to the upstream.

Comment 2 Fedora Update System 2012-06-06 09:34:23 UTC
ibus-hangul-1.4.1-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/ibus-hangul-1.4.1-3.fc17

Comment 3 Fedora Update System 2012-06-06 09:34:34 UTC
ibus-hangul-1.4.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ibus-hangul-1.4.1-3.fc16

Comment 4 Kenichi Takemura 2012-06-06 23:53:25 UTC
Hi Daiki

I tested ibus-hang ibus-hangul-1.4.1-3.fc16.x86_64 but the problem still exists.

Comment 5 Daiki Ueno 2012-06-07 01:34:27 UTC
I suspect you are seeing a different problem.  Could you try adding the following line:

value = value.get_string()

at the beginning of on_value_changed function in /usr/share/ibus-hangul/setup/main.py?

Comment 6 Kenichi Takemura 2012-06-07 04:26:38 UTC
Hi Daiki

I added the code and restarted ibus then tested but the same result.
Still happens.

Comment 7 Daiki Ueno 2012-06-07 07:57:55 UTC
Thanks for testing.  Hmm, I can no longer reproduce it with 1.4.1-3 plus comment 5 fix.  Could you check if the backtrace is the same as the original one?

Comment 8 Kenichi Takemura 2012-06-07 10:56:52 UTC
I am c'n'p'ng the backtrace.


main.py:186:on_value_changed:TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/share/ibus-hangul/setup/main.py", line 186, in on_value_changed
    for i in model:
TypeError: 'NoneType' object is not iterable

Local variables in innermost frame:
name: 'HangulKeyboard'
data: None
section: 'engine/Hangul'
value: 'ro'
model: None
config: <Config object at 0x1d2c0f0 (IBusConfig at 0x1d658e0)>
self: <__main__.Setup instance at 0x1d1d2d8>

Comment 9 Fedora Update System 2012-06-07 22:56:19 UTC
Package ibus-hangul-1.4.1-3.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-hangul-1.4.1-3.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9016/ibus-hangul-1.4.1-3.fc17
then log in and leave karma (feedback).

Comment 10 Daiki Ueno 2012-06-08 09:15:20 UTC
OK, probably got it (it was my mistake in ibus-hangul-setup-gi.patch, sorry for inconvenience).  Could you try 1.4.1-4?
http://koji.fedoraproject.org/koji/buildinfo?buildID=322983

Comment 11 Fedora Update System 2012-06-11 01:47:41 UTC
ibus-hangul-1.4.1-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/ibus-hangul-1.4.1-4.fc17

Comment 12 Fedora Update System 2012-06-11 01:47:48 UTC
ibus-hangul-1.4.1-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ibus-hangul-1.4.1-4.fc16

Comment 13 Fedora Update System 2012-06-15 12:20:35 UTC
Package ibus-hangul-1.4.1-4.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-hangul-1.4.1-4.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9450/ibus-hangul-1.4.1-4.fc17
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2012-06-26 00:47:17 UTC
ibus-hangul-1.4.1-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2012-06-26 00:48:15 UTC
ibus-hangul-1.4.1-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.