Fixed the segfault, cause was hard coded qDebug() in room.cpp