Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
JSSC on M1
Yes, that's the one, although I haven't pulled any newer versions recently.
________________________________________ From: [email protected] <[email protected]> on behalf of Carl Makin Sent: Saturday, January 8, 2022 6:34 AM Hi Andrew, What JSSC are you using. Is it the one at Carl. |
On 9 Jan 2022, at 4:05 am, Andrew P. <AndrewEMT@...> wrote:Well, it looks like macos on arm64 has been added to the precompiled resources. BTW, I hadn’t noticed the serial port issue on my M1 Max mbp as I use a Moxa remote serial port via tcp and that and the adsb plugin have been working fine (although the heading issue remains). Otherwise it’s been working fine. Carl. |
Again, I don't _know_ that it's an issue, as I don't have a Mac M1 to test with. Maybe the person who asked will be OK. But I wanted her to be warned how to work around it, as I don't know if the O/S-provided library search code uses the correct directory names for Mac OS X (they were designed for non-Intel Linux distros).
Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of Carl Makin Sent: Saturday, January 8, 2022 5:56 PM On 9 Jan 2022, at 4:05 am, Andrew P. <AndrewEMT@...> wrote:Well, it looks like macos on arm64 has been added to the precompiled resources. BTW, I hadn’t noticed the serial port issue on my M1 Max mbp as I use a Moxa remote serial port via tcp and that and the adsb plugin have been working fine (although the heading issue remains). Otherwise it’s been working fine. Carl. |
On 9 Jan 2022, at 10:22 am, Andrew P. <andrewemt@...> wrote:Well, i’m happy to test and report if you need it. BTW, I’m getting the following error when trying to create a new port. 1641684983877: PortEditor: starting to create editor 1641684983877: PortEditor: starting to create per-driver cards 1641684983877: PortEditor: loading editor class for Serial_TNC 1641684983877: PortEditor: creating card for Serial_TNC Unable to initialize port configuration panel.: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.ka2ddo.yaac.gui.PortEditor.<init>(PortEditor.java:82) at org.ka2ddo.yaac.gui.config.ConfigurePorts.actionPerformed(ConfigurePorts.java:97) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Caused by: java.lang.NoClassDefFoundError: Could not initialize class jssc.SerialPortList at org.ka2ddo.yaac.os.OSAdapter$1.getSerialPortNames(OSAdapter.java:64) at org.ka2ddo.yaac.os.OSAdapter.getSerialPortNames(OSAdapter.java:94) at org.ka2ddo.yaac.os.OSAdapter.getCachedSerialPortNames(OSAdapter.java:106) Carl. Sun Jan 09 10:34:15 AEDT 2022: YAACBootstrap starting... os.name=Mac OS X os.version=12.1 os.arch=aarch64 locale=en_AU java.version=17 java.class.version=61.0 JVM: Eclipse Adoptium OpenJDK 64-Bit Server VM 17+35 java.class.path=./YAAC.jar |
Sounds like you answered the question. Since you have such a machine, can you download the newer JSSC library you mentioned and drop it in the YAAC/lib directory of your installation (overwriting or replacing the existing jssc-2.9.2.jar [the old one can't continue to exist])? If that works, I'll put the new version of JSSC into the next build of YAAC.
________________________________________ From: [email protected] <[email protected]> on behalf of Carl Makin <carl@...> Sent: Saturday, January 8, 2022 6:40 PM To: [email protected] Subject: Re: [yaac-users] JSSC on M1 On 9 Jan 2022, at 10:22 am, Andrew P. <andrewemt@...> wrote:Well, i’m happy to test and report if you need it. BTW, I’m getting the following error when trying to create a new port. 1641684983877: PortEditor: starting to create editor 1641684983877: PortEditor: starting to create per-driver cards 1641684983877: PortEditor: loading editor class for Serial_TNC 1641684983877: PortEditor: creating card for Serial_TNC Unable to initialize port configuration panel.: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.ka2ddo.yaac.gui.PortEditor.<init>(PortEditor.java:82) at org.ka2ddo.yaac.gui.config.ConfigurePorts.actionPerformed(ConfigurePorts.java:97) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Caused by: java.lang.NoClassDefFoundError: Could not initialize class jssc.SerialPortList at org.ka2ddo.yaac.os.OSAdapter$1.getSerialPortNames(OSAdapter.java:64) at org.ka2ddo.yaac.os.OSAdapter.getSerialPortNames(OSAdapter.java:94) at org.ka2ddo.yaac.os.OSAdapter.getCachedSerialPortNames(OSAdapter.java:106) Carl. Sun Jan 09 10:34:15 AEDT 2022: YAACBootstrap starting... os.name=Mac OS X os.version=12.1 os.arch=aarch64 locale=en_AU java.version=17 java.class.version=61.0 JVM: Eclipse Adoptium OpenJDK 64-Bit Server VM 17+35 java.class.path=./YAAC.jar |
开云体育
Done. ?Seems to work fine!. No errors in the log (well for the serial port anyway, see below for others ).? Carl. Other errors --- did not attach native libosadapter library for aarch64 Mac OS X SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation --- --- Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning. --- Hmmm, the mac comes with “Times New Roman”, and all the web fonts. ?not sure why it wouldn’t be finding it. --- renderCurrentMap[#2]: 5553(84387)/1453680 ways(0ur), 4/370180 nodes, 0 signs, 157 files(3 new,342 missing) in 499msec @ zoom=724Exception in thread "OSMLayer Renderer 10" java.lang.IllegalArgumentException: unsupported ObjectSubType variant 255 5783.0 [-37.42889,149.09193] --- |
The three other messages are normal. I had to make a custom hack to deal with a "feature" in the most recent Linux kernels to work around an issue when importing the OpenStreetMap database. Hopefully, it's not an issue for any other operating system, because I don't have equivalent native libraries for them. And the SLF4J library is referenced by JSSC, but I don't have it configured to log anything (hence the warning about the missing Logger binder).
toggle quoted message
Show quoted text
The font issue is weird, but I've never run a Java AWT application on Mac OS X, so I'm not sure where that came from. The last issue is either because you have out-of-date map files (file structure change), or an obscure bug I still haven't tracked down for reading the map files into the renderer. ________________________________________ From: [email protected] <[email protected]> on behalf of Carl Makin Sent: Saturday, January 8, 2022 7:14 PM On 9 Jan 2022, at 10:47 am, Andrew P. <andrewemt@...<mailto:andrewemt@...>> wrote:
Sounds like you answered the question. Since you have such a machine, can you download the newer JSSC library you mentioned and drop it in the YAAC/lib directory of your installation (overwriting or replacing the existing jssc-2.9.2.jar [the old one can't continue to exist])? If that works, I'll put the new version of JSSC into the next build of YAAC. Done. Seems to work fine!. No errors in the log (well for the serial port anyway, see below for others ). Carl. Other errors --- did not attach native libosadapter library for aarch64 Mac OS X SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation --- --- Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning. --- Hmmm, the mac comes with “Times New Roman”, and all the web fonts. not sure why it wouldn’t be finding it. --- renderCurrentMap[#2]: 5553(84387)/1453680 ways(0ur), 4/370180 nodes, 0 signs, 157 files(3 new,342 missing) in 499msec @ zoom=724Exception in thread "OSMLayer Renderer 10" java.lang.IllegalArgumentException: unsupported ObjectSubType variant 255 5783.0 [-37.42889,149.09193] --- |
Hi Andrew,
On 9 Jan 2022, at 11:35 am, Andrew P. <andrewemt@...> wrote:Good to know. Everyone’s jumpy about l4j these days. The font issue is weird, but I've never run a Java AWT application on Mac OS X, so I'm not sure where that came from.It’s valid. There is no “Times” font on the mac. It doesn’t seem to hurt anything, but we can just install it if it annoys anyone. The last issue is either because you have out-of-date map files (file structure change), or an obscure bug I still haven't tracked down for reading the map files into the renderer.My times seem to be the same date as the ones on the server; ID: 110430030 2021-08-29T23:58:24Z hsuhw The error happened when I zoomed out, possibly past where I had downloaded map tiles for. yes, i can reliably trigger it when zooming out past 200km (on the legend). BTW the legend bar shortens to half size but still says 200km. weird. Carl. |
to navigate to use esc to dismiss