[Okular-devel] [okular] [Bug 341328] unexpected result while printing multiple pages per sheet

2015-04-03 Thread McAaron
https://bugs.kde.org/show_bug.cgi?id=341328

McAaron mcaa...@mail.ru changed:

   What|Removed |Added

 CC||mcaa...@mail.ru

--- Comment #1 from McAaron mcaa...@mail.ru ---
When printing two A5 landscape pages per one A4 portrait sheet vertically the
pages are downscaled to fit on portrait A5 and rotated on 90 grad.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Jenkins build is still unstable: okular_master_qt5 #5

2015-04-03 Thread KDE CI System
See http://build.kde.org/job/okular_master_qt5/changes

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [calligrawords] [Bug 345813] Crash when opening ODT file

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345813

Albert Astals Cid aa...@kde.org changed:

   What|Removed |Added

  Component|general |okularplugin
Product|okular  |calligrawords
 CC||aa...@kde.org
   Assignee|okular-devel@kde.org|kosse...@kde.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #5 from Albert Astals Cid aa...@kde.org ---
Looks like dynamic_castOkular::ViewerInterface*(part) may be failing

Can you in shell.cpp just before line 174

qDebug()  part;
kDebug()  part;
qDebug()  dynamic_castOkular::ViewerInterface*(part);
kDebug()  dynamic_castOkular::ViewerInterface*(part);

And see the ouput that gives?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345684] Okular hangs after adding an annotation and choosing Save As

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345684

--- Comment #3 from Albert Astals Cid aa...@kde.org ---
That's interesting, can you install solid and/or kdelibs debug symbols for your
distribtion and do the same so we get some more information on the backtrace?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345830] Option to set backend explicitly

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345830

Albert Astals Cid aa...@kde.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |CONFIRMED
 CC||aa...@kde.org
 Ever confirmed|0   |1

--- Comment #1 from Albert Astals Cid aa...@kde.org ---
Make sense, should not be that hard to code. if you have some coding
experience, maybe you want to try it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #8 from Albert Astals Cid aa...@kde.org ---
No, you need to find out why casting an Okular::Part to an
Okular::ViewerInterface returns null since Okular::Part *is* an
Okular::ViewerInterface as you can see in part.h

class OKULAR_PART_EXPORT Part : public KParts::ReadWritePart, public
Okular::DocumentObserver, public KDocumentViewer, public
Okular::ViewerInterface

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread RJVB
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #9 from RJVB rjvber...@gmail.com ---
Yes, well, I tried that with ktimetracker and failed, probably mostly because I
have no idea how a cast can fail (or what a dynamic_cast really does, and how).
Is this a feature that relies on Qt tech?
Naive question: if Okular::Part *is* an Okular::ViewerInterface then why does a
good old normal cast not work? AFAIK parent and sibling classes can be cast
either way at compile time in C++ (contrary to ObjC where that would indeed
have no effect at all).

Has this been tested with clang on Linux? If it works there, could it be a
problem in libc++ (which is basically the only relevant thing that should be
different when using compilers of the same version).

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 317073] Request to add fade transition to presentation mode

2015-04-03 Thread sahil
https://bugs.kde.org/show_bug.cgi?id=317073

--- Comment #15 from sahil sahilsehgal1...@gmail.com ---
Well i am trying to implement the Push transition. Do i need to report another
bug like this fade transition one or it will be fine if i keep continuing my
work and share updates through this bug only?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread RJVB
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #7 from RJVB rjvber...@gmail.com ---
Maybe I ought to return false when !viFace?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread RJVB
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #6 from RJVB rjvber...@gmail.com ---
Looks like it's that indeed. I had to add the block to canOpenDocs too

part= Okular::Part(0x7ffb3e05f9f0) 
okular(56591) Shell::canOpenDocs: part= Okular::Part(0x7ffb3e05f9f0)
dynamic_castOkular::ViewerInterface*(part)= 0x0 
okular(56591) Shell::canOpenDocs: dynamic_castOkular::ViewerInterface*(part)=
0x0
part= Okular::Part(0x7ffb3e05f9f0) 
okular(56591) Shell::openDocument: part= Okular::Part(0x7ffb3e05f9f0)
dynamic_castOkular::ViewerInterface*(part)= 0x0 
okular(56591) Shell::openDocument:
dynamic_castOkular::ViewerInterface*(part)= 0x0

I've encountered something like this before, with ktimetracker. I've never
understood why this happens.

The good news is that if I do

Okular::ViewerInterface *viFace =
dynamic_castOkular::ViewerInterface*(part);
// Return false if we can't open new tabs and the only part is occupied
if ( viFace  !viFace-openNewFilesInTabs()
  !part-url().isEmpty()
  !ShellUtils::unique(serializedOptions))
{
return false;
}

the document opens, ultimately.

Similar patches in canOpenDoc and openUrl prevent the crash and also the issue
at https://trac.macports.org/ticket/47054

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345830] New: Option to set backend explicitly

2015-04-03 Thread darklin20
https://bugs.kde.org/show_bug.cgi?id=345830

Bug ID: 345830
   Summary: Option to set backend explicitly
   Product: okular
   Version: 0.21.1
  Platform: unspecified
OS: Linux
Status: UNCONFIRMED
  Severity: wishlist
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: darkli...@gmail.com

I do know there's an option to make okular ask backend whenver open a document
and this is not convenient because it asks WHENEVER open a document even though
I only want a specific backend.

An option to set backend to open a document would be helpful.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 317073] Request to add fade transition to presentation mode

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=317073

--- Comment #16 from Albert Astals Cid aa...@kde.org ---
Use reviewboard

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #10 from Albert Astals Cid aa...@kde.org ---
dynamic_cast is a normal cast, i have no idea if it works on clang on Linux or
not sorry.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #12 from Albert Astals Cid aa...@kde.org ---
Right, dynamic_cast is not a C cast, it's a C++ cast.

No, it is not what you wrote, what you wrote is creating a new object, which is
not what dynamic_cast does, dynamic_cast just changes the pointer in run-time
to the target type if the source type can be converted to that type, which in
this case it should be as the debug output shows, but something in your runtime
thinks it can not, when it can.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Review Request 123249: Fixing the KActivities integration (Frameworks branch)

2015-04-03 Thread Ivan Čukić

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123249/
---

Review request for Okular and Albert Astals Cid.


Repository: okular


Description
---

Since the a3fb02b881d commit, the KF5::Activities are a required dependency 
(CMakeLists.txt:31).

Still, the actual code uses ifdefs for KActivities_FOUND macro which no longer 
exists. This patch removes the macros and restores the feature.


Diffs
-

  autotests/CMakeLists.txt 0a0f546 
  shell/CMakeLists.txt ec36582 
  shell/shell.h f345cf3 
  shell/shell.cpp 6bb89c5 

Diff: https://git.reviewboard.kde.org/r/123249/diff/


Testing
---


Thanks,

Ivan Čukić

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345684] Okular hangs after adding an annotation and choosing Save As

2015-04-03 Thread Luke Kendall
https://bugs.kde.org/show_bug.cgi?id=345684

--- Comment #4 from Luke Kendall l...@zeta.org.au ---
I'll take a guess (since I'm running Gnome really, not KDE), that you mean:

# apt-get install libsolid4 kdelibs5-dbg kdelibs5-dev

Okay, after doing that, here's the more informative backtrace:

Starting program: /usr/bin/okular /home/luke/tmp/Reform-Fact-Sheet.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
[New Thread 0x7fffe2382700 (LWP 28986)]
[New Thread 0x7fffe1b81700 (LWP 28987)]
[New Thread 0x7fffe1380700 (LWP 28988)]
[New Thread 0x7fffe0b7f700 (LWP 28989)]
[Thread 0x7fffe1380700 (LWP 28988) exited]
[Thread 0x7fffe0b7f700 (LWP 28989) exited]
okular(28982)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(28982)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(28982)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(28982)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(28982)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
This backend is only for XRandR 1.1, your version is:  1 . 4 
[New Thread 0x7fffe0b7f700 (LWP 28998)]
[New Thread 0x7fffe1380700 (LWP 28999)]
[Thread 0x7fffe0b7f700 (LWP 28998) exited]
[Thread 0x7fffe1380700 (LWP 28999) exited]
[New Thread 0x7fffe1380700 (LWP 29000)]
[Thread 0x7fffe1380700 (LWP 29000) exited]
[New Thread 0x7fffe1380700 (LWP 29001)]
[Thread 0x7fffe1380700 (LWP 29001) exited]
[New Thread 0x7fffe0b7f700 (LWP 29002)]
[New Thread 0x7fffe1380700 (LWP 29003)]
[New Thread 0x7fffc6093700 (LWP 29004)]
[Thread 0x7fffe0b7f700 (LWP 29002) exited]
[Thread 0x7fffe1380700 (LWP 29003) exited]
[Thread 0x7fffc6093700 (LWP 29004) exited]

