| Summary: | High CPU Usage when opening any translation file | ||
|---|---|---|---|
| Product: | [Applications] lokalize | Reporter: | Gontzal M. Pujana <gontzalpujana+kde> |
| Component: | general | Assignee: | Simon Depiets <sdepiets> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | adrian, shafff |
| Priority: | NOR | ||
| Version First Reported In: | 2.0 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
The STRACE of lokalize when the bug happens, with timestamps
Lokalize in HTOP using 100% of a core Lokalize in KSysGuard |
||
|
Description
Gontzal M. Pujana
2018-12-05 21:57:26 UTC
Sorry, I missclicked. SUMMARY Lokalize utilizes a full core at 100% when opening any PO file. STEPS TO REPRODUCE 1. Start Lokalize 2. Project Summary loads, normal CPU usage 3. When opening a .po file from the Project Summary, it will start to load the translation memory. Once it's loaded, the program will keep utilizing a full core until the file is closed. OBSERVED RESULT High CPU usage when opening a translation file EXPECTED RESULT Normal CPU usage when opening a translation file. Strace shows lots of polling, reads and writes whenever a file is opened. SOFTWARE/OS VERSIONS Windows: MacOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.14.4 KDE Frameworks Version: 5.52.0 Qt Version: 5.11.2 Created attachment 116693 [details]
The STRACE of lokalize when the bug happens, with timestamps
Created attachment 116696 [details]
Lokalize in HTOP using 100% of a core
Created attachment 116697 [details]
Lokalize in KSysGuard
Hello, Could you try with the latest 18.12 version, does it still happen ? It might also have to do with the translation memory. (In reply to Simon Depiets from comment #5) > Hello, > Could you try with the latest 18.12 version, does it still happen ? > It might also have to do with the translation memory. I just compiled the 19.03.70 version straight from Git, still happens, a full core is constantly used. I deleted the translation memory and glossary, no change in CPU usage. Every time a file is opened it just spikes up, no matter how big the file is. I tested in two different computers and was able to reproduce easily. Both computers are using Manjaro KDE 18.0 with Kernel 4.19.6-1-MANJARO. Can you still reproduce this? As of version 19.08.03 it does no longer happen. Thanks! |