[Kde-imaging] Port Calendar kipi-plugin to KDE4...

Gilles Caulier caulier.gilles at gmail.com
Wed Nov 19 19:09:10 CET 2008


Orgad,

First screenshots taken under Windows are here :

http://www.digikam.org/drupal/node/400

... but i can see 2 differents crash under WIndows (under Linux it's not
reproductible). See below :

1/ Start plugin. Press Cancel => crash:


Program received signal SIGSEGV, Segmentation fault.
0x107c9b75 in KIPICalendarPlugin::CalWizard::~CalWizard (this=0x22b0bc)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:146
146         if (painter_) delete painter_;
(gdb) bt
#0  0x107c9b75 in KIPICalendarPlugin::CalWizard::~CalWizard (this=0x22b0bc)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:146
#1  0x107c1c78 in Plugin_Calendar::slotActivate (this=0xd8ab308)
    at C:/temp/graphics/kipi-plugins/calendar/plugin_calendar.cpp:79
#2  0x107c1d39 in Plugin_Calendar::qt_metacall (this=0xd8ab308,
    _c=InvokeMetaMethod, _id=4, _a=0x22b2cc)
    at C:/temp/graphics/kipi-plugins/calendar/plugin_calendar.moc:67
#3  0x6a33d953 in ZN11QMetaObject8activateEP7QObjectiiPPv ()
   from C:\KDE4\bin\QtCore4.dll
#4  0x65101f87 in ZN7QAction9triggeredEb () from C:\KDE4\bin\QtGui4.dll
#5  0x651023aa in ZN7QAction8activateENS_11ActionEventE ()
   from C:\KDE4\bin\QtGui4.dll
#6  0x655f76e1 in ZN5QMenu10wheelEventEP11QWheelEvent ()
   from C:\KDE4\bin\QtGui4.dll
#7  0x655fc5d3 in ZN5QMenu17mouseReleaseEventEP11QMouseEvent ()
   from C:\KDE4\bin\QtGui4.dll
#8  0x05c4d212 in KMenu::mouseReleaseEvent () from C:\KDE4\bin\libkdeui.dll
#9  0x65170d22 in ZN7QWidget5eventEP6QEvent () from C:\KDE4\bin\QtGui4.dll
#10 0x655f46c0 in ZN5QMenu5eventEP6QEvent () from C:\KDE4\bin\QtGui4.dll
#11 0x6510c20c in ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent
()
   from C:\KDE4\bin\QtGui4.dll
#12 0x6510d446 in ZN12QApplication6notifyEP7QObjectP6QEvent ()
   from C:\KDE4\bin\QtGui4.dll
---Type <return> to continue, or q <return> to quit---
#13 0x05b2a3cb in KApplication::notify () from C:\KDE4\bin\libkdeui.dll
#14 0x6a327d1b in ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent ()
   from C:\KDE4\bin\QtCore4.dll
#15 0x6510f007 in
ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E
() from C:\KDE4\bin\Q
tGui4.dll
#16 0x65185a0d in ZN12QApplication8winFocusEP7QWidgetb ()
   from C:\KDE4\bin\QtGui4.dll
#17 0x65188953 in ZN19QApplicationPrivate10closePopupEP7QWidget ()
   from C:\KDE4\bin\QtGui4.dll
#18 0x77d18709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#19 0x001c0160 in ?? ()
#20 0x00000202 in ?? ()
#21 0x00000000 in ?? () from
#22 0x00e70026 in ?? ()
#23 0x65187810 in ZN19QApplicationPrivate10closePopupEP7QWidget ()
   from C:\KDE4\bin\QtGui4.dll
#24 0x77d187eb in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#25 0x65187810 in ZN19QApplicationPrivate10closePopupEP7QWidget ()
   from C:\KDE4\bin\QtGui4.dll
#26 0x77d189a5 in USER32!GetWindowLongW () from
C:\WINDOWS\system32\user32.dll
#27 0x00000000 in ?? () from
#28 0x65187810 in ZN19QApplicationPrivate10closePopupEP7QWidget ()
   from C:\KDE4\bin\QtGui4.dll
