AFLobby 3.9.6 General Release and .deb for Ubuntu

AFLobby 3.9.6 General Release and .deb for Ubuntu

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

AFLobby 3.9.6 General Release and .deb for Ubuntu

Post by Relative »

AFLobby 3.9.6 for windows and linux has been released. For more information go to darkstars:

http://www.darkstars.co.uk/2007/aflobby-beta-396/

Image

Image
Image
Image
Image

Coinciding with the release of AFLobby 3.9.6 I have released a .deb for Ubuntu 7.04/7.10. You can find it at the link above. If you have any problems with the .deb then please post in this thread. It's my first .deb, so be kind :)
Last edited by Relative on 29 Oct 2007, 22:56, edited 9 times in total.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

longhair
Posts: 19
Joined: 26 Apr 2006, 00:22

Post by longhair »

OK, tried it out. I'm on an AMD64 machine with Kubuntu Gutsy Gibbon as the OS.

Once I got the proper default Java binary setup, (sudo update-alternatives --config java) AFLobby opened and I, as advised by the readme, went to Lobby Settings, and set my path to settings++ and to TASServer.jar. (is that the right file to be pointing the single player to?)

Restarted the lobby, and did my settings in settings++. One annoyance is that I couldn't see the entire group of settings, and resizing of the window was disabled for some reason. Anyway, saved my settings, and tried to start a single player game. The first time around, I got some error messages dribbling out on my console, among them something about permission denied. I did a chmod 777 TASServer.jar, and tried again. Now nothing happens, but nothing comes out in the console either.

If I try to do a multiplayer login with default settings, the lobby crashes entirely with the following output in the console:

Code: Select all

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002aaaefc8347d, pid=19936, tid=1099176272
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C  [libjpeg.so.62+0xa47d]
#
# An error report file with more information is saved as hs_err_pid19936.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted (core dumped)
If I check the Login in chat mode only, I can log in as expected. If I click on Join a Battle/Game in the start tab, nothing happens, and I get the following in the console:

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: component not found in tabbed pane
        at javax.swing.JTabbedPane.setSelectedComponent(JTabbedPane.java:659)
        at aflobby.CChannelView.jButton11ActionPerformed(CChannelView.java:1122)
        at aflobby.CChannelView.access$1300(CChannelView.java:54)
        at aflobby.CChannelView$11.actionPerformed(CChannelView.java:361)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Hope that sheds some light on the situation.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Ok the first issue is not an AFLobby issue it's a unitsync compilation/linker issue.

The latter issue Ill fix shortly.
longhair
Posts: 19
Joined: 26 Apr 2006, 00:22

Post by longhair »

Ok the first issue is not an AFLobby issue it's a unitsync compilation/linker issue.
Hmm, would it help you to know that I can log into the server with SpringLobby? I haven't tried to join a public game with springlobby yet, because I don't want to ruin a game for someone. Maybe I'll get the same crash then.
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Post by bashar »

I have exactly the same problem. Ubuntu 7.10 amd64 too. And it's ok too for me with Spring lobby.
Was thinking yesterday about an issue on the 64 bits.
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

If you compiled spring yourself it might be that unitsync lacks the correct java bindings if you don't have the correct dependencies.
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

If you are using ubuntu (both 32 and 64 bit) you should consider using Yokozar's apt repository for spring (which contains unitsync with the correct bindings):

http://spring.clan-sy.com/phpbb/viewtopic.php?t=12469
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The java and python unitsync APIs have an extra function that takes a minimap and writes it out as a jpeg.

If it were a javabinding problem you would get an nunsatisfied link error.

This is a fullblown crash. Because the crash propagates through unitsync when ti reaches java java cant continue and spits out that data.

libjpeg.so is your issue not aflobby. Fix your unitsync and make sure that the libjpeg dependency is fullfilled and its properly linked in.

Badly compiled unitsync.so libraries are not an aflobby development issue.
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Post by bashar »

Relative wrote:If you are using ubuntu (both 32 and 64 bit) you should consider using Yokozar's apt repository for spring (which contains unitsync with the correct bindings):

http://spring.clan-sy.com/phpbb/viewtopic.php?t=12469
I did
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Post by bashar »

AF wrote:The java and python unitsync APIs have an extra function that takes a minimap and writes it out as a jpeg.

If it were a javabinding problem you would get an nunsatisfied link error.

This is a fullblown crash. Because the crash propagates through unitsync when ti reaches java java cant continue and spits out that data.

libjpeg.so is your issue not aflobby. Fix your unitsync and make sure that the libjpeg dependency is fullfilled and its properly linked in.

Badly compiled unitsync.so libraries are not an aflobby development issue.
Well I may agree, but could you tell me more how to fix it plz ? :)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its beyond what I know, does anybody with greater Linux experience know? Perhaps I should look into changing the image creation code into Java and moving the jpeg writing functionality out of unit sync and into aflobby.
longhair
Posts: 19
Joined: 26 Apr 2006, 00:22

Post by longhair »

If you are using ubuntu (both 32 and 64 bit) you should consider using Yokozar's apt repository for spring (which contains unitsync with the correct bindings):
That's exactly what I did. And I can verify that I can join and host games across 32/64bit Linux/Windows platforms using SpringLobby. So is it a compilation of the .deb issue, or is it an AFLobby issue, or something else that I'm missing?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Code: Select all

# 
# An unexpected error has been detected by Java Runtime Environment: 
# 
#  SIGSEGV (0xb) at pc=0x00002aaaefc8347d, pid=19936, tid=1099176272 
# 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode) 
# Problematic frame: 
# C  [libjpeg.so.62+0xa47d] 
# 
# An error report file with more information is saved as hs_err_pid19936.log 
# 
# If you would like to submit a bug report, please visit: 
#   http://java.sun.com/webapps/bugreport/crash.jsp 
# 
Aborted (core dumped)
That is the issue and it is not ana flobby issue.

AFLobby does not provide libjpeg, nor does it use it. Unitsync uses libjpeg.so, and this means that whoever compiled your unitsync.so (presumably yokozar) has failed to factor in this library.

As such you should be asking yokozar for help. This is beyond the scope of aflobby.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Note that it's a segmentation fault in libjpeg.so, not a missing symbol, so the library is linked in but probably some incorrect arguments get passed to a function in it (indirectly through unitsync and DevIL).

Or your RAM is broken, that may cause random segmentation faults too.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

In that case check the target location is writable and exists (the minimaps folder in your aflobby install).

The parameters can be disregarded as the cause as I myself had this issue despite using the same maps as my windows install, and the same binary copy of aflobby. The issue is linux unitsync specific.
longhair
Posts: 19
Joined: 26 Apr 2006, 00:22

Post by longhair »

Ok, I checked my installation. I had used the .deb package to install AFLobby. The odd thing is that the directory /usr/share/games/aflobby/lobby/aflobby/minimaps/ is owned by shane (that's me), member of group shane, and the permissions are 744. What happens if you have more than one user on the machine? Also, what user is AFLobby running as? If shane, (on my machine) write permissions is definitely not the problem. If something else, it would have problems.

While I'm looking in that directory, I see another trouble. There are 7 JPEG images in there, but only one of them contains an actual image. The one is a 512x512 jpg image, about 33K in size. The rest are 4K and 0x0 pixels.

Quite possibly not an AFLobby issue, but something to be aware of for whoever packages it.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Unitsync generates and writes the minimaps, aflobby just provides a file path and a map name.
bashar
Posts: 152
Joined: 03 Dec 2006, 23:06

Post by bashar »

What is the difference between SpringLobby and AfLobby about using unitsync, cause the first one is working... ?

(And it's not a RAM physical default cause I have exactly the same issue)
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

You likely have already done this, but have you talked to the springlobby devs to see how they handle unitsync?
Post Reply

Return to “Linux”