YourKit "profiler.sh" not working under Xubuntu

Questions about YourKit Java Profiler
Post Reply
MrPowerGamerBR
Posts: 2
Joined: Mon Jan 14, 2019 11:06 am

YourKit "profiler.sh" not working under Xubuntu

Post by MrPowerGamerBR »

Howdy!

Today I tried installing YourKit on my Linux machine but... it doesn't seem to work (it worked fine under Windows), no matter what JDK version I use (I tried using Java 8 and Java 11)

I also tried using the latest YourKit EAP version, same problem.

Code: Select all

[YourKit Java Profiler 2018.04-b88] Log file: /home/mrpowergamerbr/.yjp/log/profiler-ui-32349.log
Exception in thread "main" java.lang.reflect.InvocationTargetException
	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:498)
	at com.yourkit.Main.a(a:50)
	at com.yourkit.Main.mainMac(a:175)
	at com.yourkit.Main.main(a:60)
Caused by: java.lang.ExceptionInInitializerError
	at com.yourkit.k.s.a.dr.<init>(a:32)
	at com.yourkit.k.s.a.cr.<clinit>(a:91)
	at com.yourkit.k.s.a.w.a(a:233)
	at com.yourkit.k.s.a.w.<init>(a:74)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
	at com.yourkit.Main1.entry(a:550)
	... 7 more
Caused by: com.yourkit.util.cu: unexpected value: 0
	at com.yourkit.k.cm.<init>(a:35)
	at com.yourkit.k.cm.<clinit>(a:20)
	... 18 more
And here is the YourKit log file: https://gist.github.com/MrPowerGamerBR/ ... 25e1399d1e
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YourKit "profiler.sh" not working under Xubuntu

Post by Anton Katilin »

It's a new issue. We're investigating...
I'll post an update ASAP.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YourKit "profiler.sh" not working under Xubuntu

Post by Anton Katilin »

We didn't manage to reproduce the problem on a fresh installed Xubuntu 18.04. Perhaps you have some special font settings (the problem is with font metrics), or use a different version.

Nevertheless, could you please try the proposed fix for the EAP version.

Please download this yourkit.jar https://www.yourkit.com/download/tmp/20 ... ourkit.jar and write it over <profiler EAP installation directory>/lib/yourkit.jar

Does it help?

In any case, could you please provide the new log file. We're interested in diagnostic messages logged for your system.
MrPowerGamerBR
Posts: 2
Joined: Mon Jan 14, 2019 11:06 am

Re: YourKit "profiler.sh" not working under Xubuntu

Post by MrPowerGamerBR »

Woah, that was fast!

I tested with that new version, but...
Image

But I actually found the issue, after you said that it was a font issue, I recalled this answer I made on AskUbuntu ( https://askubuntu.com/questions/1060146 ... tu-18-04-1 ), reverting the Firefox fix fixed the font issue and also works without the patched YourKit version. I will update the answer in AskUbuntu later.

Anyway, thank you for helping!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YourKit "profiler.sh" not working under Xubuntu

Post by Anton Katilin »

Thank you for the notification.
Post Reply