Re: Java error memory GUI

135 views
Skip to first unread message

Igor Kmitowski

unread,
Oct 1, 2021, 6:50:49 AM10/1/21
to cafetra...@googlegroups.com
Hello Nicolas,

I don't know whether it is CafeTran's or the system fault. First, try checking CafeTran as follows:

Reset the Preferences via the Preferences > the Reset button. After that, please allocate some more RAM memory to CafeTran's Java as described here: https://cafetran.freshdesk.com/a/solutions/articles/6000160241

If the above doesn't help, try reinstalling (by downloading and installing again) CafeTran's Linux version.

Igor
CafeTran Support


On Fri, Oct 1, 2021 at 10:45 AM Nicolas Gambardella <ascis...@gmail.com> wrote:

Hello,

I updated to Apple Charlotte on my Linux laptop yesterday. Everything was fine. But this morning I cannot use CTE at all. First, CTE used all my CPUs for Java as soon as I do anything. Then funny characters appear in the target window, for instance if I want to delete something. Then when I commit a segment, the CPUs get crazy, and Java runs out of memory.

My OS was updated this morning, so it might not be CTE. My Syslog shows gazillions of Gnome and GTK errors.

Below is the Java console for my last session. After that, CTE became a zombie. I can open the menu, switch the focus from one panel to another, etc. But none of the functions work.

Java version=12
Classpath=/home/lenov/Dropbox/aSciStance/Software/cafetran/Cafetran.jar
Cafetran dir=/home/lenov/Dropbox/aSciStance/Software/cafetran/
Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
       at javafx.graphics/com.sun.javafx.application.PlatformImpl$$Lambda$127/0x00000008002e6840.get$Lambda(Unknown Source)
       at java.base/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder)
       at java.base/java.lang.invoke.Invokers$Holder.linkToTargetMethod(Invokers$Holder)
       at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
       at javafx.graphics/com.sun.javafx.application.PlatformImpl$$Lambda$126/0x00000008002e7440.run(Unknown Source)
       at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
       at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
       at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
       at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication$$Lambda$117/0x00000008002c9c40.run(Unknown Source)
       at java.base/java.lang.Thread.run(Thread.java:835)
Exception in thread "TimerQueue" java.lang.OutOfMemoryError: Java heap space
Oct 01, 2021 9:30:22 AM sun.awt.X11.XToolkit processException
WARNING: Exception on Toolkit thread
java.lang.OutOfMemoryError: Java heap space

Exception in thread "InvokeLaterDispatcher" java.lang.OutOfMemoryError: Java heap space

:-(

--
You received this message because you are subscribed to the Google Groups "CafeTranslators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cafetranslato...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cafetranslators/78498d7b-074e-4017-b696-ae67fea56032n%40googlegroups.com.

Nicolas Gambardella

unread,
Oct 2, 2021, 9:27:07 AM10/2/21
to CafeTranslators
Hi Igor,

A lot of other things are happening now. For instance, CTE is emptying my translation memories when I load them! (fortunately, my disk is mirrored in a backup!). It also struggles to parse some text, replacing spaces with tags.
All that looks pretty random. I think there is a deeper problem with my Linux machine.

Meanwhile, where can I download older versions of CTE to try to see if they behave differently?

Nicolas Gambardella

unread,
Oct 2, 2021, 9:49:09 AM10/2/21
to CafeTranslators
Three other phenotypes just appeared.

1) For one of the TM,  the translation memory panel shows me strange messages, e.g.:

100% EM Different sources | 1

Where the first 'w' and the last 's' are in red.

2) It got stuck on this segment. Even when I go to another segment, the panel does not change.

3) When I leave, the "cancel" and "no" buttons of the menu "Save changes in memory" do not work. The changes are always saved in the memories.

Nicolas Gambardella

unread,
Oct 2, 2021, 9:51:49 AM10/2/21
to CafeTranslators
This is my java

~$ java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode, sharing)

Igor Kmitowski

unread,
Oct 2, 2021, 1:37:01 PM10/2/21
to CafeTranslators
I suggest you should consider re-installing CafeTran after your Linux system update. The Java 11 version in your system is quite old, and the new CafeTran installation already includes the latest Java 17. After that, please reset CafeTran's preferences via Edit > Preferences > the Reset button to clear the settings from the previous CafeTran version.

Igor 

Nicolas Gambardella

unread,
Oct 14, 2021, 4:04:12 AM10/14/21
to CafeTranslators
Hi Igor,
;
I did update to Java 17, re-installed CTE. It worked for a while but is now back to the Java memory issue after about 10 min of usage:
Java version=17
Classpath=/home/lenov/Dropbox/aSciStance/Software/cafetran/Cafetran.jar
Cafetran dir=/home/lenov/Dropbox/aSciStance/Software/cafetran/
Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

Some other issues crept in. For instance, spaces are no longer included before relevant punctuation in French (; : ?)
I can still work, just very slowly.

I'll update to the latest CTE after I finish my current job. We'll see.

Nicolas Gambardella

unread,
Oct 14, 2021, 4:21:30 AM10/14/21
to CafeTranslators
ha! Now it crashed. First time. Usually, it froze.  Stdout message is:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd4eee747ca, pid=8652, tid=8692
#
# JRE version: OpenJDK Runtime Environment (17.0+35) (build 17+35-2724)
# Java VM: OpenJDK 64-Bit Server VM (17+35-2724, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjfxwebkit.so+0xfd37ca]  WebCore::Path::moveToSlowCase(WebCore::FloatPoint const&)+0x5a
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/lenov/Dropbox/aSciStance/Software/cafetran/hs_err_pid8652.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/home/lenov/bin/Cafetran: line 45:  8652 Aborted                 "$JAVA_HOME"/bin/java -Dawt.useSystemAAFontSettings=on -Xms$JAVA_MEMORY_START -Xmx$JAVA_MEMORY_MAX -jar "$CAFETRAN_HOME"/Cafetran.jar

Log attached
hs_err_pid8652.log

Nicolas Gambardella

unread,
Dec 10, 2021, 3:51:41 AM12/10/21
to CafeTranslators
As I mentioned on the other forum, I was able to go around the java memory problem by not loading "big" TMs (although 31K units is not so big).
Problems remaining: The JFX errors. And importantly the spellchecker that does not work at all (it used to). I tested both hunspell and LO.
At least I can work at a decent speed (restarting CTE every 3-4 segments was not fun)
Reply all
Reply to author
Forward
0 new messages