Skip to content
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

org.eclipse.mat.SnapshotException: Illegal primitive object array type when parsing 42 GB heap dump using linux command #48

Open
eclipsewebmaster opened this issue May 8, 2024 · 3 comments

Comments

@eclipsewebmaster
Copy link

| --- | --- |
| Bugzilla Link | 582890 |
| Status | NEW |
| Importance | P3 major |
| Reported | Jan 28, 2024 04:03 EDT |
| Modified | Feb 13, 2024 23:55 EDT |
| Version | 1.15 |
| Reporter | priyadharshini Ravi |

Description

org.eclipse.mat.SnapshotException: Illegal primitive object array type when parsing 42 GB heap dump using Linux command

Error message:

org.eclipse.mat.SnapshotException: Illegal primitive object array type
at org.eclipse.mat.hprof.Pass1Parser.readPrimitiveArrayDump(Pass1Parser.java:707)
at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:384)
at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:186)
at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:80)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:222)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:126)
at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:147)
at org.eclipse.mat.internal.apps.ParseSnapshotApp.parse(ParseSnapshotApp.java:136)
at org.eclipse.mat.internal.apps.ParseSnapshotApp.start(ParseSnapshotApp.java:108)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

Kindly suggest any ideas to overcome this issue.

@eclipsewebmaster
Copy link
Author

By priyadharshini Ravi on Feb 05, 2024 00:40

Any update on this?

@eclipsewebmaster
Copy link
Author

By Gowtham K on Feb 13, 2024 23:55

Kindly suggest parsing this 42 GB dump in the Linux command for the below error

@jasonk000
Copy link
Contributor

Priyadharshini - are you able to share some more detail? It looks like the heap is not able to be parsed in this code ..

if ((elementType < IPrimitiveArray.Type.BOOLEAN) || (elementType > IPrimitiveArray.Type.LONG))
throw new SnapshotException(Messages.Pass1Parser_Error_IllegalType);

This suggests to me maybe either some corruption with the hprof file, or maybe a different version of JVM is used to export the heap. Are you able to share any more information about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants