Skip to main content
Topic: [Solved] Anybody managed to get the software running on a mac? (Read 14005 times) previous topic - next topic

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #15
I back ported the patch again to 2.1-7r2, and fixed the 64 bit issues, but I have still had one kernel crash since doing that.  I may just grab the arduino18 version, but I would like to understand this one.

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #16
Hi all

OK following the experience of others I also copied the appropriate files from arduino 18, and clicking on analyzer.jar in both cases (sept 09) or the recent SVN 2.01 jar i get the java sump client to function. HOWEVER in both cases clicking on the rocket does not induce the capture pane!

sdixon could you shed more light on what actions you performed and is it fully capturing for you?

When I run the jar from the command line I get the following exceptions, the app starts but fails to generate the capture popup

java -jar analyzer.jar $*

OB_Logic_Sniffer_javaClient_CVS_Sep262008 minimac$ java -jar analyzerorig.jar $*
java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:114)
   at java.util.jar.JarFile.(JarFile.java:133)
   at java.util.jar.JarFile.(JarFile.java:70)
   at org.sump.analyzer.MainWindow.createGUI(MainWindow.java:195)
   at org.sump.analyzer.MainWindow.run(MainWindow.java:641)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:114)
   at java.util.jar.JarFile.(JarFile.java:133)
   at java.util.jar.JarFile.(JarFile.java:70)
   at org.sump.analyzer.MainWindow.createGUI(MainWindow.java:265)
   at org.sump.analyzer.MainWindow.run(MainWindow.java:641)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
minimac-2:OB_Logic_Sniffer_javaClient_CVS_Sep262008 minimac$


minimac-2:OB_Logic_Sniffer_javaClient_CVS_Sep262008 minimac$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)


many thanks SwissMac

OS X 10.6.3

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #17
Hi, swissMac-
I've not done anything past what you have described to run SUMP.  The only other java related configuration I've done is that I have the default JVM set to 32bit.  You can do that by running the Java preferences pane and dragging the 32 bit jvm to the top of the list.
Here is the java I'm running:
java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) Client VM (build 14.3-b01-101, mixed mode)
[metapb:FPGA_ROM/test_roms/2.01] scott%

and here is what I get if I run the analyzer.jar (svn version) from the command line:
ava -jar analyzer.jar
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
/dev/tty.SerialPort-1
/dev/cu.SerialPort-1
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
Device Controller found: org.sump.analyzer.devices.FpgaDeviceController
/dev/tty.SerialPort-1
/dev/cu.SerialPort-1
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
Device Controller found: org.sump.analyzer.devices.Hp16500DeviceController
Device Controller = FPGA Controller
Tool found: org.sump.analyzer.tools.I2CProtocolAnalysis
Tool found: org.sump.analyzer.tools.SPIProtocolAnalysis
Tool found: org.sump.analyzer.tools.StateAnalysis
Tool found: org.sump.analyzer.tools.UARTProtocolAnalysis

I am able to select the capture icon which causes the capture pane to come up and I can then fill in the appropriate fields to select the com port, sample speed and size, trigger options etc and initiate a capture.  It all works like it does on Windows.
I did get see the same error messages and behavior as you are reporting when I tried to use the sept 09 SUMP.  I wonder if there is some difference between different java versions used for compiling the various SUMP versions and different versions of Java on the Mac which are causing the problems?
Anyway, the only thing I can suggest to you is that you make sure to try the 32 bit JVM.  That is the only thing which I think might be different in what I've done.
-Scott

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #18
Okay the "java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)"

Means the Look and feel files is not being found.

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #19
I am running:

OS X 10.6.3
Java version "1.6.0_17"

I have tried analyser.jar from:
I have tried rxtx from:
I have tried running Java in 32bit and 64bit mode.

The best result seems to be the analyser.jar from the gadgetfactory, which opens but doesn't do anything when clicking on the rocket to get the capture options window.

I have run the analyser.jar using java -verbose -jar analyser.jar and there are no errors reported except for the missing enhanced UI:
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.(ZipFile.java:114)
        at java.util.jar.JarFile.(JarFile.java:133)
        at java.util.jar.JarFile.(JarFile.java:70)
        at org.sump.analyzer.MainWindow.createGUI(MainWindow.java:195)
        at org.sump.analyzer.MainWindow.run(MainWindow.java:641)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I have attached the entire log.

Anyone have any ideas? It's frustrating to know that people have this going and I don't :-)

Re: [Unsolved] Anybody managed to get the software running on a mac?

