Very slow with big high res pdf (and uses only one processor core)

未關閉
#619 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
32/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
c

研究方向

在 Mint 21.2 上的 Xreader 3.8.2 中開啟 BG3_Artbook_High_Res.pdf 以重現變慢問題,並將頁面切換、縮放、關閉和 CPU 使用率與 Firefox 進行比較。將終端機輸出作為額外內容;完成的標準是檔案能可靠開啟,並在正常使用期間保持回應。

由索引模型根據 Issue 內容生成。

描述

Distribution

Mint 21.2

Package version

3.8.2

Frequency

Always

Bug description

Slow file: "BG3_Artbook_High_Res.pdf" (bought online)
Size: 301,6MB
Producer: Adobe PDF Library 17.0
Creator: Adobe InDesign 18.3 (Macintosh)
Format: PDF-1.7
Number of pages: 97
Optimized: Yes
Security: No
Paper Size: 220 x 282 mm

Workaround: I can watch this file with Firefox 117.0, with normal speed (problem only with the Xreader?).

File doesn't always open (force quit). When it opens, it is very slow. It can take over a minute to change a page.
It uses always only one cpu core (100%).

If I try to zoom, it is also very slow. After zoom is ready, it is fast to scroll.

Even closing the program is very slow and can end up to a "force quit -window".

I have tested this with two AMD computers which are both slow with this file (even 5700X with 32MB).

Steps to reproduce

Open "big HQ" file normally and try to use.

Expected behavior

File should always open, and be fast to use.

Additional information

Terminal:
user@userPC:~/Documents$ xreader BG3_Artbook_High_Res.pdf
(xreader:12139): XApp-CRITICAL **: 16:59:21.663: new_portal_callback: assertion 'XAPP_IS_DARK_MODE_MANAGER (user_data)' failed

主要語言
C
星號
286
分支
87
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

linuxmint/xreader 的其他 Issue

查看 linuxmint/xreader 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。