System.BadImageFormatException: Bad IL format. uipath.emgucvbundle

When running a published workflow, or debugging the same C# Windows workflow, even before the first activity executes (where breakpoint is set), the following message occurs in the Windows Application Event Viewer log (Press F5 to refresh this log). I tried updating the UiPath.EmguCVBundle, but the errors persists.

How can I resolve this issue in my UiPath C# Windows workflow?

Windows Application Log Entry:

System.BadImageFormatException: Bad IL format. The format of the file ‘C:\Users\Me\.nuget\packages\UiPath.emgucvbundle\1.1.0\lib/net5.0/concrt140.dll’ is invalid.

Note: There are more messages after the one above all relating to UiPath.emguCVbundle.

1 Like

We have seen this erros with some version but with no functional impactb. Can you confirm if this is impacting your execution and what is the version of Studio/Robot used? Also would help if you can share the dependcies tree of your project (as the issue might be within the Document Understanding package)

1 Like

No impact that I can detect, but the windows event log keeps tracking the error.
I will separately message you the dependency tree.

1 Like

functional impact for us, none of our projects will run unattended with this issue. I even tried removing the emgucvbundle name spaces

We have the same issue with the nuget package.

The image lists specific versions of various UiPath activity packages under a Windows dependencies section. (Captioned by AI)
image

Per Rick Stuckey’s (KeyMark) research, the issue starts with UiPath.UIAutomation.Activities 23.10.13 and higher.
Emgu is a standard of some sort having to do with making objects compatible across platforms, Windows, Linux, ios, Android, etc. CV Bundle is the Computer Vision Activities.
UiPath developers may not even know there is an issue.

The image shows a list of software dependencies for a UiPath project, highlighting specific versions of UiPath.UIAutomation.Activities (>= 23.10.13), UiPath.OCR.Activities (>= 3.17.3), and UiPath.EmguCVBundle (>= 1.1.0). (Captioned by AI)

2 Likes