Reply #20
[quote author="sdixon"]
I have SUMP working nicely on OS X 10.6.3 by using the following steps:
1)  Copy librxtxSerial.jnilib and RXTXcomm.jar from Arduino18 (or Processing) to /Library/Java/Extensions (Arduino and Processing are Java based apps which use USB serial extensively so they manage to keep RXTX working).
2)  Use the version of SUMP from http://www.gadgetfactory.net/gf/project ... r&view=log
I didn't have any luck with the sep262008 release of SUMP.
3)  I find the easiest way to run SUMP is to simply double click on analyzer.jar.
I've tried a number of the OLS features using this version and everything I've tried seems to work fine.
[/quote]

One other point, this link appears to be firmware not the JAVA client:
http://www.gadgetfactory.net/gf/project ... r&view=log

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #21
Scott,
Success!
I imagine its two things,
1) 32bit vs 64 bit (should be 32 bit)
I tried with 64bit and I get the same errors as previous,

2) Using 32 bit and using the SVN jar I get the capture screen popup.

From the command line :
java -d32 -jar svn_analyzer.jar  (I renamed analyzer.jar to be able to try multiple versions )

minimac$ java -d32 -jar svn_analyzer.jar
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
/dev/tty.Bluetooth-PDA-Sync
/dev/cu.Bluetooth-PDA-Sync
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
Device Controller found: org.sump.analyzer.devices.FpgaDeviceController
/dev/tty.Bluetooth-PDA-Sync
/dev/cu.Bluetooth-PDA-Sync
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
Device Controller found: org.sump.analyzer.devices.Hp16500DeviceController
Device Controller = FPGA Controller
Tool found: org.sump.analyzer.tools.I2CProtocolAnalysis
Tool found: org.sump.analyzer.tools.SPIProtocolAnalysis
Tool found: org.sump.analyzer.tools.StateAnalysis
Tool found: org.sump.analyzer.tools.UARTProtocolAnalysis

2LostKiwis
please try the above I think you have the same error as I, the SVN analyzer file is at location:
SVN/trunk/Java_Client_Sump/analyzer.jar
from the right hand menu at the Gadget factory website, link below

http://www.gadgetfactory.net/gf/project/butterflylogic/scmsvn/?action=browse&path=%2Ftrunk%2FJava_Client_Sump%2Fanalyzer.jar&view=log

Once you have this I think it should work for you,
if you don't want to use the command line then you can
set up the java preferences from Finder:

/Applications/Utilities/Java Preferences, as Scott mentioned, set the 32 bit JVM as the initial option for executing a script/Application


regards
Mac

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #22
Scott & swissMAC, thnx for verifying and giving us the details. I just pulled out my MacBook with Mac OSX 10.6.3 and I get the same positive result as both of you did when setting the JVM to 32-Bit.

The Java client analyzer.jar in 2.01TestRelease.tar (/FPGA_ROM/test_roms/2.01/analyzer.jar) is the same/identical as/with the direct SVN client analyzer.jar.

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #23
Hi all,

A Newbie question ....

Got my board today (Thank you Seeed .... !) To get stuff fired up, I just copied the libs from Arduino18,
then plugged in the board to my Macbook Pro, and started the java app... (java -d32  -jar analyzer.jar )
and up plops the GUI (the excitement grew with the minute here...)

The logging showed Device Controller found: org.sump.analyzer.devices.FpgaDeviceController and
/dev/tty.usbmodem621
/dev/cu.usbmodem621

So: I felt good, but after trying to start the LA by pressing the button, it showed that
it could not find any device... (logging showed: /dev/tty.usbmodem621 (115200bps) ) so: what
is the thing here, Do I need to flash the board first ?? BTW I checked every baudrate :-) and selected
the FPGA controller...

Can someone just give me the right push ??

Thanks !
Rudi

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #24
I've noticed a few times that when you first start up the SUMP program and try a capture you get the message about not finding the device.  It is very sporadic and I've always managed to fix it by some random combination of restarting SUMP and unplugging and plugging the OLS.  I don't see any pattern in when it happens and the good news is that once you have captures working they consistently work for that session.  There are also communications problems with the PC version of SUMP that are sporadic.  Jack and Ian are working on an upgrade to the firmware/bitstream which will hopefully solve these communications problems.  But even so, the problem is fairly rare and I don't find it a big issue.  Most of the time, the OLS works great.
-Scott

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #25
Hi,

