Version: 1.1 (using KDE KDE 3.4.0) Installed from: Unlisted Binary Package Hi, howto reproduce: 1) Start Kontact with some plugin as parameter, say 'kontact --module summaryplugin' 2) Minimize Kontact to _tray_ (by clicking on the tray icon of kmail/kontact) 3) Try to maximize it the same way => Tray icon disappears, kontact seems to close, no crash report But running 'kontact --module summaryplugin' from konsole gives the error message: kontact: Unbekannte Option "-module". kontact: Benutzen Sie den Parameter "--help", um die verfügbaren Optionen zu sehen. (translates to: unknown option "-module", use "--help" to get a list of available options) This message appears in step 3). BTW: Running kontact without a --module parameter it doesn't crash this way! Martin
backtrace at hand?
As I mentioned above: It's no real "crash" but kontact CLOSES with error message kontact: Unbekannte Option "-module". kontact: Benutzen Sie den Parameter "--help", um die verfügbaren Optionen zu sehen. when being started out of konsole with some --module parameter (for message's rough translation see above). The point is: It says option "-module" unknown - although I passed "--module" to kontact. Also why should kontact complain about wrong command line parameter while being restored from tray icon?? Or did I get it wrong? How should I produce such a backtrace? gdb --args kontact --module summaryplugin produced a Program exited normally. after kontact's startup. Doing the steps above only the error message mentioned above reappears - no backtrace! (gdb) backtrace No stack. Martin
Yup, it just disappears/closes, and I can reproduce and confirm this on current HEAD.
this bug is still there in 1.1.1 (KDE 3.4.1) ... very annoying!!
Hi, the problem is in the handling of the command line options. David, we discussed it in Osnabrueck during the last kdepim meeting. Any idea how to solve it? Ciao, Tobias
*** Bug 109185 has been marked as a duplicate of this bug. ***
Still present in KDE 3.5.5. David, do you remember what was discussed?
*** Bug 125810 has been marked as a duplicate of this bug. ***
SVN commit 612460 by dfaure: loadAppArgs is called by KUniqueApplication to load the args coming from the other process, so when it's called we certainly don't want to reparse the initial argc/argv again. In most programs this made no difference, but in kontact this gave a failure since the cmdline options got modified meanwhile (e.g. to load the kmail options instead). BUG: 103775 M +2 -0 kcmdlineargs.cpp --- branches/KDE/3.5/kdelibs/kdecore/kcmdlineargs.cpp #612459:612460 @@ -263,6 +263,8 @@ void KCmdLineArgs::loadAppArgs( QDataStream &ds) { + parsed = true; // don't reparse argc/argv! + // Remove Qt and KDE options. removeArgs("qt"); removeArgs("kde");
*** Bug 138269 has been marked as a duplicate of this bug. ***