---Type <return> to continue, or q <return> to quit---
#29 0x77d189e8 in USER32!DispatchMessageW ()
   from C:\WINDOWS\system32\user32.dll
#30 0x0022dce0 in ?? ()
#31 0x00000000 in ?? () from
#32 0x0022fa38 in ?? ()
#33 0x6a35ddaf in
ZN21QEventDispatcherWin3213processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
() from C:\KDE4\bin\QtCore
4.dll
#34 0x6a35ddaf in
ZN21QEventDispatcherWin3213processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
() from C:\KDE4\bin\QtCore
4.dll
#35 0x6518cbb0 in Z25qWinProcessConfigRequestsv () from
C:\KDE4\bin\QtGui4.dll
#36 0x6a327678 in
ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE () from
C:\KDE4\bin\QtCore4.dll
#37 0x6a327879 in ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE ()
   from C:\KDE4\bin\QtCore4.dll
#38 0x6a32d7fb in ZN16QCoreApplication4execEv () from
C:\KDE4\bin\QtCore4.dll
#39 0x006b143c in main (argc=1, argv=0x68a8300)
    at C:/temp/graphics/digikam/digikam/main.cpp:180
(gdb)
(gdb) quit

2/ Second one, appears when you will start printing, just after that windows
show print manager for printer selection:

Program received signal SIGSEGV, Segmentation fault.
0x107ca969 in KIPICalendarPlugin::CalWizard::print (this=0x22b0bc)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:272
272         if (painter_) delete painter_;
(gdb) bt
#0  0x107ca969 in KIPICalendarPlugin::CalWizard::print (this=0x22b0bc)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:272
#1  0x107cb3ca in KIPICalendarPlugin::CalWizard::slotPageSelected (
    this=0x22b0bc, current=0xe0cb4c8, before=0xdf8d908)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:249
#2  0x107cbec3 in KIPICalendarPlugin::CalWizard::qt_metacall (this=0x22b0bc,
    _c=InvokeMetaMethod, _id=76, _a=0x225b18)
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.moc:71
#3  0x6a33d953 in ZN11QMetaObject8activateEP7QObjectiiPPv ()
   from C:\KDE4\bin\QtCore4.dll
#4  0x05b64f32 in KPageDialog::currentPageChanged ()
   from C:\KDE4\bin\libkdeui.dll
#5  0x00000047 in ?? ()
#6  0x00000047 in ?? ()
#7  0x00225b18 in ?? ()
#8  0x00000000 in ?? () from
#9  0x00225b3c in ?? ()
#10 0x00225b40 in ?? ()
#11 0x00000047 in ?? ()
#12 0x00000000 in ?? () from
#13 0x00225cd8 in ?? ()
#14 0x00225b60 in ?? ()
#15 0x05b64fc0 in KPageDialog::qt_metacall () from C:\KDE4\bin\libkdeui.dll
---Type <return> to continue, or q <return> to quit---
#16 0x076155e8 in ?? ()
#17 0x107e134c in vtable for KIPICalendarPlugin::CalWizard ()
#18 0x6a330000 in ZNK13QMetaProperty10isReadableEv ()
   from C:\KDE4\bin\QtCore4.dll
#19 0x107c9430 in KIPICalendarPlugin::CalWizard::metaObject ()
    at C:/temp/graphics/kipi-plugins/calendar/calwizard.cpp:155
Previous frame inner to this frame (corrupt stack?)
(gdb)
(gdb) quit

Best

Gilles Caulier


2008/11/19 Gilles Caulier <caulier.gilles at gmail.com>

