[Linux Lobby] AFLobby Beta 3.9.7 - Page 6

[Linux Lobby] AFLobby Beta 3.9.7

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

Moderator: Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The ubuntu CD doesnt have geforce 8800GTS drivers on it, and thus never finishes the boot process.

ubuntu doesnt work with microsoft virtual PC either.

And running it in vmware was a horrifying nightmare resulting in the ubuntu splash screen and a virtual hardrive doing unknown things for 6 hours.

Indeed that hardrive thing happens on non-virtual machines, my old old laptop has ubuntu on it and running open office or trying to open any package manager starts it whriring the hardrive and it carries on like that using 99% cpu untill the battery runs out.

Also VMWare is extremely slow in my experience.

Also, I already have a Java virtual machine running in windows, a second one in linux running over the windows OS is probably going to mess everything up
your ubuntulooks isn't really an error, it's a "warning"; it's something that might cause difunctions but won't stop the usabilty of the lobby, in your case it means that the lobby isn't using the grafic theme of ubuntu, so it will have a different look, rather than your grafic session
I've been saying this repeatedly for the last few pages in this thread, once again I stress THIS IS NOT A BUG, IT IS NOT AN ERROR, IF JAVA CANT FIND A LOOK AND FEEL THEME IT USES THE DEFAULT, NO GRAPHICAL ABNORMALITIES, NO LOGIC ERRORS, NO PROGRAM CRASHES NOTHIGN IS CAUSED BY THIS.

also

if you have a graphical error, take a screenshot, because there are so many different things that could be happening that all sound exactly the same when you report them.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Shhhh... the library is a place of quiet tranquaility...


WAKE UP! Now that I got your attention, listen closely. Are you listening?
Good... because what I am about to say I end up explaining atleast once a
week in either #java or #c. You MUST ensure that the library is accessable
to the java class. On a unix environment.. this means you must place it in
a library path!! In my case... I copied it to /usr/local/lib, and then ran
ldconfig. You could also manually edit ld.so.conf and add a new lib path...
but you are then spreading out your libraries. Choice is up to you on that
one. In whichever way you go.. make SURE you have the library accessable.

Here is what I did:

cp libvaliduser.so /usr/local/lib && ldconfig
http://www.gmonline.demon.co.uk/cscene/CS4/CS4-04.html
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

@Kloot:

I tried renaming both UnitSync.so and unitsync.dll to libunitsync.so (both with and without your command line option added). In all 4 cases, I got the same error message.

@AF:

Here is a screen shot. It looks the same as other times this problem has been posted:

Image

Note that my desktop background is white, and that aflobby is showing up almost completely white, so that is why it is practically invisible.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

@AF:

I tried moving each of the UnitSync.so and unitsync.dll to /usr/local/lib and running both with and without Kloot's command line addition. I also tried renaming each of them unitsync.so and libunitsync.so and tried running both with and without Kloot's command line addition.

Always got the same error message. You keep coming up with ideas, and I'll keep trying them! Thanks for trying to including linux on this!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

where exactly is spring on linux installs?
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

It varies from distro to distro. In Ubuntu, the executable is in /usr/games/spring, and the maps and stuff are in /home/username/.spring/ if you install from the .deb that was made for ubuntu. If you installed from source, it could be anywhere. I installed from the .deb.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

spring is where you put it. Ask the user for its location if it isn't on PATH.

Also, maybe try strace to check what exactly java is looking for.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Download alpha 15 here

I've changed it to specifically load *current working directory*/unitsync.so under linux rather than letting the java VM change the string unitsync to libunitsync.so in the /usr/lib/ folder.

I also attempted a quickfix on graphical issues but I dont know if they will work. If you do get graphical errors, please attempt to resize the window and tell me if it fixes at all or if its ok while the window size is being changed etc, and take screenshots!

also minimaps are now saved to $HOME/.aflobby and the environment variable is parsed correctly (it should be, please tell me if it fails).

