Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

OverflowError: Error while calling Python callback <nav_colorizer> with IDA 7.3 #97

Open
saidelike opened this issue Aug 9, 2019 · 0 comments

Comments

@saidelike
Copy link

saidelike commented Aug 9, 2019

I had this error with IDA 7.3 when loading any idb, as long as IDArling plugin is in the plugins folder even if I don't use IDArling.

image

I commented this, which seems to be ok and not creating any issue so in case anyone is annoyed and needs a quick fix.

    def nav_colorizer(self, ea, nbytes):
        """This is the custom nav colorizer used by the painter."""
        self._nbytes = nbytes

        # There is a bug in IDA: with a huge number of segments, all the navbar
        # is colored with the user color. This will be resolved in IDA 7.2.
        cursors = self._plugin.config["cursors"]
        #if cursors["navbar"]:
        #    for user in self._plugin.core.get_users().values():
        #        # Cursor color
        #        if ea - nbytes * 2 <= user["ea"] <= ea + nbytes * 2:
        #            return long(user["color"])
        #        # Cursor borders
        #        if ea - nbytes * 4 <= user["ea"] <= ea + nbytes * 4:
        #            return long(0)
        orig = ida_kernwin.call_nav_colorizer(
            self._ida_nav_colorizer, ea, nbytes
        )
        return long(orig)

There is probably a better way of doing it though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant