If you hit this assertion with having resourceFile set to "singing.ogg" you can read it like
“We assert that singing.ogg exist as file to continue the code correctly”. Now if your debugger stops here, this is a sign that the assertion is not true, e.g. in this specific case that singing.ogg does not exist as file. If you don’t have a debugger attached (or if you compile it as release build) there is no chance that the debugger stops here, so code will continue, expecting that resourceFile exists as file and will likely crash at the point where the file access will happen.
So your main question should be: Why does the program think that singing.ogg does not exist as file? A common mistake is to place some file somewhere beneath the executable and then expect that just specifying it as relative path will work, as it will be interpreted as relative to the current working directory which can be anything, especially when working with a GUI app or a plugin. The documentation of the File class states that very explicitly. So you should better specify a full path to the file. To make it portable, File::getSpecialLocation can help you