question

Quentin M Randolph avatar image
Quentin M Randolph asked

java client blows up JRE - please help

Good evening, I am trying to get the AVS sample project up and running when trying to execute the javaclient it blows up in mid execution. Looks like a swing window pops open right before it errors our. Below is the output. Please help. pi@raspberrypi ~/echo/samples/javaclient $ mvn exec:java [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Alexa Voice Service Sample Java Client 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ sample-java-client >>> [INFO] [INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ sample-java-client <<< [INFO] [INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ sample-java-client --- Requesting Registration Code # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x63ab4ca0, pid=2705, tid=1696298096 # # JRE version: Java(TM) SE Runtime Environment (8.0-b132) (build 1.8.0-b132) # Java VM: Java HotSpot(TM) Client VM (25.0-b70 mixed mode linux-arm ) # Problematic frame: # C [libQtGui.so.4+0x184ca0] QWidget::setAttribute(Qt::WidgetAttribute, bool)+0x24 # # Failed to write core dump. 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/pi/echo/samples/javaclient/hs_err_pid2705.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # Aborted
alexa voice service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Beefalo avatar image
Beefalo answered
Hi Quentin, Most likely this is due to a VLC plugin that is conflicting with the setup. I've found the quickest way to get this working is to install vlc and the plugins. Then go in and remove the specific plugins while leaving base plugin setup still there. IE: sudo apt-get install vlc* sudo apt-get remove vlc-plugin-* Hopefully this should fix the issue for you. -Bobby
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Quentin M Randolph avatar image
Quentin M Randolph answered
Thanks for getting back to me! It turned out that I needed to go back to java 1.7. That let the program actually run. But now I am getting no response from Alexa when I run it. It can see my voice commands on the phone app so I know its hearing me. But its just not playing anything back :(
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bobby@Amazon avatar image
Bobby@Amazon answered
Hi Quentin, The app is designed to use the default audio output of the system. You may need to change this setting on your Raspberry Pi depending on whether you want the audio to go out via HDMI or the line out. You can do this in the terminal: sudo amixer cset numid=3 can be: 0 = Auto 1 = Line Out 2 = HDMI
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mark4in avatar image
mark4in answered
I am having exactly the same problem. Uninstalling the vlc plugins did not help either. I also downgraded to java 1.7 but still no luck. Please suggest.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Quentin M Randolph avatar image
Quentin M Randolph answered
Mark if you are using a raspberry pi then make sure you are using the ARM build for the JDK. That is what I am using. As soon as I get home I will get the exact version number for you. Your raspberry pi should have it installed already. Max
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeff W avatar image
Jeff W answered
Thanks for the suggestions. I also removed the vlc plugins and downgrade to java 1.7, still aborted when running the client application.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AmitSharma avatar image
AmitSharma answered
Am facing the same issue. # JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43) # Java VM: Java HotSpot(TM) Client VM (24.0-b56 mixed mode linux-arm ) # Problematic frame: # C [libfreetype.so.6+0x5b91c] FTC_SBitCache_LookupScaler+0x294c
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bobby@Amazon avatar image
Bobby@Amazon answered
In order to get this working on a Raspberry Pi, I did the following: 1) Do a fresh install of Rasbian OS via NOOBs 2) Download and install Maven 3) Only install the following(some dependencies for them will also be installed): sudo apt-get install vlc-nox libvlc5 libvlccore5 vlc-data 4) Follow instructions to acquire reference implementation 5) Make sure to update the pom.xml file per the instructions: net.java.dev.jna jna 4.1.0 compile
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Yu avatar image
James Yu answered
Bobby, which java and javac version did you use in your Pi?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Yu avatar image
James Yu answered
It looks to me the "vlc-plugin-notify" is the problematic VLC related package that's causing the reported issue. After removing it, i.e., sudo apt-get purge vlc-plugin-notify the AVS Java client runs fine, regardless Java 1.7 or 1.8.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.