Closed soloyant closed 8 months ago
Hi @soloyant I think you need to recompile the Approximate Nearest Neighbor mex file.
You can follow the instructions here
https://github.com/CHLNDDEV/OceanMesh2D/tree/Projection/%40ann
Hi @krober10nd, thank you for the quick reply.
I did try recompiling the ANN mex file, but if it solved the Unrecognized function or variable 'annmex'
error, it led matlab to consistently crash when annmex was called. The crash log mentioned a segmentation violation error, I pasted a sample of the log below in case it is useful.
I downgraded Matlab to its previous version (2023a) and it seems to have fixed my issue.
MATLAB Log File: /Users/matlab_crash_dump.56205-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Segmentation violation detected at 2024-03-27 12:59:08 -0700
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Apple Apple M1 Max Version 2.1 Metal - 88
MATLAB Architecture : maca64
MATLAB Version : 23.2.0.2428915 (R2023b) Update 4
Operating System : Mac OS Version 14.4
Processor ID : ABI64 ARM ARM64E FIRESTORM_ICESTORM
Fault Count: 1
Abnormal termination:
Segmentation violation
[...]
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
Describe the bug Missing function "annmex" when running various functions including meshgen(), and plus().
To Reproduce run Tests/RunTests.m on a new installation
Configuration (please complete the following information):
Additional context Happened after updating to the latest available version of the package. Tried backing up and re-installing - following the guide instructions - multiple times without success.