Bug 489899 - If mark repeat check box raise the error playing audio file Invalid argument
Summary: If mark repeat check box raise the error playing audio file Invalid argument
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: sound (show other bugs)
Version: 3.8.1.1
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-08 03:01 UTC by quanticcpu2100
Modified: 2024-07-09 19:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 24.08
Sentry Crash Report:


Attachments
audio file to test (86.87 KB, video/ogg)
2024-07-09 00:27 UTC, quanticcpu2100
Details

Note You need to log in before you can comment on or make changes to this bug.
Description quanticcpu2100 2024-07-08 03:01:27 UTC
At set sound file if mark repeat check box and setting seconds and volume raise the error playing audio file '/home/<user>/<file>.mp3.ogg.wav' Invalid argument, when alarm start or clinking in the Try button. Follow the screenshots.

Screenshot 1: https://ibb.co/djmZG2p
Screenshot 2: https://ibb.co/80scSvS

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8 (64-bit)
Graphics Platform: Wayland
Comment 1 David Jarvie 2024-07-08 14:02:44 UTC
I tried both a wav and ogg file, with your repeat settings, on my KDE Neon system, but it worked correctly, with no error message. I tried naming the file the same as in your screenshot, but it also worked correctly.

Can you please attach an audio file which creates the error, so that I can try out the same file.
Comment 2 quanticcpu2100 2024-07-08 21:49:26 UTC
(In reply to David Jarvie from comment #1)
> I tried both a wav and ogg file, with your repeat settings, on my KDE Neon
> system, but it worked correctly, with no error message. I tried naming the
> file the same as in your screenshot, but it also worked correctly.
> 
> Can you please attach an audio file which creates the error, so that I can
> try out the same file.

I think it is not a good practice for you to test on KDE Neon. There are hundreds of distributions, the main ones being Fedora, Arch Linux, Debian, Open Suse, etc. I think that as a developer you should have more than one distribution to tests. Your distro may mask the problem. Also there are a lot of reports about it.  If you guide me I can generate the audio files.
Comment 3 David Jarvie 2024-07-08 22:20:32 UTC
Ideally a developer would be able to test with multiple distributions, but time is limited and keeping more than one development distro up to date would mean that I wouldn't have time to do actual development. KDE Neon is easy to keep updated with the latest development KDE libraries, so that's the one I use for development work.

Can you please attach an audio file which creates the error.

I don't understand what you mean by "If you guide me I can generate the audio files".
Comment 4 quanticcpu2100 2024-07-09 00:27:10 UTC
Created attachment 171489 [details]
audio file to test

Audio file attached. Repeating, this problem happen just when you create a normal alarm, in the template screen this problem doesn't happen. Weird!
Comment 5 quanticcpu2100 2024-07-09 03:08:44 UTC
If mark Repeat checkbox and set volume when click on the Try button or OK raise the error ---> Screenshot: https://ibb.co/6bhYdj7
but if keep this options unchecked the alarm works but anyway it is a bug.

Kind regards.
Comment 6 David Jarvie 2024-07-09 11:11:55 UTC
To help find the cause for this, can you please do the following:

1) Quit KAlarm (use menu option File -> Quit).

2) Open a terminal window and run KAlarm from there (type "kalarm" and then Enter).

3) Open the Edit Alarm dialog for the alarm, and click Try.

4) Copy all the terminal output starting from before Try was clicked, and attach it here.

5) Quit KAlarm, and start it again from the menu to let it run normally again.
Comment 7 quanticcpu2100 2024-07-09 11:17:53 UTC
(In reply to David Jarvie from comment #6)
> To help find the cause for this, can you please do the following:
> 
> 1) Quit KAlarm (use menu option File -> Quit).
> 
> 2) Open a terminal window and run KAlarm from there (type "kalarm" and then
> Enter).
> 
> 3) Open the Edit Alarm dialog for the alarm, and click Try.
> 
> 4) Copy all the terminal output starting from before Try was clicked, and
> attach it here.
> 
> 5) Quit KAlarm, and start it again from the menu to let it run normally
> again.

❯ kalarm
org.kde.pim.kalarm: Kernel alarm timers not available (no CAP_WAKE_ALARM capability)
Fontconfig error: "/home/dom/.fonts.conf", line 1: XML declaration allowed only at the start of the document

QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
Comment 8 David Jarvie 2024-07-09 19:39:31 UTC
KAlarm has now been converted to use the VLC library to play sound files, which should fix this bug. The fix will be in KAlarm version 3.9, which will be in the KDE Gear 24.08 release.

Commit https://invent.kde.org/pim/kalarm/-/commit/a3ce5043f2074829156f414cc32075579b3bbf94