Bug 47393 - noatun crashes on startup if fails to find a plugin
Summary: noatun crashes on startup if fails to find a plugin
Status: RESOLVED LATER
Alias: None
Product: noatun
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-03 20:03 UTC by Gioele Barabucci
Modified: 2003-11-16 16:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gioele Barabucci 2002-09-03 19:50:44 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           noatun
Version:           KDE 3.0.7 CVS/CVSup/Snapshot
Severity:          crash
Installed from:    Compiled sources
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

How to reproduce:
- select a playlist plugin
- close noatun
- remove the .so file associated
- run noatun *CRASH*

#6  0x4162759e in NoatunStdAction::PlaylistAction::PlaylistAction ()
   from /usr/local/kde3/lib/libnoatun.so.0
#7  0x4162820c in NoatunStdAction::playlist ()
   from /usr/local/kde3/lib/libnoatun.so.0
#8  0x4233ab78 in NoatunSystray::NoatunSystray ()
   from /usr/local/kde3/lib/kde3/noatun_systray.so
#9  0x4233c121 in create_plugin ()
   from /usr/local/kde3/lib/kde3/noatun_systray.so
#10 0x41620092 in LibraryLoader::loadSO ()
   from /usr/local/kde3/lib/libnoatun.so.0
#11 0x4161f7df in LibraryLoader::loadAll ()
   from /usr/local/kde3/lib/libnoatun.so.0
#12 0x41620873 in LibraryLoader::loadAll ()
   from /usr/local/kde3/lib/libnoatun.so.0
#13 0x4161ea2a in NoatunApp::loadPlugins ()
   from /usr/local/kde3/lib/libnoatun.so.0
#14 0x4161c5bc in NoatunApp::NoatunApp ()
   from /usr/local/kde3/lib/libnoatun.so.0
#15 0x40ce51dc in main () from /usr/local/kde3/lib/kde3/noatun.so
#16 0x804d109 in launch ()
#17 0x804dff8 in handle_launcher_request ()
#18 0x804e5ab in handle_requests ()
#19 0x804f4ff in main ()
#20 0x40f0e71f in __libc_start_main () from /lib/libc.so.6


(Submitted via bugs.kde.org)
Comment 1 Charles Samuels 2002-11-15 01:38:54 UTC
just fixed it. 
Comment 2 Eray Ozkural 2003-05-24 16:00:31 UTC
You think you fixed it Njaard ;) 
 
I still see this bug. I didn't verify if it is the case with every plugin but it looks like that. 
 
The fix should probably be a little involved: 
  1) If a plugin cannot be found in playlist or GUI category a default plugin must be 
sought. 
    1a) Failing that, any plugin in that category should be sought. 
   2) Failing to find a proper plugin a suitable error message should be produced 
     2a) If it is a _vital_ plugin then an appropriate error message should be produced 
and the program should quit 
     2b) If it isn't a vital plugin the program should report this incident (plugin X not 
found) and commence operation. 
 
Greetings to all noatun hackers who are willing to fix this (^_^) 
 
More detailed information following soon. Ouch. mETz claims there is in fact a fallback 
to split playlist for playlist plugins. I must investigate! 
 
Comment 3 Eray Ozkural 2003-05-24 16:36:46 UTC
I can't replicate the bug 
 
I'm closing. I swear I saw it but maybe I just thought I'd seen something. :) 
 
Now Njaard will pick on me ;) 
 
Comment 4 Eray Ozkural 2003-05-24 16:47:16 UTC
mETz says if split is not found it's gonna crash. 
 
This means reopen again. 
 
The fix I suggested prior to this still makes sense. Silent fail and crash conditions must 
be eliminated! We can use those new fancy info boxes to inform the user or message 
boxes in which you must click "OK" (wow I forgot all about kdelibs names :) 
 
 
Comment 5 Neil Stevens 2003-05-25 01:08:18 UTC
Noatun should be allowed to rely on the plugins it ships with being installed, though.  If 
you remove SPL it's your own fault, and Noatun shouldn't have to be bloated with 
code to coddle your breaking it. 
Comment 6 Eray Ozkural 2003-05-25 05:19:47 UTC
All I know is it should be near-impossible to crash a user friendly app! 
 
Comment 7 Charles Samuels 2003-08-11 04:20:12 UTC
I think it's reasonable to have it crash if it can't find a plugin that ships with noatun by 
default. The default plugin even. 
 
Comment 8 Eray Ozkural 2003-10-21 14:55:07 UTC
Charles is right, but still I'd expect the most general form of a plugin manager to be wary of all system-level errors.

Cheers,
Comment 9 Stefan Gehn 2003-10-21 20:04:24 UTC
I have a patch for this, eventually I'll sort out all my noatun changes and attach it here for others to test.
Btw, it shouldn't crash, install errors are quite common with all these broken distros out there
Comment 10 Stefan Gehn 2003-11-16 16:39:38 UTC
I'll commit a fix after KDE 3.2, I'm not allowed to add new strings right now.