[Okular-devel] trying to add my own functionality into Okular
Haidong Tang
thd.thu at gmail.com
Thu Feb 7 02:58:35 UTC 2013
Hi,
I work for a research center and we would like to test some of our research
on open source viewers. Okular is my first choice. The things I'll need to
do include changing some UI, getting content of documents from backend,
applying our algorithm and get some output, etc. As this is my first
experience of developing with open source software and I'm now having some
trouble with understanding the source code. Is there any kind of
developer's manual or other similar documents so that I could understand
the source code quickly? Or do you have any suggestions how I should get
started? Thanks a lot!
On Wed, Feb 6, 2013 at 4:10 PM, <okular-devel-request at kde.org> wrote:
> Send Okular-devel mailing list submissions to
> okular-devel at kde.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.kde.org/mailman/listinfo/okular-devel
> or, via email, send a message with subject or body 'help' to
> okular-devel-request at kde.org
>
> You can reach the person managing the list at
> okular-devel-owner at kde.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Okular-devel digest..."
>
>
> Today's Topics:
>
> 1. [okular] [Bug 314536] New: Okular crashes when trying to open
> one PDF file (jussi.kivilinna at mbnet.fi)
> 2. [okular] [Bug 314536] Okular crashes when trying to open one
> PDF file (jussi.kivilinna at mbnet.fi)
> 3. [okular] [Bug 314536] Okular crashes when trying to open one
> PDF file (Albert Astals Cid)
> 4. [okular] [Bug 314536] Okular crashes when trying to open one
> PDF file (jussi.kivilinna at mbnet.fi)
> 5. Re: Error when loading pdf document with latest sources from
> master (Albert Astals Cid)
> 6. [okular] [Bug 314536] Okular crashes when trying to open one
> PDF file (Albert Astals Cid)
> 7. [okular] [Bug 314536] Okular crashes when trying to open one
> PDF file (jussi.kivilinna at mbnet.fi)
> 8. [okular] [Bug 314076] Open pdf, read, quit okular
> (Bruno Friedmann)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 06 Feb 2013 17:03:41 +0000
> From: <jussi.kivilinna at mbnet.fi>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] New: Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596 at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> Bug ID: 314536
> Summary: Okular crashes when trying to open one PDF file
> Classification: Unclassified
> Product: okular
> Version: 0.15.5
> Platform: Ubuntu Packages
> OS: Linux
> Status: UNCONFIRMED
> Severity: crash
> Priority: NOR
> Component: general
> Assignee: okular-devel at kde.org
> Reporter: jussi.kivilinna at mbnet.fi
>
> Application: okular (0.15.5)
> KDE Platform Version: 4.9.5
> Qt Version: 4.8.3
> Operating System: Linux 3.7.6-jk20130204-id1851 x86_64
> Distribution: Ubuntu 12.10
>
> -- Information about the crash:
> - What I was doing when the application crashed:
>
> Okular crashes when trying to open one PDF file (on Windows foxit reader
> managed to open it, and print to another PDF which workaround my problem).
> Unfortunally it's research article so the PDF file is not freely available.
>
> The crash can be reproduced every time.
>
> -- Backtrace:
> Application: Okular (okular), signal: Aborted
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [Current thread is 1 (Thread 0x7fa871dc6780 (LWP 7782))]
>
> Thread 2 (Thread 0x7fa85cde4700 (LWP 7784)):
> #0 0x00007fa86f02e303 in __GI___poll (fds=<optimized out>, nfds=<optimized
> out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
> #1 0x00007fa86bc2dd84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #2 0x00007fa86bc2e1e2 in g_main_loop_run () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #3 0x00007fa86442c4a6 in ?? () from
> /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
> #4 0x00007fa86bc51645 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #5 0x00007fa86c0fce9a in start_thread (arg=0x7fa85cde4700) at
> pthread_create.c:308
> #6 0x00007fa86f039cbd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
> #7 0x0000000000000000 in ?? ()
>
> Thread 1 (Thread 0x7fa871dc6780 (LWP 7782)):
> [KCrash Handler]
> #5 0x00007fa86ef7c425 in __GI_raise (sig=<optimized out>) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #6 0x00007fa86ef7fb8b in __GI_abort () at abort.c:91
> #7 0x00007fa84ad30e4f in dictLookup (obj=<optimized out>, this=<optimized
> out>, key=<optimized out>, recursion=<optimized out>) at Object.h:309
> #8 XRef::getDocInfo (this=<optimized out>, obj=<optimized out>) at
> XRef.cc:1124
> #9 0x00007fa84b05ba2c in getDocInfo (obj=0x7fffc1302ec0, this=<optimized
> out>)
> at ../../poppler/PDFDoc.h:217
> #10 Poppler::Document::info (this=<optimized out>, type=...) at
> poppler-document.cc:266
> #11 0x00007fa84b2e01ec in PDFGenerator::metaData (this=0x1ce8ca0, key=...,
> option=...) at ../../../generators/poppler/generator_pdf.cpp:1148
> #12 0x00007fa84e7809c6 in Okular::Document::metaData (this=<optimized out>,
> key=..., option=...) at ../core/document.cpp:2333
> #13 0x00007fa84ea3b0c9 in Okular::Part::setWindowTitleFromDocument
> (this=0x1823560) at ../part.cpp:998
> #14 0x00007fa84ea49f0f in qt_static_metacall (_a=<optimized out>,
> _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at
> ./part.moc:224
> #15 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized
> out>,
> _id=<optimized out>, _a=<optimized out>) at ./part.moc:159
> #16 0x00007fa86fa10f5f in QMetaObject::activate (sender=0x1823560,
> m=<optimized
> out>, local_signal_index=<optimized out>, argv=0x0) at
> kernel/qobject.cpp:3547
> #17 0x00007fa8719c6b89 in ?? () from /usr/lib/libkparts.so.4
> #18 0x00007fa8719c7074 in KParts::ReadOnlyPart::openUrl(KUrl const&) ()
> from
> /usr/lib/libkparts.so.4
> #19 0x00007fa84ea3b205 in openUrl (_url=..., this=0x1823560) at
> ../part.cpp:1321
> #20 Okular::Part::openUrl (this=0x1823560, _url=...) at ../part.cpp:1292
> #21 0x0000000000408cd4 in Shell::openUrl (this=0x17a9c80, url=...) at
> ../../shell/shell.cpp:141
> #22 0x00007fa86fa1043e in QObject::event (this=0x17a9c80, e=<optimized
> out>) at
> kernel/qobject.cpp:1195
> #23 0x00007fa87042d0da in QWidget::event (this=0x17a9c80, event=0x1c9d720)
> at
> kernel/qwidget.cpp:8830
> #24 0x00007fa8707f61cb in QMainWindow::event (this=0x17a9c80,
> event=0x1c9d720)
> at widgets/qmainwindow.cpp:1478
> #25 0x00007fa8711d77c8 in KXmlGuiWindow::event(QEvent*) () from
> /usr/lib/libkdeui.so.5
> #26 0x00007fa8703dde9c in QApplicationPrivate::notify_helper
> (this=this at entry=0x149c320, receiver=receiver at entry=0x17a9c80,
> e=e at entry=0x1c9d720) at kernel/qapplication.cpp:4562
> #27 0x00007fa8703e230a in QApplication::notify (this=0x7fffc1304240,
> receiver=0x17a9c80, e=0x1c9d720) at kernel/qapplication.cpp:4423
> #28 0x00007fa8710e61f6 in KApplication::notify(QObject*, QEvent*) () from
> /usr/lib/libkdeui.so.5
> #29 0x00007fa86f9fb56e in QCoreApplication::notifyInternal
> (this=0x7fffc1304240, receiver=receiver at entry=0x17a9c80,
> event=event at entry=0x1c9d720) at kernel/qcoreapplication.cpp:915
> #30 0x00007fa86f9ff3f1 in sendEvent (event=0x1c9d720, receiver=0x17a9c80)
> at
> ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
> #31 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
> data=0x1471670) at kernel/qcoreapplication.cpp:1539
> #32 0x00007fa86fa29a63 in sendPostedEvents () at
> ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
> #33 postEventSourceDispatch (s=0x14af3b0) at
> kernel/qeventdispatcher_glib.cpp:279
> #34 0x00007fa86bc2dab5 in g_main_context_dispatch () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #35 0x00007fa86bc2dde8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #36 0x00007fa86bc2dea4 in g_main_context_iteration () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #37 0x00007fa86fa29bf6 in QEventDispatcherGlib::processEvents
> (this=0x1472b30,
> flags=...) at kernel/qeventdispatcher_glib.cpp:424
> #38 0x00007fa870482c1e in QGuiEventDispatcherGlib::processEvents
> (this=<optimized out>, flags=...) at
> kernel/qguieventdispatcher_glib.cpp:204
> #39 0x00007fa86f9fa2bf in QEventLoop::processEvents
> (this=this at entry=0x7fffc1303ff0, flags=...) at kernel/qeventloop.cpp:149
> #40 0x00007fa86f9fa548 in QEventLoop::exec (this=0x7fffc1303ff0,
> flags=...) at
> kernel/qeventloop.cpp:204
> #41 0x00007fa86f9ff708 in QCoreApplication::exec () at
> kernel/qcoreapplication.cpp:1187
> #42 0x00000000004079ce in main (argc=<optimized out>, argv=<optimized
> out>) at
> ../../shell/main.cpp:85
>
> Reported using DrKonqi
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 06 Feb 2013 17:05:53 +0000
> From: <jussi.kivilinna at mbnet.fi>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596-QCz5xmIM29 at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> --- Comment #1 from jussi.kivilinna at mbnet.fi ---
> Bug reporting tool sent this before asking conformation.. article PDF is at
> http://link.springer.com/chapter/10.1007%2F978-3-540-74735-2_9?LI=true ..
> for
> those who have access.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 06 Feb 2013 18:39:54 +0000
> From: Albert Astals Cid <aacid at kde.org>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596-mQecMFN0Hl at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> Albert Astals Cid <aacid at kde.org> changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> CC| |aacid at kde.org
>
> --- Comment #2 from Albert Astals Cid <aacid at kde.org> ---
> With no document this is very hard to fix.
>
> Which poppler version are you using?
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 06 Feb 2013 19:33:39 +0000
> From: <jussi.kivilinna at mbnet.fi>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596-eackfGiuni at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> --- Comment #3 from jussi.kivilinna at mbnet.fi ---
> It's libpoppler28 (0.20.4-0ubuntu1.1), Ubuntu Quantal (with updates
> repository). http://packages.ubuntu.com/quantal-updates/libpoppler28
>
> Appearently also other PDFs from springer.com cause this same crash. What
> you
> think, should I add one of those pdfs here as attachment or send with
> email to
> someone?
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 06 Feb 2013 22:00:51 +0100
> From: Albert Astals Cid <aacid at kde.org>
> To: Okular development <okular-devel at kde.org>
> Subject: Re: [Okular-devel] Error when loading pdf document with
> latest sources from master
> Message-ID: <1515875.FnTSUbbLge at xps>
> Content-Type: text/plain; charset="us-ascii"
>
> El Dimecres, 6 de febrer de 2013, a les 09:31:32, Bogdan Cristea va
> escriure:
> > libpoppler version 0.18.0-2.6.1 x86_64 from openSUSE 12.2 repository
>
> That's ultra old, is there any change you can try with something newer?
>
> Albert
>
> >
> > On Tue, Feb 5, 2013 at 8:09 PM, Albert Astals Cid <aacid at kde.org> wrote:
> > > El Dilluns, 4 de febrer de 2013, a les 21:57:51, Bogdan Cristea va
> > >
> > > escriure:
> > > > It should work with any pdf file generated with Google Chrome.
> > >
> > > Works fine here, which poppler version are you using?
> > >
> > > Cheers,
> > >
> > > Albert
> > >
> > > > On Mon, Feb 4, 2013 at 8:33 PM, Albert Astals Cid <aacid at kde.org>
> wrote:
> > > > > El Diumenge, 3 de febrer de 2013, a les 21:50:26, Bogdan Cristea va
> > > > >
> > > > > escriure:
> > > > > > The loaded document has a black background and I get the
> following
> > >
> > > error
> > >
> > > > > in
> > > > >
> > > > > > terminal:
> > > > > > Clash for annotations with ID: 0
> > > > > >
> > > > > > The pdf is generated with Google-Chrome by printing to file a web
> > >
> > > page.
> > >
> > > > > I think you forgot to attach the file or give the url.
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Albert
> > > > >
> > > > > _______________________________________________
> > > > > Okular-devel mailing list
> > > > > Okular-devel at kde.org
> > > > > https://mail.kde.org/mailman/listinfo/okular-devel
> > >
> > > _______________________________________________
> > > Okular-devel mailing list
> > > Okular-devel at kde.org
> > > https://mail.kde.org/mailman/listinfo/okular-devel
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 06 Feb 2013 21:01:36 +0000
> From: Albert Astals Cid <aacid at kde.org>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596-3L1khTi1xC at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> --- Comment #4 from Albert Astals Cid <aacid at kde.org> ---
> Well, as said without the pdf fixing the crash is very hard. How you make
> it
> available it's up to you i guess.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 06 Feb 2013 21:36:11 +0000
> From: <jussi.kivilinna at mbnet.fi>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314536] Okular crashes when
> trying to open one PDF file
> Message-ID: <bug-314536-85596-VHAccdwvQr at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314536
>
> --- Comment #5 from jussi.kivilinna at mbnet.fi ---
> Created attachment 76957
> --> https://bugs.kde.org/attachment.cgi?id=76957&action=edit
> PDF that crashes okular
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 06 Feb 2013 22:10:18 +0000
> From: Bruno Friedmann <brunofr at ioda.net>
> To: okular-devel at kde.org
> Subject: [Okular-devel] [okular] [Bug 314076] Open pdf, read, quit
> okular
> Message-ID: <bug-314076-85596-BQFZzH3D3Q at http.bugs.kde.org/>
> Content-Type: text/plain; charset="UTF-8"
>
> https://bugs.kde.org/show_bug.cgi?id=314076
>
> --- Comment #2 from Bruno Friedmann <brunofr at ioda.net> ---
> For example open dolphin, go to a folder where you know there's several pdf
> available.
> filter the folder with pdf, select them all, then hit the enter key
>
> But it seems fixed on 4.10 rc3, I can't reproduce it anymore.
> For the safe of the shake, if it doesn't crash for you then simply clause
> the
> bug.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
>
>
> ------------------------------
>
> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
>
>
> End of Okular-devel Digest, Vol 77, Issue 8
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130206/a485f469/attachment-0001.html>
More information about the Okular-devel
mailing list