View Full Version : Airview2 in 64 bit Debian ....
mcacho
06-03-2009, 08:10 AM
Hi
I understand that Ubuntu is a more unstable "version" of Debian, but has the same methodology to install and work with devices and programs.
So I use the ubuntu installation instructions and issues to install my brand new airview2 in a Debian 64 distro. All works fine, user is in the dialout group, udevinfo is installed and working and the new java jre_6.14 for 64bits is installed.
As I start the airview2.sh script, the program remains searching all the time the usb device, that is recognized by Linux (seeing with dmesg, and installed in /dev/ttyACM0) but not by airview2 ...
I dont know if the java programm is uncompatible with the 64-bit Debian distro, but I think that if the jre6.14/bin/java programm works fine, the jar files dont depend of the processor.
Anyone can know wath is the problem? .... Sorry for my english
UBNT-Ramin
06-03-2009, 01:29 PM
I dont know if the java programm is uncompatible with the 64-bit Debian distro, but I think that if the jre6.14/bin/java programm works fine, the jar files dont depend of the processor.
The issue is with the native serial port library in use by AirView. It's currently only compiled for 32-bit and 64-bit Linux isn't supported yet.
Your simplest option is to just install the 32-bit version of the Java 6 JRE on your Linux machine. It will run absolutely everything without any problems.
If that doesn't work for you and you must be able to run AirView under a 64-bit JRE I have heard of a couple of others who have replaced our supplied library with a 64-bit compiled version and they claim it works.
Try downloading the RXTX 64-bit shared library for Linux from CloudHopper open source site (http://www.cloudhopper.com/opensource/rxtx/ch-rxtx-2.2-20081207-linux-x86_64.zip). Unzip the librxtxSerial.so in that package to the same directory where you un-tarred the AirView runtime and try running AirView again.
Hope this helps.
Cheers,
mcacho
06-08-2009, 04:51 AM
Hi
Thanks for the response. Unfortunately the solutions has not solved the problem, but its possible that now we have another problem origin that need to be solved before the implementation in a 64bit Debian. .....
I'm probing the Airview2 now in a 32 bits Debian, but dint not work, and I'm wondering abuout that .... The message in command line starts with:
log4j:WARN Failed to set property [append] to value "".
after all seems to work fine, but the programm crashes with:
"Initialising Log4J using properties: jar:file:/usr/local/airview2/AirView-Spectrum-Analyzer-v1.0.09/airview-o.jar!/log4j.xml
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGFPE (0x8) at pc=0xb7ef7745, pid=5175, tid=229391
#
# JRE version: 6.0_14-b08
# Java VM: Java HotSpot(TM) Client VM (14.0-b16 mixed mode, sharing linux-x86 )
# Problematic frame:
# C [ld-linux.so.2+0x7745]
#
# An error report file with more information is saved as:
# /usr/local/airview2/AirView-Spectrum-Analyzer-v1.0.09/hs_err_pid5175.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Sorry about these misfunctions or about my unknowledge about java.
Thanks in advance
Miguel
UBNT-Ramin
06-08-2009, 07:42 PM
I'm probing the Airview2 now in a 32 bits Debian, but dint not work, and I'm wondering abuout that .... The message in command line starts with:
log4j:WARN Failed to set property [append] to value "".
This is a harmless warning, nothing to be worried about, but the next thing, the crash, that's very unsettling.
AirView does attempt to write to the user's home dir, but should be completely writable to you.
Hmmm... please do me a favor and un-tar the pkg to a subdir of your own home directory and try running it again. Again, please make sure that when you do "java -version" the output is from the 32-bit JRE. I realize the included script (airview.sh) isn't exactly fool-proof and doesn't do any proper JRE checking or error checking. So it's left to you to make sure you have the proper 32-bit Sun Java 6 JRE installed and its /bin dir in your user account's PATH variable.
Anyways, log into your account, open a terminal window, type "java -version" and let me know what the output is. I'll try and help you diagnose it.
mcacho
06-09-2009, 03:27 AM
Hi
Thanks for your time ...
I have untared the airview2 soft in a subdirectory of my home directory as you say, and soft seems to have the same crash. I have installed a older version of jre 32 bit.
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
I have set the PATH environment variable with the "java/bin" directory and relinked the /usr/bin/java link to the new java executable.
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ echo $PATH
/usr/realtime/bin:/home/miguel/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/miguel/java/jre1.6.0_10/bin
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ which java
/usr/bin/java
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 38 2009-06-09 09:13 /usr/bin/java -> /home/miguel/java/jre1.6.0_10/bin/java
But software crashes. I write only warnings of the console output:
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ java -Djava.library.path=. -Dapp.logging.file.path=./log/runtime.log -Dgnu.io.SerialPorts=/dev/ttyACM0 -jar airview-o.jar |grep -i warn
log4j:WARN Failed to set property [append] to value "".
10:01:19.038 WARN (main) [PropertyPlaceholderConfigurer] Could not load properties from class path resource [test.properties]: class path resource [test.properties] cannot be opened because it does not exist
10:01:19.039 WARN (main) [PropertyPlaceholderConfigurer] Could not load properties from class path resource [user.properties]: class path resource [user.properties] cannot be opened because it does not exist
10:01:19.189 WARN (main) [SystemPropertiesLoaderBean] Could not load properties from class path resource [test.properties]: class path resource [test.properties] cannot be opened because it does not exist
10:01:19.190 WARN (main) [SystemPropertiesLoaderBean] Could not load properties from class path resource [user.properties]: class path resource [user.properties] cannot be opened because it does not exist
The final output is as before, but with another version of jre.
Initialising Log4J using properties: jar:file:/home/miguel/airview2/AirView-Spectrum-Analyzer-v1.0.09/airview-o.jar!/log4j.xml
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGFPE (0x8) at pc=0xb7f96745, pid=4545, tid=229391
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing linux-x86)
# Problematic frame:
# C [ld-linux.so.2+0x7745]
#
# An error report file with more information is saved as:
# /home/miguel/airview2/AirView-Spectrum-Analyzer-v1.0.09/hs_err_pid4545.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
My system is
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ uname -a
Linux PCD2 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686 GNU/Linux
Is bizarre that the soft works in ubuntu, and has problems in Debian, but .... My personal idea is that this is a Java jre problem, but is good to know the origin and the cause, even if we have not solution.
A lot of thanks again.
Miguel
UBNT-Ramin
06-09-2009, 10:00 AM
miguel@PCD2:~/airview2/AirView-Spectrum-Analyzer-v1.0.09$ uname -a
Linux PCD2 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686 GNU/Linux
Is bizarre that the soft works in ubuntu, and has problems in Debian, but .... My personal idea is that this is a Java jre problem, but is good to know the origin and the cause, even if we have not solution.
Hmm... I suspect this is an issue with compiled symbols in a SO file ran on an older kernel. AirView uses a operating-system specific binary to access the USB device, which is exposed as a serial port. On Linux it does this via a shared library (librxtxSerial.so). This file was compiled on a CentOS 5.3 system with kernel that's newer than 2.6.18. I just checked and 2.6.18 is a fairly old Debian kernel.
Have you tried apt-get update lately? Is it possible for you to try this on a system with the latest Debian install?
mcacho
06-10-2009, 04:56 AM
Hi
Bingo !!!!! it works !!!!
Seems that is more a kernel version question than a java question. With a 2.6.26 kernel, it works. I dont know if its only a kernel question or more a distro question (I have probed it in a Debian Lenny distro, and before they was a Debian Etch distro ...)
miguel@PC15:~$ uname -a
Linux PC15 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
Now, I will tent to probe with the 64 bits kernel with your first suggestions.
Thanks for all .... good work
Miguel
UBNT-Ramin
06-10-2009, 08:00 AM
Bingo !!!!! it works !!!!
Seems that is more a kernel version question than a java question. With a 2.6.26 kernel, it works. I dont know if its only a kernel question or more a distro question (I have probed it in a Debian Lenny distro, and before they was a Debian Etch distro ...)
miguel@PC15:~$ uname -a
Linux PC15 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
Excellent! :D Yes, similar JRE crashes had been reported when the program attempted to load a native library that had been compiled with a newer version of the Linux kernel and being ran on an older one.
Thanks for all .... good work
You're quite welcome. I'm glad I was able to help, and thank you for your purchase of AirView.
Cheers,