Closed psifertex closed 1 year ago
It's worth pointing out a very lazy but temporary fix to at least not get the message is to just re-order the log so that it happens after the core is initialized:
import binaryninja
bv = binaryninja.BinaryViewType.get_view_of_file('/bin/ls')
binaryninja.log_to_stdout(binaryninja.LogLevel.WarningLog)
May be outputing those dlopen
error messages to stderr
would address a few user concerns? The workaround isn't practical in my context.
Seems like it is now fixed.
The reason is we do cannot distinguish a UI plugin from a core plugin until we dlopen it and see whether it exports CorePluginInit() or UIPluginInit(). But UI plugins are likely to already fail when we dlopen it, since they could import qt libs that are not present in headless
This was fixed a while ago. Closing for now.
UI-only plugins may be loaded even in headless, though it's not normally observable without capturing logging information. Simple test case:
produces: