Merge "Catch OutOfMemoryError and log warning" into qt-dev