FIBS Board backgammon forum

pre-alpha release

Author Topic: pre-alpha release  (Read 11831 times)

Offline burper

  • Fibsboarder ++
  • ****
  • Posts: 837
pre-alpha release
« on: May 08, 2004, 05:46:20 PM »
The pre-alpha version of Fibs Companion has been released, along with it's API documentation. There are some known issues, which is why this is pre-alpha, but I don't think it's a long way from being stable. Note that the minimal testing that it has had has only occurred with telnet and javafibs on only Windows ME and Solaris 8.

If you try it and notice anything weird with it, feel free to post it in this thread. Experiences from other platforms especially valuable.

To get the release, go to its' development site: http://sourceforge.net/projects/fibscompanion

and scroll down to the "Latest File Releases" section, in which you will see the "fibscompanion" package. Click on that and you will see a page that contains both the companion itself, and the api doc as a zip file.

Have fun with it, and let me know what issues you have with the installation and/or running of it, by posting HERE.

FIBS Board backgammon forum

pre-alpha release
« on: May 08, 2004, 05:46:20 PM »

Offline klic

  • Gold member
  • Fibsboarder +
  • *
  • Posts: 67
    • http://lklaus.homelinux.org
pre-alpha release
« Reply #1 on: May 08, 2004, 07:16:32 PM »
Ok, just started it and connected JavaFIBS via the Companion to FIBS. Will see what happens :-)

BTW, you might to add a script for *nix based machines (I'm running it right now on Linux)

fc.sh:
----vvvvv
#!/bin/sh
java -jar -Djava.security.manager -Djava.security.policy=security.policy ./fibscompanion.jar
----^^^^^^

Which is two lines, really.
 

Offline MadMatt

  • Fibsboarder plus
  • ****
  • Posts: 267
    • The FIBS TourneyBot Home Page
pre-alpha release
« Reply #2 on: May 08, 2004, 07:16:49 PM »
Alright, I played with it a bit, nice start there burper.

A couple of glitches:

1. If you want to get it running on Windows, change the fc.bat file to the following line:
java -jar -Djava.security.manager -Djava.security.policy=security.policy fibscompanion.jar

2. If there is no logs folder in the folder you unpacked the companion to, create one yourself. This is a glitch with WinZip and other Windows zip archivers, they ignore empty directories.

3.  After you do that, run (double-click) on the fc.bat file and wait for the companion to load.

4. Configure your client to connect to localhost, port 4321 instead of fibs.com 4321. For example, in JavaFIBS, select Server from the Preferences menu and enter localhost under host and 4321 under Port.

5. Have your client connect.

6. The only working plugin so far is RepAlert . It shows the reputations of inviting players. To bring it up, right-click (on Windows) on the FIBS Companion graphic and select Connection->RepAlert. There's a minor bug with it that shows a redundant RepBot timeout line after the reputation.

7. The entire thing seems to hang after a couple of minutes. This is possibly due to some Thread dead-lock. (see below)

8. The menu doesn't appear in the right position if you move the Companion window (it still keeps appearing at the Companion window's default position).
« Last Edit: May 08, 2004, 07:33:59 PM by MadMatt »
MadMatt
----------

TourneyBot Website

Offline MadMatt

  • Fibsboarder plus
  • ****
  • Posts: 267
    • The FIBS TourneyBot Home Page
pre-alpha release
« Reply #3 on: May 08, 2004, 07:18:54 PM »
These exceptions occure after the thing hangs:

