Conditional jump or move depends on uninitialized value (s)
This means what you have if it checks for a value that is not initialized. Therefore, the result of if is random.
To go further, you need to know where this variable is distributed / declared. You can get this information:
An uninitialized value was created by heap distribution 1: the new (unsigned long) operator in ... MusicWidget :: MusicWidget (QWidget *) in [...] musicwidget.cpp: 148
This means that in musicwidget.cpp, line 148, you create a new value in int (percent), but you do not initialize it. You should find a mistake there.
Disable topic: using new in int is usually not a good idea. Rather declare it as a variable, if possible
source share