Hi, unfortunately I cannot start application with profiler, and cannot connect to a local app with the profiler without starting the app with the profiler.
MacOS Catalina 10.15 and am trying to profile a Java/Scala application, using AdoptOpenJDK 12.
Error occurred during initialization of VM
Could not find agent library /Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib in absolute path, with error: dlopen(/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib, 1): no suitable image found. Did find:
/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib: code signature in (/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
$ java -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib -version
Error occurred during initialization of VM
Could not find agent library /Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib in absolute path, with error: dlopen(/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib, 1): no suitable image found. Did find:
/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib: code signature in (/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
I have also tried deleting and reinstalling YourKit Profiler 2019.8-b127, with the same results.
Vladimir Kondratyev wrote:I suppose that problem is in Adopt JDK, not in YourKit profiler library. Please give us URL where we can download exact JDK which you are using.
Do you have the same issue with Open JDK or Oracle JDK? Please try.
Best regards,
Vladimir Kondratyev
YourKit GmbH http://www.yourkit.com
"Don't get lost in data, get information!"
Hi,
thank you for the help - the issue was indeed with AdoptOpenJDK 12 installed using brew cask: