Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV crashes when waitKey receives a Cyrillic letter

I have written a simple OpenCV video player. I have added some navigation 'q' - exits the program, 'p' - toggles play/pause mode, etc. Everything works fine but if I forgot to switch to Latin keyboard and type a letter in Cyrillic the program crashes immediately with the following error:

ASSERT: "false" in file qasciikey.cpp, line 495

I have identified that the crash is caused by waitKey(). It is the same with the extended version waitKeyEx(). Is there a workaround this?

OpenCV crashes when waitKey receives a Cyrillic letter

I have written a simple OpenCV video player. I have added some navigation 'q' - exits the program, 'p' - toggles play/pause mode, etc. Everything works fine but if I forgot to switch to Latin keyboard and type a letter in Cyrillic the program crashes immediately with the following error:

ASSERT: "false" in file qasciikey.cpp, line 495

I have identified that the crash is caused by waitKey(). It is the same with the extended version waitKeyEx(). Is there a workaround this? this?

I forgot to mention that I use OpenCV 3.2 with Qt support and Ubuntu 16.04.