continue
[New Thread 0x7fffc6093700 (LWP 29016)]
[Thread 0x7fffc6093700 (LWP 29016) exited]
[New Thread 0x7fffe1380700 (LWP 29017)]
[Thread 0x7fffe1380700 (LWP 29017) exited]
[New Thread 0x7fffe1380700 (LWP 29028)]
Object::connect: No such signal
org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal
org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
^C
Program received signal SIGINT, Interrupt.
0x74fdae87 in semop () at ../sysdeps/unix/syscall-template.S:81
81../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) where
#0  0x74fdae87 in semop () at ../sysdeps/unix/syscall-template.S:81
#1  0x759cd4dc in QSystemSemaphorePrivate::modifySemaphore (
this=0x1295770, count=count@entry=-1)
at kernel/qsystemsemaphore_unix.cpp:303
#2  0x759cad2d in QSystemSemaphore::acquire (this=this@entry=0x12794e8)
at kernel/qsystemsemaphore.cpp:285
#3  0x739eba13 in SharedContentTypesCache (this=0x12794e0)
at ../../../solid/solid/backends/udisks2/udisksopticaldisc.cpp:257
#4  operator- (this=optimised out)
at ../../../solid/solid/backends/udisks2/udisksopticaldisc.cpp:313
#5  Solid::Backends::UDisks2::OpticalDisc::availableContent (this=this@entry=
0x7fffc170)
at ../../../solid/solid/backends/udisks2/udisksopticaldisc.cpp:418
#6  0x739e255a in Solid::Backends::UDisks2::Device::icon (
this=0x1222f50)
at ../../../solid/solid/backends/udisks2/udisksdevice.cpp:615
#7  0x73983419 in Solid::Device::icon (this=this@entry=0x1241db8)
at ../../../solid/solid/device.cpp:138
#8  0x7fffc67e3238 in KFilePlacesItem::KFilePlacesItem (this=0x1241d80, 
manager=optimised out, address=..., udi=...)
at ../../kfile/kfileplacesitem.cpp:68
#9  0x7fffc67e5a4b in KFilePlacesModel::Private::loadBookmarkList (
this=this@entry=0x111f740) at ../../kfile/kfileplacesmodel.cpp:468
#10 0x7fffc67e5af3 in KFilePlacesModel::Private::_k_reloadBookmarks (
this=this@entry=0x111f740) at ../../kfile/kfileplacesmodel.cpp:362
#11 0x7fffc67e6baf in KFilePlacesModel::Private::_k_initDeviceList (
this=0x111f740) at ../../kfile/kfileplacesmodel.cpp:329
#12 0x7fffc67e6ed1 in KFilePlacesModel::qt_static_metacall (_o=0x10f04e0, 
_id=-16448, _a=0x1, _c=optimised out) at ./kfileplacesmodel.moc:67
#13 0x759b8c1e in QObject::event (this=0x10f04e0, e=optimised out)
at kernel/qobject.cpp:1194
#14 0x76392e2c in QApplicationPrivate::notify_helper (
this=this@entry=0x651b90, receiver=receiver@entry=0x10f04e0, e=e@entry=
0xf64d80) at kernel/qapplication.cpp:4567
#15 0x763994a0 in QApplication::notify (
this=this@entry=0x7fffe110, receiver=receiver@entry=0x10f04e0, 
e=e@entry=0xf64d80) at kernel/qapplication.cpp:4353
#16 0x7709dd1a in KApplication::notify (this=0x7fffe110, 
receiver=0x10f04e0, event=0xf64d80)
at ../../kdeui/kernel/kapplication.cpp:311
#17 0x759a04dd in QCoreApplication::notifyInternal (this=
0x7fffe110, receiver=receiver@entry=0x10f04e0, 
event=event@entry=0xf64d80) at kernel/qcoreapplication.cpp:953
#18 0x759a3b3d in sendEvent (event=0xf64d80, receiver=0x10f04e0)

