-
Notifications
You must be signed in to change notification settings - Fork 823
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
NETBEANS-1428 Fix fatal error when profiling on Windows #2021
Conversation
* Stacks.c: corrected some incorrect casts for 64-bit windows. Implemented mapping from methodIds to ints using a hash table for 64-bit platforms. * Updated build scripts for Windows, Linux and Mac. * Moved scripts out of the build subdirectory.
I cannot review the native code, but maybe we should make a dedicated repo to build all the native element with their source, and only use the resulting lib in the main netbeans repo |
It is tricky because the native code needs to be built on each platform individually and then all the binary libraries combined into a zip. I've done this for Windows, macOS and Linux so if there is a suitable place I can upload it there and people can then download it manually to test. |
I thinks the launcher executable are build on linux but that build exe for windows? if this is possible for mac we could maybe use a jenkins to prepare them based on sources identified in a repo |
That would be better than the current if it is possible. Who would know the answer/how to do it? I can ask them. |
If I remember correctly the building of the launcher binaries was refactored in the apache netbeans timeframe, so |
It might be @lkishalmi ? |
I did an "Attach to External Process" profiler session with Windows 10/NetBeans 12.1/OpenJDK 11.0.9 today, and ran into this problem again, with the JVM crashing. Swapping in Peter Hull's profilerinterface.dll file from two years ago, linked from the JIRA issue comment, once again fixed the problem (thanks, Peter!). Would be great to have this merged. (Swamped with other work at the moment, otherwise I'd contribute more here...) |
I don't use Netbeans or Java all that much these days but it would be good to get this finished off. I had the binaries all ready to go but no-one would tell me how I could get them uploaded to the OSUOSL server. Hopefully I can find them again! |
@pedro-w Yeah, the precompiled binaries aspect is the only reason why I don't know the proper way to merge this myself...
I think nobody does at the moment :-) First there needs to be an OpenJDK release for Apple Silicon, which Azul and Microsoft(!) are currently working on. And slowly but surely more NetBeans developers will be buying the new MacBooks. Until then I expect NetBeans will be running on new MacBooks under the Rosetta 2 translation layer. |
Who would know? Could they be added as participants? |
Regarding uploading of the binaries, I believe this is what could be used: |
I can do uploads. |
I don't know but it may be possible to have a github action to build the native code and then make it available. |
I've put the binaries edit: Still seems to work, see https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240450#comment-17240450 |
12.3? @geertjanw @neilcsmith-net There's been some vigorous discussion in dev thread, mid january 2021, thread subject Most import for a near term solution is Jan's analysis.
and
Poking around, in repo, there's netbeans/profiler/lib.profiler/
I have confirmed that stuff from
Has files with names that match stuff under this directory and what is seen in a release. Seems so close... |
@errael not an RM's job to specifically decide whether this gets in or not. Although if it gets in and somehow made the build unreleasable, that would be a different matter. Personally I'm not sure just using the binaries from there is a good idea - maybe built and signed locally by a PMC / committer is a short-term option, then put on OSUOSL? |
@neilcsmith-net right. I guess the optimist in me is hoping that with broad awareness and increasing comments/information/opinions, this "trivial" (to some) task/process will be handled. |
Closed in favour of #2700 |
This PR includes the following:
No changes were necessary to the Java code.
Please see NETBEANS-1428 for discussion.
NOTE The binary archive has not yet been uploaded, so simply merging this PR for testing purposes will not work 'out of the box'.