jifa icon indicating copy to clipboard operation
jifa copied to clipboard

The HPROF parser Exception

Open IcanDoItL opened this issue 2 years ago • 6 comments

!ENTRY org.eclipse.osgi 4 0 2022-05-05 12:18:51.182 !MESSAGE Application error !STACK 1 org.eclipse.mat.SnapshotException: The HPROF parser encountered a violation of the HPROF specification that it could not safely handle. This could be due to file truncation or a bug in the JVM. Please consider filing a bug at eclipse.org. To continue parsing the dump anyway, you can use -DhprofStrictnessWarning=true or set the strictness mode under Preferences > HPROF Parser > Parser Strictness. See the inner exception for details. at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:458) at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:211) at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:82) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:273) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:167) at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:147) at org.eclipse.mat.internal.apps.ParseSnapshotApp.parse(ParseSnapshotApp.java:138) at org.eclipse.mat.internal.apps.ParseSnapshotApp.start(ParseSnapshotApp.java:110) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594) at org.eclipse.equinox.launcher.Main.run(Main.java:1447) at org.eclipse.equinox.launcher.Main.main(Main.java:1420) Caused by: org.eclipse.mat.SnapshotException: (Possibly) Invalid HPROF file: Expected to read another 2,838,688,345 bytes, but only 2,838,688,344 bytes are available for heap dump record 0x22 at 0x646710f7. at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:460) ... 20 more Caused by: java.io.EOFException at org.eclipse.mat.hprof.Pass1Parser.checkSkipBytes(Pass1Parser.java:522) at org.eclipse.mat.hprof.Pass1Parser.readObjectArrayDump(Pass1Parser.java:782) at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:443) ... 20 more

IcanDoItL avatar May 05 '22 04:05 IcanDoItL

This issue has been resolved, please look https://github.com/eclipse/jifa/issues/130

nikhildongre avatar May 06 '22 08:05 nikhildongre

thanks

IcanDoItL avatar May 07 '22 02:05 IcanDoItL

the old version(1.10.0) support it? how to use? jdk1.8

IcanDoItL avatar May 07 '22 03:05 IcanDoItL

I Direct use eclipse mat, not use jifa

IcanDoItL avatar May 07 '22 03:05 IcanDoItL

the old version(1.10.0) support it? how to use? jdk1.8

You can modify the version in https://github.com/eclipse/jifa/blob/master/backend/heap-dump-analyzer/eclipse-mat-deps/eclipse-mat-deps.gradle to choose other versions of mat, I think 1.10.0 is supported, but not very sure.

D-D-H avatar May 07 '22 03:05 D-D-H

I try it, but My Local Gradle version is 6.6.1,so when ./gradlew buildWorker FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':backend:heap-dump-analyzer:eclipse-mat-deps'.

java.lang.reflect.InvocationTargetException Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

IcanDoItL avatar May 07 '22 06:05 IcanDoItL