Skip to content

Null pointer opening heapdump #608

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

Closed
furyscript opened this issue Sep 30, 2024 · 6 comments
Closed

Null pointer opening heapdump #608

furyscript opened this issue Sep 30, 2024 · 6 comments
Assignees
Labels

Comments

@furyscript
Copy link

furyscript commented Sep 30, 2024

Describe the bug
Error opening heapdump.
Java openjdk 21.
Attached dump and log

To Reproduce
Download dump: here

VisualVM log

java.lang.NullPointerException: Cannot invoke "org.graalvm.visualvm.lib.jfluid.heap.ObjectArrayDump.getValues()" because "entriesObj" is null
	at org.graalvm.visualvm.lib.jfluid.heap.HprofProxy.getPropertiesFromTable(HprofProxy.java:71)
	at org.graalvm.visualvm.lib.jfluid.heap.HprofProxy.getProperties(HprofProxy.java:59)
	at org.graalvm.visualvm.lib.jfluid.heap.HprofHeap.getSystemProperties(HprofHeap.java:298)
	at org.graalvm.visualvm.heapviewer.java.impl.JavaOverviewSummary.<init>(JavaOverviewSummary.java:140)
	at org.graalvm.visualvm.heapviewer.java.impl.JavaOverviewSummary.<init>(JavaOverviewSummary.java:124)
	at org.graalvm.visualvm.heapviewer.java.impl.JavaOverviewSummary$Provider.createSummary(JavaOverviewSummary.java:762)
	at org.graalvm.visualvm.heapviewer.ui.SummaryView.<init>(SummaryView.java:76)
	at org.graalvm.visualvm.heapviewer.java.impl.JavaSummaryView.<init>(JavaSummaryView.java:56)
	at org.graalvm.visualvm.heapviewer.java.impl.JavaSummaryProvider.getFeature(JavaSummaryProvider.java:43)
	at org.graalvm.visualvm.heapviewer.ui.HeapViewerComponent.initImpl(HeapViewerComponent.java:142)
	at org.graalvm.visualvm.heapviewer.ui.HeapViewerComponent.access$000(HeapViewerComponent.java:76)
	at org.graalvm.visualvm.heapviewer.ui.HeapViewerComponent$1.run(HeapViewerComponent.java:95)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1419)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2034)

Desktop (please complete the following information):

  • OS: All versions (linux, windows)
  • JDK version [JDK 21]
  • Version [e.g. 2.0]

Additional context
Add any other context about the problem here.

@furyscript furyscript added the bug label Sep 30, 2024
@thurka
Copy link
Member

thurka commented Sep 30, 2024

Unfortunately the heap dump is not available:

Error: Quick Share could not be found. Do not close the browser window before the transfer is complete.

@furyscript
Copy link
Author

Sorry, reuploaded here: here

@thurka
Copy link
Member

thurka commented Oct 1, 2024

Thanks, I am able to reproduce the issue.

@thurka thurka self-assigned this Oct 1, 2024
thurka added a commit that referenced this issue Oct 4, 2024
…resended by a custom subclass of java.util.Properties
@thurka
Copy link
Member

thurka commented Oct 4, 2024

Fixed in master.

@thurka thurka closed this as completed Oct 4, 2024
@furyscript
Copy link
Author

Can you create a new version? Or when it release new executable version?

@thurka
Copy link
Member

thurka commented Oct 9, 2024

If you need VisualVM with the fix, you can build it yourself.

@petrprochy petrprochy marked this as a duplicate of #629 Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants