Bug 212272 - kompare crashed on startup when launched from kdesvn
Summary: kompare crashed on startup when launched from kdesvn
Status: RESOLVED WORKSFORME
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
: 221525 221684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-29 11:24 UTC by Michal Slonina
Modified: 2010-01-07 22:14 UTC (History)
3 users (show)

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 Michal Slonina 2009-10-29 11:24:14 UTC
Application that crashed: kompare
Version of the application: 4.0.0
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.6.0
Operating System: Linux 2.6.30.1 i686

What I was doing when the application crashed:
kompare works fine when launched standalone,
but it crashes when launched from kdesvn

The kdesvn version is:
Qt: 4.6.0
KDE: 4.3.2 (KDE 4.3.2)
kdesvn: 1.4.0


 -- Backtrace:
Application: Kompare (kompare), signal: Segmentation fault
[KCrash Handler]
#6  0xb67c53a6 in KServiceType::serviceOffersOffset (this=0x0) at /var/tmp/portage/kde-base/kdelibs-4.3.2-r3/work/kdelibs-4.3.2/kdecore/services/kservicetype.cpp:230
#7  0xb67a8bd0 in KMimeTypeTrader::query (this=0x81ebf90, mimeType=@0xbfb5cc6c, genericServiceType=@0xbfb5cc70, constraint=@0xbfb5cc74)
    at /var/tmp/portage/kde-base/kdelibs-4.3.2-r3/work/kdelibs-4.3.2/kdecore/services/kmimetypetrader.cpp:113
#8  0x080550e9 in KompareShell (this=0x8166700) at /var/tmp/portage/kde-base/kompare-4.3.2/work/kompare-4.3.2/kompare/kompare_shell.cpp:68
#9  0x0805120f in main (argc=3, argv=0xbfb5d0d4) at /var/tmp/portage/kde-base/kompare-4.3.2/work/kompare-4.3.2/kompare/main.cpp:95

This bug may be a duplicate of or related to bug 202481

Reported using DrKonqi
Comment 1 Kevin Kofler 2009-10-29 11:31:48 UTC
Uhm, yes, the backtrace matches. We never figured out what caused that bug and what "fixed" it. :-(

The line which fails is the query for Kompare/ViewPart. Somehow your services are not registered properly. Try running "kbuildsycoca4".
Comment 2 Michal Slonina 2009-10-29 13:33:44 UTC
Hi Kevin,

BIG Thanks for your quick reply.

Indeed running kbuildsyscocoa4 solved the problem,
so the bug is probably distro related (i'm using gentoo ebuilds).

Maybe I could write a patch that checks for that condition and instructs
the user to run kbuildsyscocoa4 ? Or just force the kbuildsyscocoa4 run ?
  What do you think ? 


Regards, Michał Słonina.
Comment 3 Dario Andres 2009-10-29 14:16:44 UTC
AFAIK, kbuildsycoca4 should be run after building/installing, so KDE will properly update its service/desktop-files cache and recognize the new installed plugins...
Comment 4 Kevin Kofler 2009-10-29 17:47:21 UTC
Normally, kbuildsycoca4 should be run automatically when kded detects a change in a service file. For some reason, that doesn't always work. But that's a kdelibs issue, not a Kompare one, and there's probably some bug report about that already.
Comment 5 Christoph Feck 2010-01-07 22:13:22 UTC
*** Bug 221525 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2010-01-07 22:14:57 UTC
*** Bug 221684 has been marked as a duplicate of this bug. ***