arts active but no sound
Matthias Kretz
kretz at kde.org
Sat Aug 16 22:31:17 BST 2003
Oh, don't go into mcopidl generated code :-) either you're very brave and
wanna know it all, or you just stick to some basic understanding of what MCOP
objects are...
Take a look at kdemultimedia/arts/tools/audiomanager.cpp:47
AudioManager = Arts::Reference("global:Arts_AudioManager");
changes = AudioManager.changes()-1;
I guess this is the place where it crashes. Because AudioManager.isNull()
returns true if the soundserver is gone.
So you at least need to do sth. like
if( !AudioManager.isNull() )
changes = AudioManager.changes()-1;
else
//error handling - show error msg and quit
A better way would be to make Artscontrol use KArtsServer in every place where
objects on the soundserver are used - this would give us a new artsd if one
goes down, and you can recreate all objects on the soundserver when
KArtsServer emits restartedServer().
On Saturday August 16 2003 23:15, Martin Koller wrote:
> > > Shall I submit a bug report, a patch or both ?
> >
> > Best would be a patch, of course. :-) You need to check the object for
> > isNull () before using it.
>
> I tried hard to track the problem down, but I'm lost in that unknown code
> ...
>
> I get always a crash with the following backtrace:
> #0 Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER (this=0x8127b80, parent=0x0,
> name=0x0)
> at /opt/kde-cvs/include/arts/artsflow.h:3796
> #1 0x080523a1 in VControl::showAudioManager (this=0x81172a8) at
> main.cpp:217 #2 0x080506d9 in VControl::qt_invoke (this=0x81172a8, _id=51,
> _o=0xbfffe9f8) at main.moc:205
>
> and
>
> 3794 inline long Arts::AudioManager::changes()
> 3795 {
> 3796 return
> _cache?static_cast<Arts::AudioManager_base*>(_cache)-
>
> >changes():static_cast<Arts::AudioManager_base*>(_method_call())->changes()
> >;
>
> 3797 }
>
> and here _cache is
> (gdb) p _cache
> $1 = (AudioManager_base *) 0x413a6c61
>
> So, what can be the problem ???
> I don't know.
--
C'ya
Matthias
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homeip.net/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20030816/ea53c145/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
More information about the kde-multimedia
mailing list