! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Orage in svn doesn't play an associated sound when showing a reminder
Status:
CLOSED: FIXED

Comments

Description Alexander Toresson 2005-09-21 13:25:53 CEST
When I've created a reminder and associated it with a sound, and when that
reminder is displayed, the associated sounds ain't played. I have tested both
with ogg and mp3 sounds and even the two included ogg sounds don't work.
When it attempts to play a sounds it writes the following to stdout:

** (orage:32648): WARNING **: play failed

This feature is important to me because I expected to use orage as an advanced
alarm clock.

Regards, Alexander Toresson

Reproducible: Always
Steps to Reproduce:
1. Add an appointment
2. Enable the reminder of it and associate a sounds with it
3. Wait until the reminder is shown

Actual Results:  
It displays a reminder, though it doesn't play any sound.

Expected Results:  
It displays a reminder and plays a sounds

I'm using alsa, and xfce4-mixer was compiled with alsa enabled.
Comment 1 Alexander Toresson 2005-09-21 14:02:34 CEST
I investigated this, and found out that it tries to execute:

play sound-file

I temporarily fixed this by symlinking /usr/bin/mplayer to /usr/bin/play. A
permanent solution would be letting the user choose at compiletime between
depending on the alsa, oss or esd sound libraries. Another solution is using
gstreamer or xine.
Comment 2 korbinus editbugs 2005-09-21 15:08:07 CEST
Hi,

there's a setting in the preferences for telling Orage which program to use to
play a sound. That should do the trick. "play" is the default.

Let me know if this doesn't work.

Cheers
Korbinus
Comment 3 Alexander Toresson 2005-09-21 16:17:46 CEST
Well, xfce-mcs-manager crashes when I try to access the orage settings, so
that's why I never found that setting. I tried to debug it with gdb, to give you
at least a back-trace, however, it seems like xfce-mcs-manager doesn't receive
events if I attach it to gdb, so the best I can give you is the glib warnings
that appear in a console I started xfce-mcs-manager from:

(xfce-mcs-manager:19889): GLib-GObject-WARNING **: gsignal.c:1716: signal
`toggled' is invalid for instance `0x81d07d8'

(xfce-mcs-manager:19889): GLib-GObject-WARNING **: invalid uninstantiatable type
`(null)' in cast to `GObject'

(xfce-mcs-manager:19889): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `(null)'

(xfce-mcs-manager:19889): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Comment 4 Alexander Toresson 2005-09-22 16:16:07 CEST
Forgot about the existence of strace. Here's the end of the strace output:

ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1127400946, 316503}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 81) = 1
ioctl(3, FIONREAD, [64])                = 0
read(3, "\34\0\35\2152\0\340\0f\1\0\0\35\333J\7\0>\r\10|\245\236"..., 64) = 64
gettimeofday({1127400946, 347082}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1127400946, 347852}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 50) = 1
ioctl(3, FIONREAD, [64])                = 0
read(3, "\5\1\35\215U\333J\7F\0\0\0\203\5\300\0\0\0\0\0)\4\346\1"..., 64) = 64
gettimeofday({1127400946, 398452}, NULL) = 0
gettimeofday({1127400946, 398605}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0)     = 0
write(3, "\231\4\2\0\0\1\300\0", 8)     = 8
read(3, "\1\2\36\215\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1127400946, 398987}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0)     = 0
write(3, "5\30\4\0\250\5\300\0@\5\300\0\250\0K\0;\3\5\0@\0\300\0"..., 16380) = 16380
write(3, ";\3\5\0G\5\300\0\0\0\0\0\0\0\0\0\250\0K\0B\0\5\0\250\5"..., 3196) = 3196
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1127400946, 420037}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0)     = 0
open("/usr/share/locale/en_GB/LC_MESSAGES/xfcalendar.mo", O_RDONLY) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=1971, ...}) = 0
mmap2(NULL, 1971, PROT_READ, MAP_PRIVATE, 10, 0) = 0xb70c4000
close(10)                               = 0
open("/usr/share/locale/en/LC_MESSAGES/xfcalendar.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
write(2, "\n(xfce-mcs-manager:19899): GLib-"..., 121) = 121
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 19899 detached
Comment 5 juha editbugs 2005-09-25 18:24:55 CEST
So you don't have file 
/usr/share/locale/en/LC_MESSAGES/xfcalendar.mo
at all ?
Where have you installed your xfce ? Where is xfcalendar and xfce-mcs-manager ?

Looks like your environment is not ok.

try 
which xfce-mcs-manager
and 
which xfcalendar
Comment 6 Alexander Toresson 2005-09-25 18:41:29 CEST
I have /usr/local/share/locale/sv/LC_MESSAGES/orage.mo and
/usr/share/locale/sv/LC_MESSAGES/xfcalendar.mo. I guess I should've told it to
install in /usr/share instead of /usr/local/share, but that shouldn't matter.
Comment 7 korbinus editbugs 2005-09-26 08:42:29 CEST
Did you uninstall xfcalendar before installing orage? I guess there's some kind
of conflict here.
Comment 8 Alexander Toresson 2005-09-26 14:32:48 CEST
No, I didn't do that. I'll try that and see if it helps.
Comment 9 Alexander Toresson 2005-09-26 14:46:43 CEST
Yes, that fixed it. I can now access the Orage settings from the settings
manager and from Edit -> Settings in Orage. However, I discovered that if I
right-click on the systray icon and select settings, I get an error saying "No
such module "xfcalendar"", so I guess you've forgot to change xfcalendar to
orage in that case. Btw, Orage should put quotes around files it plays with an
external program, otherwise it won't work with filenames that have special
characters like spaces, in them.
Comment 10 korbinus editbugs 2005-09-29 11:59:22 CEST
I fixed the double-quote stuff in SVN. Many thanks. 

BTW, I'm sorry, I called you Alexander Larsson on the log message :-(
Comment 11 Brian J. Tarricone (not reading bugmail) 2007-01-26 18:58:39 CET
Moving all bugs to new Orage product.

Bug #1160

Reported by:
Alexander Toresson
Reported on: 2005-09-21
Last modified on: 2007-01-26

People

Assignee:
korbinus
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information