[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread RJVB
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #3 from RJVB rjvber...@gmail.com ---
Here's the backtrace requested. Okular was invoked as
/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular
https://some.web.site/courriersweb/affichagepdf:pdf/2014239153763 --icon okular
-caption Okular

Application: Okular (okular), signal: Segmentation fault: 11
(lldb) process attach --pid 52015
Process 52015 stopped
Executable module set to
/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular.
Architecture set to: x86_64-apple-macosx.
(lldb) set set term-width 200
(lldb) thread info
thread #1: tid = 0x20b5799, 0x7fff869d4e20 libsystem_kernel.dylib`__wait4 +
8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

(lldb) bt all
* thread #1: tid = 0x20b5799, 0x7fff869d4e20 libsystem_kernel.dylib`__wait4
+ 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x7fff869d4e20 libsystem_kernel.dylib`__wait4 + 8
frame #1: 0x00010f5ceaae libkdeui.5.dylib`KCrash::startProcess(int,
char const**, bool) [inlined] startProcessInternal(argc=unavailable,
directly=unavailable) + 265 at kcrash.cpp:556
frame #2: 0x00010f5ce9a5
libkdeui.5.dylib`KCrash::startProcess(argc=unavailable, argv=unavailable,
waitAndExit=unavailable) + 21 at kcrash.cpp:538
frame #3: 0x00010f5cdbd9
libkdeui.5.dylib`KCrash::defaultCrashHandler(sig=unavailable) + 1209 at
kcrash.cpp:441
frame #4: 0x7fff8c1375aa libsystem_platform.dylib`_sigtramp + 26
frame #5: 0x00010eadd821
okular`Shell::openDocument(this=0x7fbe2e1a88d0, url=0x7fff5112db60,
serializedOptions=0x7fff5112e048) + 129 at shell.cpp:174
frame #6: 0x00010ead9913 okular`Okular::main(paths=0x7fff5112e058,
serializedOptions=0x7fff5112e048) + 5619 at okular_main.cpp:148
frame #7: 0x00010ead6ee2 okular`main(argc=unavailable,
argv=unavailable) + 1666 at main.cpp:51
frame #8: 0x7fff9158f5fd libdyld.dylib`start + 1
frame #9: 0x7fff9158f5fd libdyld.dylib`start + 1

  thread #2: tid = 0x20b579a, 0x7fff869d5662
libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
frame #0: 0x7fff869d5662 libsystem_kernel.dylib`kevent64 + 10
frame #1: 0x7fff9217a421 libdispatch.dylib`_dispatch_mgr_invoke + 239
frame #2: 0x7fff9217a136 libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #3: tid = 0x20b579b, 0x7fff869d4e6a
libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x7fff869d4e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x7fff87c51f08 libsystem_pthread.dylib`_pthread_wqthread +
330
frame #2: 0x7fff87c54fb9 libsystem_pthread.dylib`start_wqthread + 13

  thread #4: tid = 0x20b57b4, 0x7fff869d4e6a
libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x7fff869d4e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x7fff87c51f08 libsystem_pthread.dylib`_pthread_wqthread +
330
frame #2: 0x7fff87c54fb9 libsystem_pthread.dylib`start_wqthread + 13

  thread #5: tid = 0x20b57b9, 0x7fff869d49aa
libsystem_kernel.dylib`__select + 10, name = 'com.apple.CFSocket.private'
frame #0: 0x7fff869d49aa libsystem_kernel.dylib`__select + 10
frame #1: 0x7fff910b4a03 CoreFoundation`__CFSocketManager + 867
frame #2: 0x7fff87c50899 libsystem_pthread.dylib`_pthread_body + 138
frame #3: 0x7fff87c5072a libsystem_pthread.dylib`_pthread_start + 137
frame #4: 0x7fff87c54fc9 libsystem_pthread.dylib`thread_start + 13

  thread #6: tid = 0x20b5967, 0x7fff869d4e6a
libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x7fff869d4e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x7fff87c51f08 libsystem_pthread.dylib`_pthread_wqthread +
330
frame #2: 0x7fff87c54fb9 libsystem_pthread.dylib`start_wqthread + 13
(lldb) detach
Process 52015 detached
(lldb) (lldb) quit

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

2015-04-03 Thread RJVB
https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #4 from RJVB rjvber...@gmail.com ---
Running Okular with all its debug domains activated through kdebugdialog didn't
teach me anything useful (no output at all).

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel