¿ªÔÆÌåÓý

Locked Move to Raspberry, panel fails #rpi


 

Hi I have a CTC panel which worked correctly with ubuntu (not sure of the JMRI version as the computer died).??
I set up a Rasberry pi 4? 2gig ram os version 10 (buster) current.? JMRI 4.18 running Digitrax simulation.

JMRI appears to run correctly.? I put a copy of the panel file on the Raspberry, it loaded showing many windows
displaying an error regarding the location of the sound files (this I expected) all other items, icons etc worked.

I then went thru the process of editing all sound locations via the panel editor.? Upon launching the updated panel
no sound location errors were noted, but all the icons (levers, switches, turnout etc) were not present.? If I click
on an icon location it will appear but any functions associated with icon will not work.

In the files to be worked on section there is a folder "ernie" with the session log of both? runs..
log2 is after updating the sound file locations.? log3 is before the update.

The first two error messages appear in both files.? While the after update file has an additional error about half way thru.

Any insight as to what this means and how to correct it is appreciated.
Thanks Ernie


 

Seeing the console log would make a big help. It likely has some errors that
will explain some of what's going on. Another is some errors prevent further
things, that might account for the icon issue. Just cut/paste it here so we
can see it.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


 

They are in ¡°Files¡±, ¡°Items being worked on¡±, look in the section ¡°ernie¡±. Two files are there one before the upgrade and one after.

Subject to fat thumbs and strange spell check changes. _Ernie


 

Update,
I have found that sometime moving to a previous version helps in finding problems.
I downgraded JMRI to 4.14 and now get a different error.? When I go to the logic table on opening I get a popup window
"Null Audio Factory init - no sound available".? The problem seems to be with sound, but
when I do an update to an item in the panel I do hear the sound. While the logic table is open I can go to the panel
and click on an item the sound works.? I save the panel and configuration restart PanelPro, the sounds and icons no
longer work or appear.?
session log follows with the new third error regarding 16 bit audio:
2020-04-10 10:01:52,487 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2020-04-10 10:01:52,827 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: /home/pi/.jmri/log/messages.log [main]
2020-04-10 10:01:52,830 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: /home/pi/.jmri/log/session.log [main]
2020-04-10 10:01:52,896 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - PanelPro version 4.14+Rd060e0b starts under Java 11.0.6 on Linux arm v4.19.97-v7l+ at Fri Apr 10 10:01:52 PDT 2020 [main]
2020-04-10 10:01:53,482 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - Starting with profile My_JMRI_Railroad.3e3f59d2 [main]
2020-04-10 10:01:53,852 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using jmri-eic7U34LWhPiaa1kyXcMuT-3e3f59d2 as the JMRI Node identity [AWT-EventQueue-0]
2020-04-10 10:01:55,049 loconet.LnPacketizer? ? ? ? ? ? ? ? ? INFO? - lnPacketizer Started [main]
2020-04-10 10:01:55,067 hexfile.LnHexFilePort? ? ? ? ? ? ? ? ?INFO? - LocoNet Simulator Started [LocoNet HexFileFrame]
2020-04-10 10:01:56,073 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is /home/pi/JMRI/ [main]
2020-04-10 10:01:56,075 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is /home/pi/.jmri/My_JMRI_Railroad.jmri/ [main]
2020-04-10 10:01:56,077 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is /home/pi/.jmri/My_JMRI_Railroad.jmri/ [main]
2020-04-10 10:01:56,080 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is /home/pi/.jmri/ [main]
2020-04-10 10:01:56,082 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is /home/pi/ [main]
2020-04-10 10:01:56,084 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is /home/pi/JMRI/jython/ [main]
2020-04-10 10:01:58,805 PanelPro.PanelPro? ? ? ? ? ? ? ? ? ? ?INFO? - Main initialization done [main]
2020-04-10 10:02:14,954 automat.Siglet? ? ? ? ? ? ? ? ? ? ? ? ERROR - Siglet start invoked for "LH16BlockBossLogic", but no inputs provided [AWT-EventQueue-0]
2020-04-10 10:02:14,957 automat.Siglet? ? ? ? ? ? ? ? ? ? ? ? ERROR - Siglet start invoked for "LH15BlockBossLogic", but no inputs provided [AWT-EventQueue-0]
2020-04-10 10:02:23,042 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]
java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
at java.desktop/javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:425)
at java.desktop/javax.sound.sampled.AudioSystem.getClip(AudioSystem.java:461)
at jmri.jmrit.Sound.openClip(Sound.java:100)
at jmri.jmrit.Sound.lambda$0(Sound.java:87)
at java.base/java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:209)
at jmri.jmrit.Sound.<init>(Sound.java:86)
at jmri.jmrit.Sound.<init>(Sound.java:58)
at jmri.implementation.DefaultConditional.takeActionIfNeeded(DefaultConditional.java:921)
at jmri.implementation.DefaultConditional.calculate(DefaultConditional.java:303)
at jmri.implementation.DefaultLogix.calculateConditionals(DefaultLogix.java:246)
at jmri.implementation.DefaultLogix.activateLogix(DefaultLogix.java:276)
at jmri.managers.DefaultLogixManager.activateAllLogixs(DefaultLogixManager.java:168)
at jmri.configurexml.LoadXmlConfigAction.loadFile(LoadXmlConfigAction.java:55)
at jmri.configurexml.LoadXmlUserAction.actionPerformed(LoadXmlUserAction.java:44)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
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.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6397)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
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)
2020-04-10 10:02:52,145 managers.DefaultShutDownManager? ? ? ?INFO? - Normal termination complete [AWT-EventQueue-0]

Thanks for any help/advise Ernie


 

I've had similar issues on other Linux systems where there wasn't sound
support. On those layouts I removed the need for sound since it was really
optional. It's be nice if it logged the error but then ignored anything
using sound. Would simplify when the dev system doesn't have sound but the
layout system does. I didn't have time to figure it out back then an kind of
forgot about it.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org


 

The error below is saying that the sound clip¡¯s format wasn¡¯t compatible with the sound-playing hardware.

You could try to convert it to a simpler format.

It might also be possible to install the ¡°OpenAL¡± software on your machine, but I¡¯m not sure about that. Perhaps somebody else can comment.

Bob


On Apr 10, 2020, at 11:07 AM, esimard via groups.io <esimard@...> wrote:

java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
at java.desktop/javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:425)
--
Bob Jacobsen
rgj1927@...


 

The message "Null Audio Factory init - no sound available" indicates that you have not installed OpenAL.

This is not a problem as you can hear the sound. The basic sound support seems to work.

There might be a format issue. Are you still trying to play Switch-lever.wav or did you change the WAV file?

You could simply try to play the sound via a script like SampleSound.py (PanelPro >> Panels >> Run Script ...).

Between JMRI 4.14 and 4.18 there was a change for the basic sound support. This might be an argument for running JMRI 4.18.

Klaus


Am 10.04.2020 um 20:07 schrieb esimard via groups.io:

