Santiago Ontanon created NETBEANS-6183:
------------------------------------------
Summary: Profiler does not work on Apple Silicon
Key: NETBEANS-6183
URL: https://issues.apache.org/jira/browse/NETBEANS-6183
Project: NetBeans
Issue Type: Bug
Components: profiler - Base
Affects Versions: 12.5
Environment: MacBook Pro 13-inch, M1, 2020
MacOS Big Sur Version 11.6
Netbeans 12.5
java 17.0.1 2021-10-19 LTS
Reporter: Santiago Ontanon
Upon attempting to profile an application, the pop up with the message
"Connecting to the target VM..." appears, and I believe Netbeans attempts to
calibrate the profiler, but this times out after a while.
I noticed that a command appeared in the console, which I assume is what
Netbeans executed to launch the profiler. So, I attempted to execute that
command on the command line, which looked like this:
/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home/bin/java
-agentpath:/Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib
-Xbootclasspath/a:/Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server.jar:/Applications/NetBeans/Apache
NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server-15.jar
org.netbeans.lib.profiler.server.ProfilerServer /Applications/NetBeans/Apache
NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac
5141 10 ____Profiler+Calibration+Run____
When running this on a shell I get the following error:
Error occurred during initialization of VM
Could not find agent library /Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib
in absolute path, with error: dlopen(/Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib,
1): no suitable image found. Did find:
/Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib:
no matching architecture in universal wrapper
/Applications/NetBeans/Apache NetBeans
12.5.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib:
no matching architecture in universal wrapper
Could it be that there is no native ARM version of the
"libprofilerinterface.jnilib" file, and hence it fails to run on Apple Silicon
machines?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists