[PyQt] Myanmar-QWERTY crashes OS X application

Timothy W. Grove tim_grove at sil.org
Fri Aug 19 12:33:58 BST 2016

Changing the keyboard input source on OS X back and forth between 
'British' and 'Myanmar-QWERTY' crashes my PyQt v5.7 application after 
about three changes, usually corrupting an attached sqlite database as 
well. 'Myanmar-QWERTY' is the only input source that I'm having trouble 
with; all others that I've tested so far appear okay. The windows 
version of the application also seems okay. My application is fairly 
complex, but I'm seeing this issue even with an absolute minimal app 
containing only one window. I'm not certain if the issue is with PyQt or 
Qt or the input source itself, but it doesn't appear to be with python 
as a Tkinter app worked okay.

Any answers would be great, but if anyone could suggest where to find a 
solution that would also be helpful. This is a pretty obscure bug, but 
finding a solution or work-around is important to the application I'm 
developing. Thank you.

Best regards,
Timothy Grove

Test program:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets import QTextEdit
from PyQt5.QtWidgets import QApplication

class MainWindow(QMainWindow):
     def __init__(self, parent=None):
         super(MainWindow, self).__init__(parent)

         text = QTextEdit()

if __name__ == "__main__":
     app = QApplication(sys.argv)

     mw = MainWindow()


More information about the PyQt mailing list