Bug 30849

Summary: PDF file is rendered wrong
Product: poppler Reporter: Yuri <yuri>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments: PDF testcase

Description Yuri 2010-10-13 15:43:07 UTC
Created attachment 39422 [details]
PDF testcase

When I am trying to open the attached file in okular, it only shows some boxes but no text.


poppler-0.12.4
Qt: 4.6.3
KDE Development Platform: 4.5.2 (KDE 4.5.2)
Okular: 0.11.2
Comment 1 Albert Astals Cid 2010-10-13 15:48:27 UTC
Works for me, which freetype are you using? Can you attach a screenshot and the output of okular in the shell if any?
Comment 2 Yuri 2010-10-13 19:48:03 UTC
okular prints some errors, see below.
Not sure what got broken.

---- error log ----
okular(2264)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase 
okular(2264)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase 
okular(2264)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2264)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2264)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Error: Found a bad table definition on true type definition, trying to continue... 
Error: Found a bad table definition on true type definition, trying to continue... 
Error: Couldn't create a font for 'TT0W700S+Courier-New' 
Error: Found a bad table definition on true type definition, trying to continue... 
Error: Found a bad table definition on true type definition, trying to continue... 
Error: Couldn't create a font for 'TT0W700S+Courier-New' 
Error: Found a bad table definition on true type definition, trying to continue... 
Error: Found a bad table definition on true type definition, trying to continue...
Comment 3 Albert Astals Cid 2010-10-14 00:47:35 UTC
You didn't answer the freetype version question. Seems very much like and old freetype to me
Comment 4 Yuri 2010-10-14 09:37:38 UTC
Sorry I missed your question.

freetype2-2.4.2
Comment 5 Albert Astals Cid 2010-10-14 10:59:56 UTC
Can you update your poppler to something newer than that old version?
Comment 6 Yuri 2010-10-14 12:36:05 UTC
Is it possible that okular doesn't use poppler at all now?
shared poppler lib isn't linked to okular. And it's size is only 65KB so no static link either.

$ ldd /usr/local/kde4/bin/okular 
/usr/local/kde4/bin/okular:
        libkparts.so.5 => /usr/local/kde4/lib/libkparts.so.5 (0x800654000)
        libkio.so.7 => /usr/local/kde4/lib/libkio.so.7 (0x8007c8000)
        libQtNetwork.so.4 => /usr/local/lib/qt4/libQtNetwork.so.4 (0x800c4c000)
        libQtXml.so.4 => /usr/local/lib/qt4/libQtXml.so.4 (0x800ea2000)
        libnepomuk.so.5 => /usr/local/kde4/lib/libnepomuk.so.5 (0x800fed000)
        libkdeui.so.7 => /usr/local/kde4/lib/libkdeui.so.7 (0x8011a9000)
        libQtGui.so.4 => /usr/local/lib/qt4/libQtGui.so.4 (0x8017d5000)
        libQtSvg.so.4 => /usr/local/lib/qt4/libQtSvg.so.4 (0x802441000)
        libkdecore.so.7 => /usr/local/kde4/lib/libkdecore.so.7 (0x8025a5000)
        libQtCore.so.4 => /usr/local/lib/qt4/libQtCore.so.4 (0x802a38000)
        libQtDBus.so.4 => /usr/local/lib/qt4/libQtDBus.so.4 (0x802ded000)
        libsoprano.so.4 => /usr/local/lib/libsoprano.so.4 (0x802f7b000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x803182000)
        libm.so.5 => /lib/libm.so.5 (0x803392000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8034b2000)
        libthr.so.3 => /lib/libthr.so.3 (0x8035c0000)
        libc.so.7 => /lib/libc.so.7 (0x8036d9000)
        libz.so.5 => /lib/libz.so.5 (0x80391a000)
        libstreamanalyzer.so.0 => /usr/local/lib/libstreamanalyzer.so.0 (0x803a2f000)
        libstreams.so.0 => /usr/local/lib/libstreams.so.0 (0x803bd2000)
        libsolid.so.5 => /usr/local/kde4/lib/libsolid.so.5 (0x803d25000)
        libSM.so.6 => /usr/local/lib/libSM.so.6 (0x803edb000)
        libICE.so.6 => /usr/local/lib/libICE.so.6 (0x803fe3000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x8040fd000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0x80432c000)
        libXft.so.2 => /usr/local/lib/libXft.so.2 (0x80443d000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x804550000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x804653000)
        libXpm.so.4 => /usr/local/lib/libXpm.so.4 (0x804758000)
        libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x804869000)
        libsopranoclient.so.1 => /usr/local/lib/libsopranoclient.so.1 (0x804972000)
        libdbusmenu-qt.so.2 => /usr/local/lib/libdbusmenu-qt.so.2 (0x804acd000)
        libXtst.so.6 => /usr/local/lib/libXtst.so.6 (0x804bfa000)
        libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0x804d00000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0x804e0a000)
        libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0x804f0f000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x805013000)
        libpng.so.6 => /usr/local/lib/libpng.so.6 (0x8051e4000)
        libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x80530a000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x80548c000)
        libbz2.so.4 => /usr/lib/libbz2.so.4 (0x8055be000)
        liblzma.so.0 => /usr/local/lib/liblzma.so.0 (0x8056ce000)
        libintl.so.9 => /usr/local/lib/libintl.so.9 (0x8057ee000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x8058f7000)
        libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x805af1000)
        libxcb.so.2 => /usr/local/lib/libxcb.so.2 (0x805d3c000)
        libpthread-stubs.so.0 => /usr/local/lib/libpthread-stubs.so.0 (0x805e56000)
        librpcsvc.so.5 => /usr/lib/librpcsvc.so.5 (0x805f57000)
        libXi.so.6 => /usr/local/lib/libXi.so.6 (0x806060000)
        libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x80616e000)
        libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x8062a4000)
Comment 7 Yuri 2010-10-14 12:44:14 UTC
Disregard my previous message. Looks like libpoppler is loaded dynamically since when I delete the lib file okular fails with the message.

No, it's not too easy to update to the later version for me. Need to rebuild many things depending on it. Will do this once I have an opportunity.

I am on FreeBSD-8.1 -- all comes from ports
Comment 8 Yuri 2010-10-14 12:53:44 UTC
Based on FreeBSD feedback update in poppler is coming soon with the gnome update currently being tested.
So I will wait until then and then revisit this PR.
Comment 9 Albert Astals Cid 2010-10-16 07:10:53 UTC
I've commited to poppler 0.15.1 a minor fix that makes this pdf render correctly in okular, if you upgrade to 0.15.1 or newer and it still fails, please reopne the bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.