Summary: | crash when opening xps files | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Peng Zhang <pczhang> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | bradh, thmarkus |
Priority: | NOR | ||
Version: | 0.10.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | xps file that caused crash |
Description
Peng Zhang
2010-09-10 01:09:43 UTC
Can you attach the file that causes the crash? Created attachment 51495 [details]
xps file that caused crash
Works for me, can you please run valgrind okular /path/to/my/file.xps and paste the output? (In reply to comment #3) > Works for me, can you please run > valgrind okular /path/to/my/file.xps > and paste the output? ==3019== Memcheck, a memory error detector ==3019== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==3019== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==3019== Command: okular /media/PZHANG/mzdhl.xps ==3019== okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: ==3019== Thread 3: ==3019== Invalid read of size 4 ==3019== at 0x15721330: XpsFile::getFontByName(QString const&, float) (qatomic_x86_64.h:121) ==3019== by 0x15722690: XpsPage::textPage() (generator_xps.cpp:1643) ==3019== by 0x15723295: XpsGenerator::textPage(Okular::Page*) (generator_xps.cpp:2128) ==3019== by 0x11B99A21: Okular::TextPageGenerationThread::run() (generator_p.cpp:103) ==3019== by 0x6321774: QThreadPrivate::start(void*) (qthread_unix.cpp:248) ==3019== by 0x92A39C9: start_thread (pthread_create.c:300) ==3019== by 0x77BC72C: clone (clone.S:112) ==3019== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==3019== KCrash: Application 'okular' crashing... sock_file=/home/pczhang/.kde/socket-W500/kdeinit4__0 [1]+ Stopped valgrind okular /media/PZHANG/mzdhl.xps (In reply to comment #3) > Works for me, can you please run > valgrind okular /path/to/my/file.xps > and paste the output? pczhang@W500:~$ valgrind okular /media/PZHANG/mzdhl.xps ==3019== Memcheck, a memory error detector ==3019== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==3019== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==3019== Command: okular /media/PZHANG/mzdhl.xps ==3019== okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: ==3019== Thread 3: ==3019== Invalid read of size 4 ==3019== at 0x15721330: XpsFile::getFontByName(QString const&, float) (qatomic_x86_64.h:121) ==3019== by 0x15722690: XpsPage::textPage() (generator_xps.cpp:1643) ==3019== by 0x15723295: XpsGenerator::textPage(Okular::Page*) (generator_xps.cpp:2128) ==3019== by 0x11B99A21: Okular::TextPageGenerationThread::run() (generator_p.cpp:103) ==3019== by 0x6321774: QThreadPrivate::start(void*) (qthread_unix.cpp:248) ==3019== by 0x92A39C9: start_thread (pthread_create.c:300) ==3019== by 0x77BC72C: clone (clone.S:112) ==3019== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==3019== KCrash: Application 'okular' crashing... sock_file=/home/pczhang/.kde/socket-W500/kdeinit4__0 [1]+ Stopped valgrind okular /media/PZHANG/mzdhl.xps pczhang@W500:~$ ==3019== ==3019== HEAP SUMMARY: ==3019== in use at exit: 6,763,222 bytes in 48,061 blocks ==3019== total heap usage: 578,044 allocs, 529,983 frees, 120,870,688 bytes allocated ==3019== ==3019== LEAK SUMMARY: ==3019== definitely lost: 7,496 bytes in 46 blocks ==3019== indirectly lost: 21,000 bytes in 659 blocks ==3019== possibly lost: 1,876,144 bytes in 25,989 blocks ==3019== still reachable: 4,858,582 bytes in 21,367 blocks ==3019== suppressed: 0 bytes in 0 blocks ==3019== Rerun with --leak-check=full to see details of leaked memory ==3019== ==3019== For counts of detected and suppressed errors, rerun with: -v ==3019== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 15 from 5) [1]+ Exit 253 valgrind okular /media/PZHANG/mzdhl.xps I see you are using "Ubuntu 10.04.1 LTS", do you have anything installed from packages or do you have some custom compiled packages around? Also can you please run dpkg -l | grep fontconfig in a shell and paste the output? And the same for set | grep LANG and set | grep LC_ Hi, I have installed dropbox and nxclient from debs, and backported auctex and preview-latex from ubuntu maverick. pczhang@W500:~$ dpkg -l | grep fontconfig ii fontconfig 2.8.0-2ubuntu1 generic font configuration library - support binaries ii fontconfig-config 2.8.0-2ubuntu1 generic font configuration library - configuration ii libfontconfig1 2.8.0-2ubuntu1 generic font configuration library - runtime pczhang@W500:~$ set | grep LANG GDM_LANG=en_US.utf8 LANG=en_US.utf8 LANGUAGE=en_US:en LANG=C LC_MESSAGES=C svn info --non-interactive 2> /dev/null | while read line; do pczhang@W500:~$ set | grep LC_ LC_CTYPE=zh_CN.UTF-8 local LC_CTYPE=C; LANG=C LC_MESSAGES=C svn info --non-interactive 2> /dev/null | while read line; do Thank you for your time and let me know if I can provide more information. Best, Peng (In reply to comment #6) > I see you are using "Ubuntu 10.04.1 LTS", do you have anything installed from > packages or do you have some custom compiled packages around? > > Also can you please run > dpkg -l | grep fontconfig > in a shell and paste the output? > > And the same for > set | grep LANG > and > set | grep LC_ LC_CTYPE=zh_CN.UTF-8 is the culprit, i yet have to discover way. As a temporary workaround you can open a shell and assuming you use bash you can do export LC_CTYPE=C and then run okular from that shell I can confirm that your workaround solves the problem. Thanks! (In reply to comment #8) > LC_CTYPE=zh_CN.UTF-8 > is the culprit, i yet have to discover way. > As a temporary workaround you can open a shell and assuming you use bash you > can do > export LC_CTYPE=C > and then run okular from that shell I think this is a bug in Qt. I've created a test case and filed an upstream bug report (http://bugreports.qt.nokia.com/browse/QTBUG-14269). If that gets acknowledged as a Qt bug (rather than the way we're using QFontDatabase), then I'll close this bug. This was acknowledged as a P2 bug in Qt, planned for a 4.7.x fix. |