[okular] [Bug 424522] dynamic_cast<Okular::ViewerInterface *>(activePart) is null

12101111 bugzilla_noreply at kde.org
Wed Jul 22 04:40:18 BST 2020


https://bugs.kde.org/show_bug.cgi?id=424522

--- Comment #1 from 12101111 <w12101111 at outlook.com> ---
The bracktrace of (2) is different with (1):

* thread #1, name = 'okular', stop reason = signal SIGSEGV: invalid address
(fault address: 0x0)
    frame #0: 0x000000000021737d
okular`Shell::openDocument(this=0x000000000031ff40, url=0x00007fffffffb3a0,
serializedOptions=0x00007fffffffb468) at shell.cpp:226:57
   223      KParts::ReadWritePart* const part = m_tabs[0].part;
   224 
   225      // Return false if we can't open new tabs and the only part is
occupied
-> 226      if (
!dynamic_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs()
   227           && !part->url().isEmpty()
   228           && !ShellUtils::unique(serializedOptions))
   229      {
(lldb) bt
* thread #1, name = 'okular', stop reason = signal SIGSEGV: invalid address
(fault address: 0x0)
  * frame #0: 0x000000000021737d
okular`Shell::openDocument(this=0x000000000031ff40, url=0x00007fffffffb3a0,
serializedOptions=0x00007fffffffb468) at shell.cpp:226:57
    frame #1: 0x0000000000213ef3 okular`Okular::main(paths=<unavailable>,
serializedOptions=0x00007fffffffb468) at okular_main.cpp:181:21
    frame #2: 0x00000000002119f7 okular`main(argc=2, argv=<unavailable>) at
main.cpp:100:33
    frame #3: 0x00007ffff5d2fcaa libc.so.6`__libc_start_main + 234
    frame #4: 0x000000000020fc4a okular`_start + 42

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list