Bug 452191 - juk resets volume to -2,147,483,648% for every song played
Summary: juk resets volume to -2,147,483,648% for every song played
Status: REPORTED
Alias: None
Product: juk
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Neon Linux
: NOR critical
Target Milestone: ---
Assignee: Scott Wheeler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-02 19:57 UTC by Alberto Gonzalez
Modified: 2022-04-05 04:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Juk volume -2million at start up (65.67 KB, image/png)
2022-04-05 03:56 UTC, Michael
Details
my jukrc file from ~/.config/ (1.09 KB, text/plain)
2022-04-05 03:57 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Gonzalez 2022-04-02 19:57:55 UTC
SUMMARY

juk is somehow getting "nan" values from Phonon::AudioOutput and interpreting it as -2 million% volume. This gets reset every time a new track is played.


STEPS TO REPRODUCE
1. Open juk
2. Pick and song, in our case an mp3, double-click to play, or if already playing a song, click the forward track button

OBSERVED RESULT

Notice there's no audio sound. 
Click the juk volume speaker icon in the upper-right corner of the window and notice that the volume is set to -2,147,483,648% (what the heck?)
Click on the volume slider to make the percentage to be higher, like 100%, to confirm that the audio can be heard now.
Click Next track button.
Same issue, audio volume gets reset to -2 millon% (lol).

Looking in the ~/.config/jukrc configuration file, there is this value:

[Phonon::AudioOutput]
JuK_Volume=nan

"nan" means "not a number", right? If this is manually changed to a value like 100, and juk is restarted, then the entry gets reset to nan again.


EXPECTED RESULT

Audio volume should remember its last value.

SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
Comment 1 Alberto Gonzalez 2022-04-02 22:45:26 UTC
Follow up: sometimes this bug manifests itself as simply the volume being at 0% not -2 million%. Same outcome as the initial report but different value.
Comment 2 Michael 2022-04-05 02:09:00 UTC
I am having the same issue, playing a song starts at -2million% and then when the next song plays, its volume is set to 0, why is this happening?

KDE neon user edition
Comment 3 Michael 2022-04-05 03:46:11 UTC
In a separate, seemingly related bug report, someone has suggested a way to mitigate the effect of the bug, but not entirely: https://bugs.kde.org/show_bug.cgi?id=441789#c1
Comment 4 Michael 2022-04-05 03:56:40 UTC
Created attachment 147973 [details]
Juk volume -2million at start up
Comment 5 Michael 2022-04-05 03:57:35 UTC
Created attachment 147974 [details]
my jukrc file from ~/.config/
Comment 6 Michael 2022-04-05 03:58:31 UTC
I've attached a picture of the -2 million% volume at startup, and my jukrc config file.

Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
Graphics Platform: X11
Comment 7 Michael 2022-04-05 04:06:52 UTC
https://bugs.kde.org/show_bug.cgi?id=443329 appears to be referencing this bug and is looking to fix it