You are not logged in.

#1 2024-06-08 11:17:37

capstayn
Member
Registered: 2017-11-25
Posts: 17

CPU ramps up when using libreoffice [SOLVED]

Recently a rather strange thing has started occurring when using libreoffice: whenever I apply some action on a libreoffice file (opening, closing down, saving, or even moving it around folders with ranger) the CPU ramps up until the laptop freezes. As it happens, these actions trigger pandoc which tries to open the file in question. It obviously fails, but somehow it provokes a CPU crisis.

I have got used to instantly kill pandoc the moment I do something with libreoffice, but I have no idea as to how to debug this issue, let alone to fix it.

I'm guessing that ranger has to do with this issue but I haven't corroborated this.

dmesg shows these logs, if anyone can make anything of them:

# dmesg | grep pandoc

[324066.357497] pandoc invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0
[324066.357520] CPU: 7 PID: 1222216 Comm: pandoc Tainted: P      D    OE      6.9.2-arch1-1 #1 0c9f583c4dce67c6fc47fa44804d20ac179c7f14
[324066.358722] [1222216]  1000 1222216 268575831  1867400  1866304     1096         0 15601664        0             0 pandoc
[324066.358729] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-2.scope,task=pandoc,pid=1222216,uid=1000
[324066.358789] Out of memory: Killed process 1222216 (pandoc) total-vm:1074303324kB, anon-rss:7465216kB, file-rss:4384kB, shmem-rss:0kB, UID:1000 pgtables:15236kB oom_score_adj:0
[346162.052323] [1316635]  1000 1316635 268575831  1610494  1610400       94         0 13537280        0             0 pandoc
[346162.052331] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-2.scope,task=pandoc,pid=1316635,uid=1000
[346162.052353] Out of memory: Killed process 1316635 (pandoc) total-vm:1074303324kB, anon-rss:6441600kB, file-rss:376kB, shmem-rss:0kB, UID:1000 pgtables:13220kB oom_score_adj:0
[346368.544274] pandoc invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[346368.544286] CPU: 5 PID: 1318552 Comm: pandoc Tainted: P      D    OE      6.9.2-arch1-1 #1 0c9f583c4dce67c6fc47fa44804d20ac179c7f14
[346368.544801] [1318552]  1000 1318552 268575831  1903712  1903520      192         0 15900672        0             0 pandoc
[346368.544820] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-2.scope,task=pandoc,pid=1318552,uid=1000
[346368.544847] Out of memory: Killed process 1318552 (pandoc) total-vm:1074303324kB, anon-rss:7614080kB, file-rss:768kB, shmem-rss:0kB, UID:1000 pgtables:15528kB oom_score_adj:0
[347292.806687] [1327425]  1000 1327425 268575831  1790278  1790208       70         0 14991360        0             0 pandoc
[347292.806707] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-2.scope,task=pandoc,pid=1327425,uid=1000
[347292.806727] Out of memory: Killed process 1327425 (pandoc) total-vm:1074303324kB, anon-rss:7160832kB, file-rss:280kB, shmem-rss:0kB, UID:1000 pgtables:14640kB oom_score_adj:0
[394468.428146] [1376507]  1000 1376507 268575831  1497268  1497056      212         0 12627968        0             0 pandoc
[394468.428150] [1376622]  1000 1376622 268575831   396136   396000      136         0  3809280        0             0 pandoc
[394468.428168] [1376707]  1000 1376707     2829      128        0      128         0    61440        0             0 pandoc
[394468.428170] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-2.scope,task=pandoc,pid=1376507,uid=1000
[394468.428190] Out of memory: Killed process 1376507 (pandoc) total-vm:1074303324kB, anon-rss:5988224kB, file-rss:848kB, shmem-rss:0kB, UID:1000 pgtables:12332kB oom_score_adj:0
#dmesg | grep ranger

[324066.358673] [1202744]  1000 1202744    10249     4482     4412       70         0   122880        0             0 ranger
[346162.052294] [1202744]  1000 1202744    10854     5172     5020      152         0   122880        0             0 ranger
[346368.544761] [1202744]  1000 1202744    10854     5236     5020      216         0   122880        0             0 ranger
[347292.806648] [1202744]  1000 1202744    10854     5204     5084      120         0   122880        0             0 ranger
[347292.806683] [1327308]  1000 1327308     9663     3954     3837      117         0   118784        0             0 ranger
[394468.428105] [1202744]  1000 1202744    11630     5823     5788       35         0   131072        0             0 ranger

The command

 #dmesg | grep libreoffice 

shows nothing.

Any hint to debug this will be very welcomed.

Also, I would assume that the kernel wouldn't allow any process to take up more than say 50% of the CPU share?

Last edited by capstayn (2024-06-08 13:27:26)

Offline

#2 2024-06-08 12:43:38

seth
Member
Registered: 2012-09-03
Posts: 60,801

Offline

#3 2024-06-08 13:26:58

capstayn
Member
Registered: 2017-11-25
Posts: 17

Re: CPU ramps up when using libreoffice [SOLVED]

Oh wow, I could have found that myself... I feel a bit stupid :)

Thanks, marked as solved.

Last edited by capstayn (2024-06-08 13:27:55)

Offline

Board footer

Powered by FluxBB