Update,
I have found that sometime moving to a previous version helps in finding problems.
I downgraded JMRI to 4.14 and now get a different error.? When I go to the logic table on opening I get a popup window
"Null Audio Factory init - no sound available".? The problem seems to be with sound, but
when I do an update to an item in the panel I do hear the sound. While the logic table is open I can go to the panel
and click on an item the sound works.? I save the panel and configuration restart PanelPro, the sounds and icons no
longer work or appear.
session log follows with the new third error regarding 16 bit audio:
2020-04-10 10:01:52,487 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2020-04-10 10:01:52,827 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: /home/pi/.jmri/log/messages.log [main]
2020-04-10 10:01:52,830 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: /home/pi/.jmri/log/session.log [main]
2020-04-10 10:01:52,896 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - PanelPro version 4.14+Rd060e0b starts under Java 11.0.6 on Linux arm v4.19.97-v7l+ at Fri Apr 10 10:01:52 PDT 2020 [main]
2020-04-10 10:01:53,482 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - Starting with profile My_JMRI_Railroad.3e3f59d2 [main]
2020-04-10 10:01:53,852 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using jmri-eic7U34LWhPiaa1kyXcMuT-3e3f59d2 as the JMRI Node identity [AWT-EventQueue-0]
2020-04-10 10:01:55,049 loconet.LnPacketizer? ? ? ? ? ? ? ? ? INFO? - lnPacketizer Started [main]
2020-04-10 10:01:55,067 hexfile.LnHexFilePort? ? ? ? ? ? ? ? ?INFO? - LocoNet Simulator Started [LocoNet HexFileFrame]
2020-04-10 10:01:56,073 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is /home/pi/JMRI/ [main]
2020-04-10 10:01:56,075 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is /home/pi/.jmri/My_JMRI_Railroad.jmri/ [main]
2020-04-10 10:01:56,077 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is /home/pi/.jmri/My_JMRI_Railroad.jmri/ [main]
2020-04-10 10:01:56,080 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is /home/pi/.jmri/ [main]
2020-04-10 10:01:56,082 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is /home/pi/ [main]
2020-04-10 10:01:56,084 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is /home/pi/JMRI/jython/ [main]
2020-04-10 10:01:58,805 PanelPro.PanelPro? ? ? ? ? ? ? ? ? ? ?INFO? - Main initialization done [main]
2020-04-10 10:02:14,954 automat.Siglet? ? ? ? ? ? ? ? ? ? ? ? ERROR - Siglet start invoked for "LH16BlockBossLogic", but no inputs provided [AWT-EventQueue-0]
2020-04-10 10:02:14,957 automat.Siglet? ? ? ? ? ? ? ? ? ? ? ? ERROR - Siglet start invoked for "LH15BlockBossLogic", but no inputs provided [AWT-EventQueue-0]
2020-04-10 10:02:23,042 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]
java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
at java.desktop/javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:425)
at java.desktop/javax.sound.sampled.AudioSystem.getClip(AudioSystem.java:461)
at jmri.jmrit.Sound.openClip(Sound.java:100)
at jmri.jmrit.Sound.lambda$0(Sound.java:87)
at java.base/java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:209)
at jmri.jmrit.Sound.<init>(Sound.java:86)
at jmri.jmrit.Sound.<init>(Sound.java:58)
at jmri.implementation.DefaultConditional.takeActionIfNeeded(DefaultConditional.java:921)
at jmri.implementation.DefaultConditional.calculate(DefaultConditional.java:303)
at jmri.implementation.DefaultLogix.calculateConditionals(DefaultLogix.java:246)
at jmri.implementation.DefaultLogix.activateLogix(DefaultLogix.java:276)
at jmri.managers.DefaultLogixManager.activateAllLogixs(DefaultLogixManager.java:168)
at jmri.configurexml.LoadXmlConfigAction.loadFile(LoadXmlConfigAction.java:55)
at jmri.configurexml.LoadXmlUserAction.actionPerformed(LoadXmlUserAction.java:44)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
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.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6397)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
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)
2020-04-10 10:02:52,145 managers.DefaultShutDownManager? ? ? ?INFO? - Normal termination complete [AWT-EventQueue-0]
Thanks for any help/advise Ernie


 

Hi, when I go add software it shows that OpenAL is installed. Is there something I need to do so JMRI uses it? I have not modified the wav files, the VLC player plays the sound correctly.

Subject to fat thumbs and strange spell check changes. _Ernie


 

Am 11.04.2020 um 19:40 schrieb esimard via groups.io:
Hi, when I go add software it shows that OpenAL is installed. Is there something I need to do so JMRI uses it?
Yes, choose Action Type "Control Audio object" instead of "Play Sound File".

In details:
1) Create Audio Buffer and Source
Tools > Tables > Audio > Add Buffer > User Name: Switch-lever Buffer > Filename: Switch-lever.wav > OK
Add Source > User Name: Switch-lever Source > Assigned Buffer: Switch-lever Buffer > OK

2) Edit Logix
switch to the Logix table > Edit > select logix entry > Edit > Edit Action > System/User name: Switch-lever Source >Action Type: "Control Audio Object" > Update > Done

Klaus


 

Thank Klaus, well give it a go. Now I¡¯m beginning to understand.

Subject to fat thumbs and strange spell check changes. _Ernie