> A new screenshot page is available about Calendar plugin. Later, i will add
> shots taken under Windows:
>
> http://www.digikam.org/drupal/node/400
>
> Gilles Caulier
>
> 2008/11/19 Gilles Caulier <caulier.gilles at gmail.com>
>
> Orgad,
>>
>> This morning, i have fix all source code header in all file to respect
>> Debian (c) form. Nothing is changed about authors of course.
>>
>> I have also adjusted some missing moc include and some braket form (just
>> to me homogenous everywhere).
>>
>> I have add RAW files format support using libkdcraw. It's just few line of
>> code.
>>
>> I have used an Oxygen icon for Calendar menu action. No need to re-invent
>> the wheel (:=))))
>>
>> Cmake prject take a care about KDEPIMlibs depency and set Calendar plugin
>> as optional. The pre compilation panel on the console report if Calendar
>> plugin will be compiled.
>>
>> It still include files order to fix following KDE rules. I will ask to
>> Andi Clement to adjust this point.
>>
>> After that, all will be fine. I have tested Calendar under Mandriva and it
>> work perfectly. I will test also under Windows...
>>
>> Again, thanks you to maintain this plugin. It very appreciate.
>>
>> Best
>>
>> Gilles Caulier
>>
>> 2008/11/19 Orgad Shaneh <orgads at gmail.com>
>>
>> Great! :)
>>>
>>>
>>> On Tue, Nov 18, 2008 at 10:35 PM, Gilles Caulier <
>>> caulier.gilles at gmail.com> wrote:
>>>
>>>> Great. your plugin compile and link fine under windows !
>>>>
>>>> http://digikam3rdparty.free.fr/Screenshots/win32/buildcalendar-win32.png
>>>>
>>>> Gilles
>>>>
>>>> 2008/11/18 Gilles Caulier <caulier.gilles at gmail.com>
>>>>
>>>>
>>>>>
>>>>> 2008/11/18 Orgad Shaneh <orgads at gmail.com>
>>>>>
>>>>>> commited (at last!)
>>>>>>
>>>>>> Many thanks.
>>>>>
>>>>>
>>>>>
>>>>>> I've commented rawconverter and dngconverter to prevent their
>>>>>> compilation here, and commited it by mistake. I recommited CMakeLists.txt
>>>>>> with them uncommented.
>>>>>>
>>>>>
>>>>> i will check it.
>>>>>
>>>>>
>>>>>>
>>>>>> Hope it didn't get into kde 4.2 beta whatever (it was exactly before
>>>>>> 23:59UTC)... :)
>>>>>>
>>>>>
>>>>> no. kipi-plugins still released outside KDE. I release myself tarball.
>>>>> next one is 0.2.0-beta4
>>>>>
>>>>>>
>>>>>>
>>>>>> I still have some work on it, but it seems to work fine for now.
>>>>>>
>>>>>
>>>>> ok. we will test it. Thanks again.
>>>>>
>>>>> Gilles Caulier
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> On Sun, Nov 9, 2008 at 9:50 AM, Gilles Caulier <
>>>>>> caulier.gilles at gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> 2008/11/9 Orgad Shaneh <orgads at gmail.com>
>>>>>>>
>>>>>>>> I'm almost done with it (hopefully :)). I've been working on it for
>>>>>>>> the last few weeks.
>>>>>>>>
>>>>>>>> Actually, about a year ago I had it almost complete, but then my hd
>>>>>>>> was formatted by mistake, and it was all gone (I should've commited it by
>>>>>>>> then...).
>>>>>>>>
>>>>>>>> I'll commit it until the end of this week.
>>>>>>>>
>>>>>>>> Orgad
>>>>>>>>
>>>>>>>
>>>>>>> Great. thanks a lot !
>>>>>>>
>>>>>>> Gilles
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Nov 8, 2008 at 10:25 PM, Gilles Caulier <
>>>>>>>> caulier.gilles at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Orgad,
>>>>>>>>>
>>>>>>>>> A lots of plugins are already ported to KDE4. Calendar still
>>>>>>>>> uported and it will be time to do it.
>>>>>>>>>
>>>>>>>>> Are you already started this job (i remember some words from you
>>>>>>>>> about this subject). If yes, and if it's not yet complete, can you commit
>>>>>>>>> new implementation to svn. We can continue porting with the rest of kipi
>>>>>>>>> team.
>>>>>>>>>
>>>>>>>>> Thanks in advance for your help
>>>>>>>>>
>>>>>>>>> Best
>>>>>>>>>
>>>>>>>>> Gilles Caulier
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-imaging/attachments/20081119/fd32d77d/attachment-0001.htm 


More information about the Kde-imaging mailing list