Bug 828597 - [abrt] ibus-hangul-1.4.1-2.fc16: main.py:184:on_value_changed:TypeError: 'NoneType' object is not iterable
Summary: [abrt] ibus-hangul-1.4.1-2.fc16: main.py:184:on_value_changed:TypeError: 'Non...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-hangul
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b2b2ffe5168223429e63dfff934...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-05 00:40 UTC by Kenichi Takemura
Modified: 2014-08-04 22:04 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-26 00:47:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to fix ibus-hangul-setup race condition (768 bytes, patch)
2012-06-05 07:29 UTC, Daiki Ueno
no flags Details | Diff

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.


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