Bug 1413580

Summary: [abrt] ibus-table: __init__(): factory.py:96:do_create_engine:Exception: Cannot create engine wubi-jidian86
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: ibus-tableAssignee: Mike FABIAN <mfabian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dchen, i18n-bugs, K9, kent.neo, mfabian, pwu, shawn.p.huang
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/bdce905eb57396e93947d29a0280b3c5c8cbe9af
Whiteboard: abrt_hash:a038027e8bfa8a6fbc085d9f685578456db15b61;VARIANT_ID=workstation;
Fixed In Version: ibus-table-1.9.16-1.fc25 ibus-table-1.9.16-1.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-23 18:51:20 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
File: backtrace
none
File: cgroup
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Mike FABIAN 2017-01-16 12:44:48 UTC
Description of problem:
In Python >= 3.6 

import sqlite3
sqlite3.connect("foo.db").execute('PRAGMA journal_mode k= WAL;') 

fails.

Version-Release number of selected component:
ibus-table-1.9.14-2.fc26

Additional info:
reporter:       libreport-2.9.0
cmdline:        /usr/bin/python3 /usr/share/ibus-table/engine/main.py --ibus
crash_function: __init__
exception_type: sqlite3.OperationalError
executable:     /usr/share/ibus-table/engine/main.py
kernel:         4.10.0-0.rc3.git4.1.fc26.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
factory.py:96:do_create_engine:Exception: Cannot create engine wubi-jidian86

Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 362, in __init__
    self.db.execute('PRAGMA user_db.journal_mode = WAL;')
sqlite3.OperationalError: cannot change into wal mode from within a transaction

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/factory.py", line 80, in do_create_engine
    filename = db, user_db = udb)
  File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 379, in __init__
    self.init_user_db(user_db)
  File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 1020, in init_user_db
    db.execute('PRAGMA journal_mode = WAL;')
sqlite3.OperationalError: cannot change into wal mode from within a transaction

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/factory.py", line 96, in do_create_engine
    raise Exception("Cannot create engine %s" %engine_name)
Exception: Cannot create engine wubi-jidian86

Local variables in innermost frame:
traceback: <module 'traceback' from '/usr/lib64/python3.6/traceback.py'>
udb: 'wubi-jidian86-user.db'
db: '/usr/share/ibus-table/tables/wubi-jidian86.db'
db_dir: '/usr/share/ibus-table/tables'
path_patt: re.compile('[^a-zA-Z0-9_/]')
engine_base_path: '/com/redhat/IBus/engines/table/%s/engine/'
engine_name: 'wubi-jidian86'
self: <factory.EngineFactory object at 0x7f3388bf0d38 (factory+EngineFactory at 0x56227f91fee0)>

Comment 1 Mike FABIAN 2017-01-16 12:44:55 UTC
Created attachment 1241218 [details]
File: backtrace

Comment 2 Mike FABIAN 2017-01-16 12:44:57 UTC
Created attachment 1241219 [details]
File: cgroup

Comment 3 Mike FABIAN 2017-01-16 12:44:58 UTC
Created attachment 1241220 [details]
File: environ

Comment 4 Mike FABIAN 2017-01-16 12:45:00 UTC
Created attachment 1241221 [details]
File: mountinfo

Comment 5 Mike FABIAN 2017-01-16 12:45:01 UTC
Created attachment 1241222 [details]
File: namespaces

Comment 6 Mike FABIAN 2017-01-16 12:45:03 UTC
Created attachment 1241223 [details]
File: open_fds

Comment 7 Fedora Update System 2017-01-17 06:16:28 UTC
ibus-table-1.9.16-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ed4f7582b

Comment 8 Fedora Update System 2017-01-17 06:17:10 UTC
ibus-table-1.9.16-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-dbf926a11a

Comment 9 Fedora Update System 2017-01-17 21:50:45 UTC
ibus-table-1.9.16-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-dbf926a11a

Comment 10 Fedora Update System 2017-01-17 21:53:32 UTC
ibus-table-1.9.16-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ed4f7582b

Comment 11 Fedora Update System 2017-02-23 18:51:20 UTC
ibus-table-1.9.16-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2017-02-23 19:19:42 UTC
ibus-table-1.9.16-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.