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

Invalid mex file on Windows #130

Closed
duncanpo opened this issue Jun 27, 2024 · 0 comments
Closed

Invalid mex file on Windows #130

duncanpo opened this issue Jun 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@duncanpo
Copy link
Member

Since the Windows-2022 GitHub runner image has been updated to 20240610.1.0, we have been running into an invalid mex file error on Windows:

      Error using libmexclass.proxy.gateway
      Invalid MEX-file 'D:\a\OpenTelemetry-Matlab\OpenTelemetry-Matlab\otel_matlab_install\+libmexclass\+proxy\gateway.mexw64': A dynamic link library (DLL) initialization routine
      failed.
      
      Error in libmexclass.proxy.Proxy (line 37)
                          obj.Identifier = libmexclass.proxy.gateway("Create", options.Name, options.ConstructorArguments);
      
      Error in opentelemetry.baggage.Baggage (line 41)
                              obj.Proxy = libmexclass.proxy.Proxy("Name", ...
      
      Error in tbaggage/testSetEntries (line 47)
                  bag = opentelemetry.baggage.Baggage(dictionary(baggagekeys, baggagevalues));

This error is only on Windows can causes all tests to fail. On Linux and Mac, all tests passed successfully.

The timing of this issue seems similar to this issue reported on runner-images and this issue reported on apache/arrow. In these other issues, the problem is related to a C++ runtime library conflict causing mutex to crash. Mutex is used in various places in opentelemetry-cpp. I suspect we will also need to define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR when building opentelemetry-cpp

@duncanpo duncanpo added the bug Something isn't working label Jun 27, 2024
@duncanpo duncanpo self-assigned this Jun 27, 2024
duncanpo added a commit that referenced this issue Jul 8, 2024
…k around invalid MEX file issue on Windows. Fixes #130
duncanpo added a commit that referenced this issue Jul 8, 2024
…k around invalid MEX file issue on Windows. Fixes #130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant