Pages: 1
  Print  
Author Topic: Missing Cursor  (Read 32525 times)
Offline (Unknown gender) johnno56
Posted on: November 30, 2017, 03:09:12 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
I have been using LGM on my 64bit Linux box for short time now and noticed an odd problem.

I started duplicating a platform game using a GM tutorial, and whilst I was entering code in a step event, I noticed that the vertical cursor bar was missing. I do not believe it to be caused by the tutorial itself, after all, I am just duplicating text... lol

I am still learning how to use LGM and may have done something, accidental key press or something, that may have caused the cursor to disappear. If this is so, can someone please let me know how to restore the cursor, because trying to 'guess' where it is, is getting a little bothersome?

Thank you for listening. Looking forward to a helpful response.

J
Logged
Offline (Male) faissaloo
Reply #1 Posted on: November 30, 2017, 07:17:47 am

Contributor
Location: Britbongistan
Joined: Jan 2013
Posts: 87

View Profile WWW Email
Are you using OpenJDK? If so try Oracle JDK
Logged
Offline (Unknown gender) johnno56
Reply #2 Posted on: November 30, 2017, 08:39:08 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
My system indicates that I am running with OpenJDK version 8.

Following instructions and will get back to when completed.

Many thanks.

J
Logged
Offline (Unknown gender) johnno56
Reply #3 Posted on: November 30, 2017, 08:57:29 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
Followed the Linux Mint instructions to remove OpenJDK and install Oracle JDK. Removal and installation completed without error. System indicates the new JDK as default. LGM no longer functions.

The following error message appeared immediately after the LGM logo appeared.


Operating System: Linux
Version: 4.4.0-53-generic
Architecture: amd64

Java Name: Java HotSpot(TM) 64-Bit Server VM
Java Vendor: Oracle Corporation
Version: 9.0.1

Available processors (cores): 4
Free memory (bytes): 101293208
Maximum memory (bytes): 2063597568
Total memory available to JVM (bytes): 130023424

File system root: /
Total space (bytes): 1960008118272
Free space (bytes): 1707248615424
Usable space (bytes): 1607662419968

Stack trace:
java.lang.NoClassDefFoundError: javax/swing/text/rtf/RTFEditorKitExt
   at org.lateralgm.main.LGM.main(LGM.java:2278)
Caused by: java.lang.ClassNotFoundException: javax.swing.text.rtf.RTFEditorKitExt
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   ... 1 more

Installation instructions: https://community.linuxmint.com/tutorial/view/1372

At this point in time I am unaware of the overall system impact of the new JDK.

I am open to suggestions.

J
Logged
Offline (Male) Goombert
Reply #4 Posted on: November 30, 2017, 10:51:04 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Hi johnno56, it's honestly a glitch in the Java Swing GUI framework and with our custom code editor. Swing is one of the buggiest damn UI frameworks there is. What I have been working on for some time will be a permanent fix to this cursor problem. All I can say for now is to stay tuned and watch for updates.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) johnno56
Reply #5 Posted on: November 30, 2017, 02:43:41 pm
Member
Joined: Nov 2017
Posts: 8

View Profile Email
Thanks for the info, Goombert. Much appreciated.

I've been using Game maker, on my Linux machine using Wine, and then along comes LGM that runs natively... Cool. Brilliant program. Except for the UI glitch... lol

I am going to attempt to purge all Java SDK (Open and or Oracle) and re-install OpenJDK. LGM UI may have been a bit glitchy but at least it ran using OpenJDK.

I will let you know how things worked out and will certainly keep my eyes open for a fix or update.

Thank you for replying so quickly.

J
Logged
Offline (Unknown gender) johnno56
Reply #6 Posted on: November 30, 2017, 06:58:05 pm
Member
Joined: Nov 2017
Posts: 8

View Profile Email
Goombert,

Completely purged all Java ; reinstalled OpenJDK; Confirmed that OpenJDK is default; Downloaded current Enigma-dev; Enigma-dev fails to run. Logo appears only for a moment and the application terminates. I think I may have broken Enigma... :(

I managed to execute enigma-dev from a Terminal box and received th following error:

john@john-H81M-DS2 ~ $ ./enigma-dev.sh
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.util.InputMismatchException
   at java.util.Scanner.throwFor(java.base@9-internal/Scanner.java:864)
   at java.util.Scanner.next(java.base@9-internal/Scanner.java:1495)
   at java.util.Scanner.nextInt(java.base@9-internal/Scanner.java:2129)
   at java.util.Scanner.nextInt(java.base@9-internal/Scanner.java:2088)
   at org.lateralgm.main.LGM.<clinit>(LGM.java:206)

It's all Greek to me....

Does anyone else have a similar problem, or is the problem, me?

J
Logged
Offline (Unknown gender) Solitudinal
Reply #7 Posted on: November 30, 2017, 07:09:34 pm
Member
Joined: Aug 2017
Posts: 23

View Profile
I wouldn't be so quick to blame this on Swing. The code editor (JoshEdit) is a custom written widget specifically designed for LGM using partially custom rendering and poor integration with Swing. It's bound to be buggy.
I haven't personally noticed the cursor glitch that you've mentioned, but the code editor can be painfully buggy. That said, I'm very thankful for the amount of stuff that *does* work in it, and remain hopeful that it will only continue to be improved and the bugs slowly fixed.

And yeah, from my experience, LGM has never played nice with Oracle JDK - but the error you see is very specific; I'd be curious to poke at it and see if it can be fixed now. At first glance I can't find any reference to "rtf" anything in LGM.java, but my code is probably outdated.

johnno56: Can you run the following from a command line:
$ java -version

And report the results.
Your error is caused by LGM doing exactly that - trying to parse your Java version, and failing.
Logged
Offline (Unknown gender) johnno56
Reply #8 Posted on: December 01, 2017, 04:14:59 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
As per your request:

john@john-H81M-DS2 ~ $ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
Logged
Offline (Unknown gender) Solitudinal
Reply #9 Posted on: December 01, 2017, 02:11:39 pm
Member
Joined: Aug 2017
Posts: 23

View Profile
LGM doesn't directly support Java 9 yet. It's too new. I'm sure this will quickly change, but in the meantime, you can quickly get stuff working again by simply using Java 8 or older.
Logged
Offline (Unknown gender) johnno56
Reply #10 Posted on: December 03, 2017, 06:43:45 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
Ok. Java 9, no go. Java 8 or earlier. Good to know. Will keep you informed. Thanks for the tip.

J
Logged
Offline (Unknown gender) johnno56
Reply #11 Posted on: December 03, 2017, 07:05:47 am
Member
Joined: Nov 2017
Posts: 8

View Profile Email
Purged Java 9. Installed Java 8

john@john-H81M-DS2 ~ $ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

Enigma started without error. Woo Hoo.... I will continue to monitor and report any other problems.

Much appreciated for all your help. Many thanks. As they say here in Australia, "Your blood's worth bottling"
Loosely translates as: Someone is extremely valuable and worth preserving.

:D

ps: The original problem of the "missing cursor" has returned, but hey, compared to Enigma not running, I can live with that until a patch can be made... lol
« Last Edit: December 03, 2017, 02:44:47 pm by johnno56 » Logged
Offline (Male) Goombert
Reply #12 Posted on: December 03, 2017, 03:23:04 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
I suppose that's fair Solitudinal, but hehe it was a younger Josh who wrote JoshEdit, so he was a bit naive.

And yeah the scanner problem I have myself too with Java 9, I didn't end up discovering a fix for it yet because of what I'm working on. I don't think there is a fix except to remove that code from LGM because the problem seems to be Project Jigsaw. With the Java 9 modularization they are hiding the internal APIs that were never supposed to be accessed. But the thing is, tons of programs, like LGM, were accessing them for various reasons.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print