In case this helps others. I was having this same runtime error when calling a really simple function. Finally I did realize I did mistakenly declare the function to return a QString value, when it wasn't my intention. Since the function was expected to return something, and it didn't, the error occured just before ending the function call.