java.lang.Error: Interrupted attempt to aquire write lock
   at javax.swing.text.AbstractDocument.writeLock(Unknown Source)
   at javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at javax.swing.text.PlainDocument.insertString(Unknown Source)
   at javax.swing.JTextArea.append(Unknown Source)
   at net.sf.fibscompanion.Config.log(Config.java:296)
   at net.sf.fibscompanion.Config$GUIHandler.publish(Config.java:1765)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.doLog(Unknown Source)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.info(Unknown Source)
   at net.sf.fibscompanion.StreamController.run(StreamController.java:130)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.DataInputStream.read(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:449)
   at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at java.io.PushbackInputStream.read(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
   at sun.nio.cs.StreamDecoder.read(Unknown Source)
   at java.io.InputStreamReader.read(Unknown Source)
   at java.io.BufferedReader.fill(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:457)
   at java.lang.Thread.run(Unknown Source)
java.lang.Error: Interrupted attempt to aquire write lock
   at javax.swing.text.AbstractDocument.writeLock(Unknown Source)
   at javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at javax.swing.text.PlainDocument.insertString(Unknown Source)
   at javax.swing.JTextArea.append(Unknown Source)
   at net.sf.fibscompanion.Config.log(Config.java:296)
   at net.sf.fibscompanion.Config$GUIHandler.publish(Config.java:1765)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.doLog(Unknown Source)
   at java.util.logging.Logger.log(Unknown Source)
   at java.util.logging.Logger.info(Unknown Source)
   at net.sf.fibscompanion.StreamController.run(StreamController.java:233)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at java.io.PushbackInputStream.read(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
   at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
   at sun.nio.cs.StreamDecoder.read(Unknown Source)
   at java.io.InputStreamReader.read(Unknown Source)
   at java.io.BufferedReader.fill(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at java.io.BufferedReader.readLine(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:457)
   at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Socket operation on nonsocket: recv failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.DataInputStream.read(Unknown Source)
   at net.sf.fibscompanion.StreamController$StreamReader.run(StreamController.java:449)
   at java.lang.Thread.run(Unknown Source)
MadMatt
----------

TourneyBot Website

FIBS Board backgammon forum

pre-alpha release
« Reply #3 on: May 08, 2004, 07:18:54 PM »

Offline klic

  • Gold member
  • Fibsboarder +
  • *
  • Posts: 67
    • http://lklaus.homelinux.org
pre-alpha release
« Reply #4 on: May 08, 2004, 07:31:08 PM »
Here it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermissio n(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)
 

Offline MadMatt

  • Fibsboarder plus
  • ****
  • Posts: 267
    • The FIBS TourneyBot Home Page
pre-alpha release
« Reply #5 on: May 08, 2004, 07:37:43 PM »
Quote
Here it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermissio n(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)
Are you sure you didn't choose a location where you don't have write privileges to?
MadMatt
----------

TourneyBot Website

Offline burper

  • Fibsboarder ++
  • ****
  • Posts: 837
pre-alpha release
« Reply #6 on: May 08, 2004, 07:39:28 PM »
Quote
Ok, just started it and connected JavaFIBS via the Companion to FIBS. Will see what happens :-)

BTW, you might to add a script for *nix based machines (I'm running it right now on Linux)

fc.sh:
----vvvvv
#!/bin/sh
java -jar -Djava.security.manager -Djava.security.policy=security.policy ./fibscompanion.jar
----^^^^^^

Which is two lines, really.
Thanks, done. it will appear in next release

Offline burper

  • Fibsboarder ++
  • ****
  • Posts: 837
pre-alpha release
« Reply #7 on: May 08, 2004, 07:41:02 PM »
Quote
Quote
Here it's still running, but when I click on Choose for the logfile location, I get a (abbreviated)

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermissio n(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getHomeDir ectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install Components(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.install UI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.install UI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at net.sf.fibscompanion.Config.logDirChoose(Config.java:1461)
Are you sure you didn't choose a location where you don't have write privileges to?
I think this one is fixed also. some unzippers don't unpack empty directories, like the log dir is. i put a placeholder file in there to get around the problem. Thanks for the report and the compliment Mat!

FIBS Board backgammon forum

pre-alpha release
« Reply #7 on: May 08, 2004, 07:41:02 PM »

Offline klic

  • Gold member
  • Fibsboarder +
  • *
  • Posts: 67
    • http://lklaus.homelinux.org
pre-alpha release
« Reply #8 on: May 08, 2004, 07:45:26 PM »
Quote
Quote

java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
        at java.security.AccessControlContext.checkPermissio n(Unknown Source)

...

Are you sure you didn't choose a location where you don't have write privileges to?
Not in the beginning. But note it says "user.home read", which is my $HOME-dir and definitely readable/writeable by me. I did some further testing, as I noticed it's saying .../log (3 dots). Tried it with ./log and even /tmp, but it always gives me this error. Probably some problem with the security.manager. It does create and fill logfiles, though.

And it is still running, half an hour now.
 :yes:  

Offline Tomawaky

  • Fibsboarder ++
  • ****
  • Posts: 891
    • FibsLeaGammon
pre-alpha release
« Reply #9 on: May 08, 2004, 11:59:12 PM »
Tested but Introduce many lag for me  :(  
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

Offline burper

  • Fibsboarder ++
  • ****
  • Posts: 837
pre-alpha release
« Reply #10 on: May 09, 2004, 01:19:55 AM »
It would be helpful if you could include the kind of machine you are running it on Tomawaky. Are there any clues at all why it is so laggy? How laggy is it? What version of java are you running on?

Did it start off okay and get worst over time, or was it slow right away?
Were you using the repalert plugin at all?
« Last Edit: May 09, 2004, 01:38:56 AM by burper »

Offline Tomawaky

  • Fibsboarder ++
  • ****
  • Posts: 891
    • FibsLeaGammon
pre-alpha release
« Reply #11 on: May 09, 2004, 09:10:34 AM »
W2K SP4
Pentium3
128Mo
Java 1.3.0_02

Clues : I think my PC is at the edge for Java Application which need ressource. Maybe JavaFibs + Companion is too much.
I will try with another client

It's slow right away and have got 3 deconnections yesterday !
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

FIBS Board backgammon forum

pre-alpha release
« Reply #11 on: May 09, 2004, 09:10:34 AM »

Offline burper

  • Fibsboarder ++
  • ****
  • Posts: 837
pre-alpha release
« Reply #12 on: May 09, 2004, 01:32:54 PM »
You should have got a popup at startup time informing you that 1.4 is required, and then be prevented from starting up. Hmmmm.
Try upgrading to 1.4+ and see what happens.
Another thing I have seen is that the connection loop starts spinning, creating one new bufferedReader after another. Look for repeated occurances of this in the system log.. That would account for lag, but usually doesn't happen right away.

Tags:
 

TinyPortal © 2005-2018