Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 11 to 12 MPLAB IDE new java error

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Darth9590
Posts: 15
Joined: 2022-02-21 19:12
Has thanked: 3 times
Been thanked: 1 time

Debian 11 to 12 MPLAB IDE new java error

#1 Post by Darth9590 »

Hello,

I have been struggling with finding a solution, probably to my zero knowledge of Java. I updated my main desktop about 1 month or so ago to bookworm to try out KDE 5.25. Everything is running great but I have found the MPLAB X IDE does not work anymore. I can open the program but after about 1-2 minutes the GUI will become un-responsive and I get this error:

Code: Select all

java.lang.UnsupportedOperationException: Internal Error
	at com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(GtkApplication.java:158)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:140)
	at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
	at com.sun.glass.ui.Application.run(Application.java:147)
	at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:279)
	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211)
	at javafx.embed.swing.JFXPanel.lambda$initFx$2(JFXPanel.java:232)
[catch] at java.lang.Thread.run(Thread.java:748)
I tried installing openjdk-8 getting this as version when issuing java --version

Code: Select all

$ java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (build 1.8.0_332-8u332-ga-1~deb9u1-b09)
OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)
No success, then tried removing all java packages because I noticed on the working laptop java --version returned command not found. No luck as well.

My laptop is still running bullseye and has no issues running MPLAB X IDE so I think there is a conflict on my desktop that I can not pin down. Any help is appreciated.

Desktop:
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.4
Kernel Version: 5.19.0-1-amd64
Graphics Platform: X11

Laptop:
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.0-17-amd64

Darth9590
Posts: 15
Joined: 2022-02-21 19:12
Has thanked: 3 times
Been thanked: 1 time

Re: Debian 11 to 12 MPLAB IDE new java error

#2 Post by Darth9590 »

Hello,

To give an update I "sort of fixed" it. Not sure the implications though and the program doesn't fully work.

I found the main error was related to libharfbuzz. On debian 12 the current version is 5.2.0-2 while stable is running 2.7.4-1.

I downgraded from 5.2.0-2 to 2.7.4-1 the following packages:

Code: Select all

 gir1.2-harfbuzz-0.0/stable,now 2.7.4-1 amd64 [installed]
libharfbuzz-dev/stable,now 2.7.4-1 amd64 [installed]
libharfbuzz-gobject0/stable,now 2.7.4-1 amd64 [installed,automatic]
libharfbuzz-icu0/stable,now 2.7.4-1 amd64 [installed]
libharfbuzz0b/stable,now 2.7.4-1 amd64 [installed]
I now can open the program without it freezing and can run debugging operations which is great. One thing I noticed is the UI doesn't completely work still. If you open code configurator, it opens with out throwing any java exceptions but no text. I'll see if anyone on microchip forums can help. I am in an area of software I am not familiar with.
Attachments
not_text.jpeg
not_text.jpeg (198.34 KiB) Viewed 826 times

caminero
Posts: 13
Joined: 2010-09-25 16:25

Re: Debian 11 to 12 MPLAB IDE new java error

#3 Post by caminero »

As I see, you should install GTK stuff like the package kde-config-gtk-style ...
Regards

Post Reply