Still no go for me, how hard I try :-(
My OLS enumerates to /dev/cu.usbmodem621 or /dev/tty.usbmodem621, but with the client I
still get :
Attaching to: /dev/cu.usbmodem621 (115200bps)
Run started
Device ID: 0x0
Run aborted
java.io.IOException: Device not found.
   at org.sump.analyzer.devices.FpgaDevice.run(FpgaDevice.java:648)
   at org.sump.analyzer.devices.FpgaDeviceController.run(FpgaDeviceController.java:546)
   at java.lang.Thread.run(Thread.java:637)

Or Attaching to: /dev/tty.usbmodem621 if I select this in the gui.

Also if I try to talk to the device using a terminal program, I do not get any reply nor do I see
lights flashing at the board (except for the ACT led if it starts up) giving some comms feedback.
Weird.... If I reset the board with the switch I see a term Serdevice error in my terminal, but that
is all there is...

Unfortunately I'm on a mac only environment, I do not easily have a Linux or Win box to test ...

Any ideas out there in the blue ?

Rudi

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #26
I see that message if I use any bitstream setting other than the original ones with the right configuration settings.  I sometimes see it otherwise, but changing the capture parameters can cause that message.  I recommend finding the sump client that has the 700ms delay in it, and only change the /dev/tty field in the capture screen.  All of the others leave alone at first.

Once I get that message I have exit sump, and unplug the card to get it to work..

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #27
There are several conflicting issues here.  Macos 10.6.3 is 64bit by default, and most of the working rxtx libs are not.  You can force java on 10.6.3 to run 32 bit with -d32 switch, and that gets some people going.  You can try to do the patches described and recompile rxtx, but having done this, I still found a couple more 64bit botches in the code, and given the crashes I see there are still issues with close and this code, 2.1.7r2 which is the latest release, but it still has the locking issues, and crashes for 64bit.  The version in arduino is a 32 bit java and lib, so I can only use it with the -d32 option, or there is a system default setting, but I get lost there.

Sometimes I can get it to work in 64bit mode, but the crashed got to be too much.  I now run 32b and things are more stable.  I strongly recommend getting the sump client with the 700ms patch in it, that helps alot too.

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #28
Ok, after a lot of trying i got the 'original' 0.8 version of the software running but the 2.1 still doesn't work..

I'm running:
OS X:10.6.3
Java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

options I tried so far, all started with java -d32 -jar analyzer.jar $* (also tried moving the 32-bit java version to the top in the java prefs):

Code: [Select]
analyzer.jar (0.8) from [url]http://www.sump.org/projects/analyzer/downloads/la-bin-0.8.tar.bz2[/url]
This option works, but the capture window is quite big and not really workable. The UART tool is also not yet included in this version, so I'm trying to make a newer version work:

Code: [Select]
analyzer.jar (2.1 test release) from SVN at: [url]http://www.gadgetfactory.net/gf/project/butterflylogic/scmsvn/?action=browse&path=%2FTestReleases%2F2.01TestRelease.zip&view=log[/url]
This option runs but doesn't open the Capture window.

Code: [Select]
analyzer.jar (2.1 test release) from SVN at: [url]http://www.gadgetfactory.net/gf/project/butterflylogic/scmsvn/?action=browse&path=%2Ftrunk%2FJava_Client_Sump%2Fanalyzer.jar&view=log[/url] (should be the same one as above)
This option runs but doesn't open the Capture window.

Code: [Select]
analyzer.jar (CVS_Sep262008) from gadget Factory 'files'-section at [url]http://www.gadgetfactory.net/gf/download/frsrelease/118/300/OB_Logic_Sniffer_CVS_Sep262008.zip[/url]
This option runs but doesn't open the Capture window.

They also all give the missing PgsLookAndFeel errors. (is this package available for OS X? I can't find it anywhere, or find instructions where to install it)

And I'm using the RXTX library from here: http://arduino.googlecode.com/files/arduino-0018.dmg

Can anyone see what I'm doing wrong here? Is my problem maybe the recent update of java (1.6.0_20) apple deployed?

Any help is greatly appreciated! I'd really like the latest version to work...

Re: [Solved] Anybody managed to get the software running on a mac?

Reply #29
Yes you can download the look and feel jar and it works on 10.6.3, what I am running..

No I can run with the recent update, did so last night.

I have best luck with the anaylzer.jar that has an extend timeout, you can find in the forum here, but I believe Ian has been quite clear that a new bitstream is needed to fix the real problem.  Hopefully we will see that soon.