Summary: | Segmentation fault opening a recent file | ||
---|---|---|---|
Product: | [Unmaintained] kpdf | Reporter: | 81joe81 |
Component: | general | Assignee: | Albert Astals Cid <aacid> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.5 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
81joe81
2005-12-11 11:39:43 UTC
Does this crash still happen if you open if from command line kpdf, that is open konsole and write kdpf pathToDocument. I tried to lauch it from konsole typing "kpdf" and I did same steps as before, that is I tried to open the file keeping clicked the open icon, and kpdf crashed in the same way. I have not yet tried to open the file directly from the command line, because I think that in this way the crash will not happen: I have already opened this file at least 5 times before today.. I think the problem is related to the way I try to open it (by selecting it from the "recent files") and not to the file itself The code used for opening a file via the file->open or via recent files is exactly the same. Can you please paste the contents of the Recent Files key of your .kde/share/config/kpdfrc file? This is the config file: [Desktop Entry] FullScreen=false [General] ShowAlternativeShortcutConfig=false [KFileDialog Settings] Recent Files=$HOME/guitar/REM - Losing My Religion.pdf,$HOME/amule/Green Day - Good Riddance - Tabs.pdf,$HOME/amule/Radiohead - Karma Police Original.pdf,$HOME/amule/Radiohead - Karma Police-Exit Music (For A Film)-Paranoid Android.pdf,$HOME/amule/Alanis Morissette - Ironic.pdf,$HOME/ironic.pdf,$HOME/ironic.ps,$HOME/amule/Rolling Stones - Angie.pdf,$HOME/print.pdf,$HOME/amule/(Guitar Songbook) Pink Floyd - Wish You Were Here.pdf,$HOME/amule/Pink Floyd - Best of Band Score (guitar songbook).pdf,$HOME/amule/Pink Floyd - Wish You Were Here (Guitar Songbook).pdf,$HOME/word/ritmica.pdf,$HOME/amule/Patty Smyth - Because The Night.pdf,$HOME/amule/REM - Losing My Religion.pdf,$HOME/amule/Superman (Five for Fighting) [Sheet music].pdf [KPrinter Settings] ApplicationOptions= DialogReduced=false PrintCommand= Printer=HPDeskJet930C [MainWindow] Height 768=769 Width 1024=1025 [RecentFiles] File1=/tmp/organizational_chart.pdf File10=$HOME/print.pdf File2=$HOME/guitar/REM - Losing My Religion.pdf File3=$HOME/amule/Radiohead - Karma Police Original.pdf File4=$HOME/amule/Green Day - Good Riddance - Tabs.pdf File5=$HOME/amule/Radiohead - Karma Police-Exit Music (For A Film)-Paranoid Android.pdf File6=$HOME/amule/Alanis Morissette - Ironic.pdf File7=$HOME/ironic.pdf File8=$HOME/ironic.ps File9=$HOME/amule/Rolling Stones - Angie.pdf Name1=organizational_chart.pdf Name10=print.pdf Name2=REM - Losing My Religion.pdf Name3=Radiohead - Karma Police Original.pdf Name4=Green Day - Good Riddance - Tabs.pdf Name5=Radiohead - Karma Police-Exit Music (For A Film)-Paranoid Android.pdf Name6=Alanis Morissette - Ironic.pdf Name7=ironic.pdf Name8=ironic.ps Name9=Rolling Stones - Angie.pdf I've tried to open that file (REM - Losing my religion.pdf) from the normal open file icon and kpdf opened it without problems. I've closed kpdf, restart it and trying again to open the file via the recent files icon and kpdf crashed again Ok, confirmed there's some problem in recent files handling, this is more a kdelibs problem than a kdpf problem, i'll try to find a fix and if not i'll pass it to the appropiate person. SVN commit 487990 by aacid: Fix bug 118103, using url after erasing it is bad. Patch aproved by dfaure. David i'll leave you the fixing of the commment about refcounting BUG: 118103 M +2 -2 kactionclasses.cpp --- branches/KDE/3.5/kdelibs/kdeui/kactionclasses.cpp #487989:487990 @@ -1128,8 +1128,8 @@ } // add file to list - QString title = url.fileName() + " [" + file + "]"; - d->m_shortNames.insert( title, url.fileName() ); + QString title = u.fileName() + " [" + file + "]"; + d->m_shortNames.insert( title, u.fileName() ); d->m_urls.insert( title, u ); lst.prepend( title ); setItems( lst ); |