Bug 493727 - computer freezes when opening pdf
Summary: computer freezes when opening pdf
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 23.08.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-27 09:30 UTC by Amnon
Modified: 2024-10-23 20:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
terminal output (4.34 KB, text/plain)
2024-10-16 13:18 UTC, Amnon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amnon 2024-09-27 09:30:01 UTC
SUMMARY

When opening a pdf file, often the *computer freezes* for about a minute. 

Without any warning or indication. 

Then computer contiues normally. 
 
Of course this is a bad bug. It harms work on the computer.

This bug first appeared about 2 weeks ago. 


STEPS TO REPRODUCE
1. open pdf file
2. computer freezes
3. wait about 1 minute

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-45-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Dell Inc.
Product Name: XPS 13 9310



ADDITIONAL INFORMATION

On my other computer (DELL desktop) this bug does not show.
Comment 1 Amnon 2024-10-01 07:30:49 UTC
It seems that the problem goes beyond OKULAR to other PDF related operations.
There is freezing (of varying lenfhth, and not always) also when opening a PDF file in DOCUMENT VIEWER. 
Sometimes delays when saving a PDF file (say from an email).
Comment 2 Amnon 2024-10-16 09:20:29 UTC

The bug is still here. Today interrupted my work twice.
Comment 3 Sune Vuorela 2024-10-16 09:24:17 UTC
IS it related to a specific PDF file or does any pdffile trigger it for you ?
Comment 4 Amnon 2024-10-16 10:33:01 UTC
(In reply to Sune Vuorela from comment #3)
> IS it related to a specific PDF file or does any pdffile trigger it for you ?

It happens for random PDF files. I can't find a pattern. Happens about 1-3 times a day. 
Either when opening by OKULAR, or when saving a pdf file from an email to a local folder.
Comment 5 Sune Vuorela 2024-10-16 10:43:59 UTC
(In reply to Amnon from comment #4)
> (In reply to Sune Vuorela from comment #3)
> > IS it related to a specific PDF file or does any pdffile trigger it for you ?
> 
> It happens for random PDF files. I can't find a pattern. Happens about 1-3
> times a day. 
> Either when opening by OKULAR, or when saving a pdf file from an email to a
> local folder.

This honestly sounds more like some sort of system driver (filesystem, device, graphics) lockup or bad hardware. Try look at syslog and dmesg and see if anything has been logged there while issue is seen.

With the amount of PDF files I open daily when hacking on Okular and Poppler, I don't think I have seen that ever.
Comment 6 Amnon 2024-10-16 11:08:32 UTC
(In reply to Sune Vuorela from comment #5)
> (In reply to Amnon from comment #4)
> > (In reply to Sune Vuorela from comment #3)
> > > IS it related to a specific PDF file or does any pdffile trigger it for you ?
> > 
> > It happens for random PDF files. I can't find a pattern. Happens about 1-3
> > times a day. 
> > Either when opening by OKULAR, or when saving a pdf file from an email to a
> > local folder.
> 
> This honestly sounds more like some sort of system driver (filesystem,
> device, graphics) lockup or bad hardware. Try look at syslog and dmesg and
> see if anything has been logged there while issue is seen.
> 
> With the amount of PDF files I open daily when hacking on Okular and
> Poppler, I don't think I have seen that ever.

I did get some error messages now, in DMESG and SYSLOG. Related to opening pdf files, even though the freezing bug did not occur. 
Can I upload them?
Comment 7 Sune Vuorela 2024-10-16 12:16:35 UTC
(In reply to Amnon from comment #6)
> I did get some error messages now, in DMESG and SYSLOG. Related to opening
> pdf files, even though the freezing bug did not occur. 
> Can I upload them?

you can try.

/Sune
Comment 8 Amnon 2024-10-16 13:18:49 UTC
Created attachment 174890 [details]
terminal output
Comment 9 Amnon 2024-10-16 13:19:59 UTC
(In reply to Amnon from comment #8)
> Created attachment 174890 [details]
> terminal output

Created attachment 174890 [details]
Comment 10 Amnon 2024-10-16 13:23:15 UTC
(In reply to Sune Vuorela from comment #7)
> (In reply to Amnon from comment #6)
> > I did get some error messages now, in DMESG and SYSLOG. Related to opening
> > pdf files, even though the freezing bug did not occur. 
> > Can I upload them?
> 
> you can try.
> 
> /Sune

(reply misdirected)
Created attachment 174890 [details]
terminal output
Comment 11 Sune Vuorela 2024-10-16 13:26:41 UTC
This is a bug in the intel driver (fixed a year ago in certain kernels; please ask your distribution for a kernel with the relevant fixes) 

It seems to be this: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8685
Comment 12 Amnon 2024-10-16 15:30:34 UTC
(In reply to Sune Vuorela from comment #11)
> This is a bug in the intel driver (fixed a year ago in certain kernels;
> please ask your distribution for a kernel with the relevant fixes) 
> 
> It seems to be this:
> https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8685

Thanks! At least now I know where the problem lies. 
I will try KUBUNTU 24.10, via upgrade route. It comes with kernel 6.11.
Comment 13 Amnon 2024-10-16 15:58:17 UTC
(In reply to Sune Vuorela from comment #11)
> This is a bug in the intel driver (fixed a year ago in certain kernels;
> please ask your distribution for a kernel with the relevant fixes) 
> 
> It seems to be this:
> https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8685

I first opened this bug report: 
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2084700
Will wait a while before any upgrades.
Comment 14 Amnon 2024-10-23 20:57:49 UTC
I have upgraded the computer to KUBUNTU 24.10.
So far I have no issues with PDF files nor with the i915.
Both OKULAR and other related stuff seem ok here.