Crashes with javafx extension in Linux
Crashes with javafx extension in Linux
Hello
I got an extension which works fine on windows systems, but openoffice crushes when i try to use in on linux, tested it on Arch,CentOs,fedora results are same... There is no exception thrown in logs, also no exception happens when debugging from source code.What may be the reason?
I got an extension which works fine on windows systems, but openoffice crushes when i try to use in on linux, tested it on Arch,CentOs,fedora results are same... There is no exception thrown in logs, also no exception happens when debugging from source code.What may be the reason?
OpenOffice Version : 4.1.0
Os : Arch Linux x86_64
Os : Arch Linux x86_64
Re: OO Crashes when trying to use extension in Linux
What extension? Name and URL, please.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: OO Crashes when trying to use extension in Linux
Unfortunately can't link the extension.RoryOF wrote:What extension? Name and URL, please.
Its custom extension, it just loads javafx window to connect to other software, can see the addon in openoffice menu but when it tries to load javafx openoffice freezes. Is there any known issue with openoffice & javafx in linux?
OpenOffice Version : 4.1.0
Os : Arch Linux x86_64
Os : Arch Linux x86_64
Re: Crashes with javafx extension in Linux
I don't know of any problem. If it works when compiled in debug mode it may be a timing problem and some carefully inserted delays may help.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Crashes with javafx extension in Linux
No it's same when i run it in debug mode, the problem is that there is no exception thrown whatsoever, no errors in openoffice logs, but it freezes. Cant understand what causes the crush, os java or oo.
OpenOffice Version : 4.1.0
Os : Arch Linux x86_64
Os : Arch Linux x86_64
Re: Crashes with javafx extension in Linux
Thank you for your reply RoryOF,
Link to extension will be provided soon , but it is really does not meter . Even "Hello World" on JavaFX crashes same way.
Link to extension will be provided soon , but it is really does not meter . Even "Hello World" on JavaFX crashes same way.
OpenOffice 4.1.1 on CentOs 6.5 , Fedora and/or Windows 7
Re: Crashes with javafx extension in Linux
Problem was resolved.
Java FX works perfectly for AOO Extensions on Linux
Java FX works perfectly for AOO Extensions on Linux
OpenOffice 4.1.1 on CentOs 6.5 , Fedora and/or Windows 7
Re: Crashes with javafx extension in Linux
Will you please expand on what caused the problem?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Crashes with javafx extension in Linux
Managed to catch exception, it had problem with loading resources and class initialization. I think there is some problem which bugs classloader when javafx launched from oo. So, manualy setting classloader in init methods solved the problem.RoryOF wrote:Will you please expand on what caused the problem?
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if (cl == null) {
cl = ClassLoader.getSystemClassLoader();
Thread.currentThread().setContextClassLoader(cl);
}
OpenOffice Version : 4.1.0
Os : Arch Linux x86_64
Os : Arch Linux x86_64
Re: Crashes with javafx extension in Linux
I don't know enough about Java to comment sensibly, except to say that when a program/macro works in manual mode and not in installed mode, there can often be some form of timing problem. A delay loop inserted might cure the problem - there was a recent case of this reported on the Forum when a macro was being used.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS