Create account / Log in

CGSEventRecord exception with High Sierra

Issues with the Vassal engine.

Moderators: Tim M, uckelman

CGSEventRecord exception with High Sierra

Postby cak » May 17th, 2018, 8:50 pm

So, I've recently updated my macbook to High Sierra. Since then, I get an uncaught exception with basically any module, which is apparently due to the use of a deprecated java method. Here's the relevant part of the log:

2018-05-17 21:36:42,441 [0-ProcessLauncher-2] WARN VASSAL.tools.logging.LoggedOutputStream - 2018-05-17 22:36:42.441 java[812:112709] -_cgsEventRecord is deprecated for _cgsEventRecord. Please use -CGEvent.
2018-05-17 21:36:42,442 [0-ProcessLauncher-2] WARN VASSAL.tools.logging.LoggedOutputStream - 2018-05-17 22:36:42.441 java[812:112709] *** Assertion failure in -[NSEvent _cgsEventRecord], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.40.112/AppKit.subproj/NSEvent.m:1972
2018-05-17 21:36:42,448 [13-AWT-EventQueue-0] ERROR VASSAL.tools.ErrorDialog -
java.lang.RuntimeException: Non-Java exception raised, not handled! (Original problem: Deprecated in 10_12... DO NOT EVER USE CGSEventRecord directly. Bad things, man.... bad things.)


The error is basically harmless, every module works fine after the exception. I understand this is a common issue when using older java-based software with High Sierra, for example:
https://www.mathworks.com/matlabcentral ... ra-10-13-1

Any chance this might be fixed in a future update? It looks like the error log is providing the correct method to use, as I highlighted in bold.
cak
 
Posts: 6
Joined: February 11th, 2017, 4:55 pm
Location: Italy

Re: CGSEventRecord exception with High Sierra

Postby cak » May 17th, 2018, 9:05 pm

Mmmmmh I'm no Java expert but, upon closer inspection, I understand that this is an Apple thing and there's no immediate solution to be implemented in Vassal.
Still, if anyone having faced the same issue could point me e.g. to a safe java version to use with Vassal, I'd be very grateful!
cak
 
Posts: 6
Joined: February 11th, 2017, 4:55 pm
Location: Italy


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 0 guests