Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDA Capa Explorer - plugin causes issues if running ida in cmd batch mode. #1331

Closed
cjchristopher opened this issue Feb 28, 2023 · 2 comments · Fixed by #1341
Closed

IDA Capa Explorer - plugin causes issues if running ida in cmd batch mode. #1331

cjchristopher opened this issue Feb 28, 2023 · 2 comments · Fixed by #1341
Assignees
Labels
bug Something isn't working ida-explorer Related to IDA Pro plugin

Comments

@cjchristopher
Copy link

cjchristopher commented Feb 28, 2023

Description

With the Capa Explorer plugin installed correctly (and working in IDA), causes issues running ida on the command line - as the plugin doesn't check if ida is being run in batch or gui mode - Qt errors get thrown and causes the analysis to lock up / never complete, presumably as it is trying to update/address GUI elements that don't exist.

Steps to Reproduce

Install Capa Explorer as per repo instructions (verify it works correctly in GUI). Run a command line job (say via idat64) that possibly doesn't even involve the plugin (and indeed, never calls it)

Expected behavior:

Job to complete

Actual behavior:

Throws Qt errors.
"QPixmap: Must construct a QGuiApplication before a QPixmap"

Versions

IDA Pro 7.6
capa 5.0.0
python 3.10
Win 10 Home

Additional Information

N/A

@williballenthin
Copy link
Collaborator

interesting, I bet this has to do with trying to load the icon.

perhaps we should update the following logic to not load capa explorer in headless mode:

# do not load plugin if IDA version/file type not supported
if not capa.ida.helpers.is_supported_ida_version():
return idaapi.PLUGIN_SKIP
if not capa.ida.helpers.is_supported_file_type():
return idaapi.PLUGIN_SKIP
if not capa.ida.helpers.is_supported_arch_type():
return idaapi.PLUGIN_SKIP
return idaapi.PLUGIN_OK

@williballenthin williballenthin added bug Something isn't working ida-explorer Related to IDA Pro plugin labels Feb 28, 2023
@mike-hunhoff mike-hunhoff self-assigned this Mar 1, 2023
@mike-hunhoff
Copy link
Collaborator

@cjchristopher I've opened a fix for this under #1341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ida-explorer Related to IDA Pro plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants