Bug 291258 - ktimetracker doesn't work
Summary: ktimetracker doesn't work
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: 4.8.x
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Thorsten Staerk
URL:
Keywords:
: 302410 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-11 12:17 UTC by humufr
Modified: 2012-08-17 12:23 UTC (History)
8 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 humufr 2012-01-11 12:17:36 UTC
Version:           4.8.x (using Devel) 
OS:                Linux

ktimtracker doesn't work either as a standalone application or as kontact plugin. 

As a standalone application it said that it can not create the composant ktimetracker but it open an empty window.

As kontact plugin, it is impossible to create a new activity. It said to look inside the directory .kde/share/apps/kabc/lock to remove lock file.

Reproducible: Always

Steps to Reproduce:
open ktimetrackter or kontact 

Actual Results:  
not working

Expected Results:  
start the application
Comment 1 regi.hops 2012-02-18 01:37:10 UTC
Same result.

KTimeTracker: 4.8.0-325.8
Distribution: openSUSE 12.1 (x86_64)
KDE: 4.8.00 (4.8.0 "release 2")

The mentioned directory in the error message ".kde/share/apps/kabc/lock/" is empty.
The iCal file resides in ".local/share/calendar/" and is writable by me (0644).

Cheers
Regi
Comment 2 K Robinson 2012-03-27 16:49:57 UTC
Also confirmed 

$ uname -a
Linux ... 3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:48:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ ktimetracker -version
Qt: 4.7.4
KDE Development Platform: 4.7.4 (4.7.4)
KTimeTracker: 4.7.2

When I try to start it:
$ ktimetracker
Object::connect: No such slot ktimetrackerpart::keyBindings()
Object::connect:  (sender name:   'options_configure_keybinding')
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x840001e

Dialog box appears: "Could not create the KTimeTracker part."; When I click OK on the dialog, an empty window appears; it's window class is "ktimetracker".  Its title is "ktimetracker".  The window role is "mainwindow#1".  The size is 216x132 (rather small).

Reinstalling the app does not help, but here's some possibly useful output:
$ apt-get --reinstall install ktimetracker
...
Preparing to replace ktimetracker 4:4.7.4+git111222-0ubuntu0.1 (using .../ktimetracker_4%3a4.7.4+git111222-0ubuntu0.1_amd64.deb) ...
...



And, taking a shotgun approach to providing information, here is the ldd output:
$ ldd =ktimetracker
        linux-vdso.so.1 =>  (0x00007fffb1ff7000)
        libkcmutils.so.4 => /usr/lib/libkcmutils.so.4 (0x00007fbb23d16000)
        libkparts.so.4 => /usr/lib/libkparts.so.4 (0x00007fbb23ac4000)
        libkcal.so.4 => /usr/lib/libkcal.so.4 (0x00007fbb237aa000)
        libkdepim.so.4 => /usr/lib/libkdepim.so.4 (0x00007fbb23506000)
        libkcal_resourceremote.so.4 => /usr/lib/libkcal_resourceremote.so.4 (0x00007fbb232f9000)
.... (removed a bunch of libraries that are, hopefully, less important) ....
Comment 3 Cyril Brosch 2012-06-27 12:42:19 UTC
Confirmed for Chakra Linux 4.8.3, same error messages here. I don't have an iCal ressource, though (don't know whether this is related).
Comment 4 Gleb Popov 2012-08-06 09:26:00 UTC
Confirmed on FreeBSD 9 (KDE 4.8.4).
Comment 5 Diogo Leal 2012-08-12 05:42:33 UTC
Confirmed on Fedora 17 - KDE 4.9
Comment 6 Sergio Martins 2012-08-15 12:11:49 UTC
Git commit bb773366167af50fc99025473dc20ab5ab41e1cc by Sergio Martins.
Committed on 15/08/2012 at 14:01.
Pushed by smartins into branch 'KDE/4.9'.

Make KTimeTracker start.

By using a dynamic_cast<> instead of a qobject_cast<>.

A proper fix would be fixing the CMakeLists.txt file:

ktimetrackerpart.cpp is defined twice, one in the ktimetracker
binary, and one in the plugin, this will make qobject_cast fail
somewhere in KPluginLoaded/KPluginFactory code.

I tried fixing CMakeLists.txt but it's not trivial, there's
a interdependency between stuff and couldn't get it to work with
the little time I have for it.
Related: bug 283479, bug 285434

M  +1    -1    ktimetracker/mainwindow.cpp

http://commits.kde.org/kdepim/bb773366167af50fc99025473dc20ab5ab41e1cc
Comment 7 Sergio Martins 2012-08-17 12:23:01 UTC
*** Bug 302410 has been marked as a duplicate of this bug. ***