Also ignore the alpha 14 on the splash screen, forgot to change to 15, just remembered as I was typing this...

Thanks again for all the bug reports.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

K. Here's the latest report. No change. I downloaded alpha 15 to my desktop, and extracted it there. I left all the files as is. I loaded up the terminal, and executed the following command after changing directory to the desktop:

Code: Select all

/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/bin/java -jar AFLobby.jar
I got the following screen:

Image

I attempted to resize it (guessing where the corners were to do so). The greyed out text about single player and stuff moved around and redrew improperly, smearing itself all over my screen. I clicked on the invisible login button, and typed my login info. I got the same message as always about java aware jni. I clicked ok, and got to this screen:

Image[/img]
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

hmm, you shouldnt have to type the direct path to the java executable (or, you shouldnt be executign AFLobby from the java folder). Its possible that AFLobby is tellign java to load "/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/bin/aflobby.so" because of the command you issued giving aflobby the wrong impression of where the active working directory actually is.

When AFLobby looks for unitsync and finds that the OS is not windows it will execute the following code:

Code: Select all

if(Misc.isWindows()){ // 2000 <-> Vista
     System.loadLibrary("unitsync");
 }else if (Misc.isMacOSX()){ // Apple Mac
     String currentpath = System.getProperty("user.dir");
     System.out.println("working directory : " + currentpath);
     System.load(currentpath + "unitsync.dylib");
 }else { // Anything else I assume is running a linux based filesystem.
     String currentpath = System.getProperty("user.dir");
     System.out.println("working directory : " + currentpath);
     System.load(currentpath + "unitsync.so");
 }
Thus if you ran AFLobby from a command prompt then somewhere in the output will be the working directory string followed by a path, can you check that value for me?
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

I was running it from a command prompt. In any case, the output says that my current working directory is "/home/username/Desktop". Looking at your code, I think I see the issue. Shouldn't it be:

Code: Select all

if(Misc.isWindows()){ // 2000 <-> Vista
     System.loadLibrary("unitsync");
 }else if (Misc.isMacOSX()){ // Apple Mac
     String currentpath = System.getProperty("user.dir");
     System.out.println("working directory : " + currentpath);
     System.load(currentpath + "/unitsync.dylib");
 }else { // Anything else I assume is running a linux based filesystem.
     String currentpath = System.getProperty("user.dir");
     System.out.println("working directory : " + currentpath);
     System.load(currentpath + "/unitsync.so");
 }
What you have seems like it would evaluate to:

Code: Select all

 System.load("/home/username/Desktopunitsync.so");
It seems like you are missing a slash.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

currentpath + "/unitsync.so"
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

Exactly. How soon can we see an alpha 15a?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I'm not exactly sure how to go about fixing the problem at the moment.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

just a thought, is there any change if you run it as root?
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

just change the code you posted to the code I posted. That should fix it.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

*_* my mistake, I'll re-release when I get home, and to make sure I'll make the "unsatisfied link error" message box also display the path it tried to look at.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

here, I also fixed the updater notifier, although it means all previous versions of AFLobby crash trying to do this, not that they should be ran anyway

Download Alpha 16 here
User avatar
SupaSonic
Posts: 26
Joined: 24 Feb 2007, 14:43

Post by SupaSonic »

Hello,

I have the exact same trouble as 10053r. The screen is almost always white when I start AFLobby. Interestingly, sometimes it loads just fine. I was unable to figure out why this happens.

The main problem however is still the message "unsatisfied link error". In alpha 16 it still doesn't display the path though.
10053r
Posts: 297
Joined: 28 Feb 2005, 19:19

Post by 10053r »

I got the same thing happening as SupaSonic. And once, the graphics did load fine, although they usually don't. I have no idea what is going on there.

On the more important error, though, I still get the "Unsatisfied link error, make sure you have a JNI aware UnitSync library in the same folder as AFLobby"

You sure you didn't accidentally upload the same version as 15?
Post Reply

Return to “Linux”