-
Notifications
You must be signed in to change notification settings - Fork 100
High CPU usage #104
Comments
Hi @trou, We experimented this kind of issue in the past... I thought I fixed it, apparently it was not enough... I have no idea for the moment, can you indicate me your version of IDA in order to reproduce the bug please? |
Sure, it's |
Thanks. Regarding Python3 support for IDA 7.4, I do not expect IDArling to work properly. |
I actually started with the fork, which has the same problem. I'm currently trying to pin down the issue and it seems it's the |
It seems it's this, more specifically: # Is it a QShowEvent on a QDialog named "Dialog"?
if (
ev.__class__ == ev,
QShowEvent
and obj.__class__ == QDialog
and obj.windowTitle() == "About",
):
# Find a child QGroupBox
for groupBox in obj.children():
if groupBox.__class__ == QGroupBox:
# Find a child QLabel with an icon
for label in groupBox.children():
if isinstance(label, QLabel) and label.pixmap():
self._replace_icon(label) |
Thank you for tracking down the issue. This functionality is just an easter egg to replace the IDA logo with the IDArling logo. As a quick fix, you can disable it, if you don’t care about the custom logo :). |
This is also used for the invites context menu, as mentionned in the docstring.
It makes total sense: the event filter is installed on the main application window, so this function is getting called for every Qt event that is occuring within IDA. Not my brightest idea... I'm not working on IDArling anymore, but I can offer some alternative ideas:
|
When he says the fork, he actually means he used https://github.com/fidgetingbits/IDArling/ afaict. |
indeed |
Here's a PR which reduces the CPU usage quite a bit when IDA's idle. |
BTW, to check for perf issues, I do:
perf record -a -p $(pgrep ida)
perf report | head -n 50
[...]
2.05% ida libpython3.7m.so.1.0 [.] long_bitwise
1.13% ida libQt5Gui.so.5 [.] QT::QImage::pixel
|
as discussed with @patateqbool and as noted by @NeatMonster, the |
It's possible to write code that is both Python 2 and 3 at the same time. See this excellent cheat sheet https://python-future.org/compatible_idioms.html |
Hello,
when I start IDA with IDArling, d63bb7c, CPU usage reaches 100%, even without any IDB loaded.
perf
reports the following as being the most CPU intensive functions:I have done some experiments removing the status bar, but to no avail.
Any idea ?
The text was updated successfully, but these errors were encountered: