News:

click the random photo on the front page to go directly to the forum

Main Menu

Problems with JavaFIBS on linux [Debian sid x86]

Started by schme, August 24, 2008, 09:35:10 AM

Previous topic - Next topic

schme

Hello board.

I recently grabbed http://www.fibs.com/javafibs/download/JavaFIBS2001_v1011.zip, unzipped it and tried

java -jar JavaFIBS-1.0.11_JDK16.jar

Which pops up a flash screen, and then a completly empty window with a greyish background.

Also I get the following output:

Programmable buttons were not loaded.
java.io.IOException: user is null or empty
        at C.a(Unknown Source)
        at al.h(Unknown Source)
        at al.<init>(Unknown Source)
        at JavaFIBS2001.main(Unknown Source)
Friends were not loaded.
java.io.IOException: user is null or empty
        at C.a(Unknown Source)
        at s.d(Unknown Source)
        at al.j(Unknown Source)
        at al.<init>(Unknown Source)
        at JavaFIBS2001.main(Unknown Source)
Villains were not loaded.
java.io.IOException: user is null or empty
        at C.a(Unknown Source)
        at s.e(Unknown Source)
        at al.j(Unknown Source)
        at al.<init>(Unknown Source)
        at JavaFIBS2001.main(Unknown Source)

(<unknown>:6048): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)

(<unknown>:6048): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(<unknown>:6048): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:6048): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed


Then.. nothing. Any help with this would be highly appreciated.   :thumbsup2:


Java is Java(TM) SE Runtime Environment (build 1.6.0_07-b06)

inim

You are encountering 2 differnt things in your log output.

The 3 Exctions mean that the standard file layout structure can not be accessed properly. When you run first, you will see that messages too (which is a harmless bug with no ompact but noise in your shell). So if the messages do not go away after you have exited JF properly at least once (during which defaulted config data is written to disk) you have a problem with directories. Otherwise safely ignore the messages.

The GTK warnings are a problem in Sun Microsystem's implementation of AWT for X11 in all JDK's previously and including 1.6.0_07, which means at the time of this writing all. The respective issue is known to Sun and in their bugtracker. You may either use another vendor's JRE, or wait for a bugfix release by Sun.

In other words: While the output looks gruesome, it is technically harmless and out of reach to fix for us in the JRE/X11 case.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

inim

As for the "java.io.IOException: user is null or empty" message, that means you have no user configured as a default. Create one using the JF menus (or use an existing account) and log in at least once into fibs.com.

Then exit the software, which causes that user's preferences to be created. In JF settings always are "per user", thus the requirement to choose one first so saving prefs works. Sounds too complicated, so i file this as a bug to look at in some later release.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

schme

Thanks for your reply.

Regarding the problem that will be solved when I exit JF properly:   I can't even start JF properly. What I get after the errors/warnings is a flashscreen that pops away followed by a window that's completly uniform grey and I can't do anything to it except kill the process to get rid of it.

I'll try to see if I get the same behaviour with another JRE.

inim

Here is the JDK bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
Status has changed to "fix delivered", so likely will be fixed in the upcoming JDK 6 R10. Just watch that URL for status change info etc.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

inim

As for the completely grey box, I guess that is the "are you sure you want to exit? [yes] [no]" dialog. This is critical.

Please be sure your directory layout on the disk is like so:

.:
JavaFIBS_*.jar
./boards:
./boards/casino:
./boards/casino_small:
./boards/cthulhu:
./boards/cthulhu_small:
./boards/marble:
./boards/vector:
./boards/wood:
./docs:
./docs/matches:
./docs/matches/internal:
./images:
./matches/ascii:
./matches/fibs:
./matches/html:
./matches/internal:

./user:
inim
test

./user/inim:
buttons
friends
matches
preferences
ratings
villains

./user/test:
buttons
friends
matches
preferences
ratings
villains

You need to be able to write in the "user" directory. Linux is not tested as well as other platforms, admittedly. So if you resolve this issue, let me know please, I wil sleep better ;)
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

schme

The directory layout on the disk is exactly like that, yes.

Except the user directories of course.


I highly doubt that the grey box is a dialog box. It is a fullsize window, and
I very much believe it is the actual application, just with nothing showing
'cept greyness.  There are no menues or anything so I can not select
to quit the software in the first place.

I'd do a screenshot of it, but it's terribly boring :)


:edit:   I just tried destroying the window with all the greyness and then
indeed a lil "Are you sure you want to quit" dialog pops up on top of
it.  My greyness is just a big window with no board, no menues, no
anything.

fixedgear

i'm also having a problem on puppylinux 4.1 (javafibs worked fine on 3.01):
Preferences could not be loaded. Defaulting.
Programmable buttons were not loaded.
Friends were not loaded.
Villains were not loaded.
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xacf32451, pid=7280, tid=3085515664
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C  [libglib-2.0.so.0+0xf451]  g_atomic_int_exchange_and_add+0x9
#
# An error report file with more information is saved as hs_err_pid7280.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted


i've tried installing a couple of gtk packages, but it didn't seem to work.

thanks; let me know what other info i can post!

-steve

inim

Quote from: fixedgear on November 15, 2008, 03:53:11 AM
i'm also having a problem on puppylinux 4.1 (javafibs worked fine on 3.01):
Preferences could not be loaded. Defaulting.
Programmable buttons were not loaded.
Friends were not loaded.
Villains were not loaded.


Somehow no external file is found. I got more reports like yours. A possible workaround may be to explicitly set directory positions with the properties in JF 1.0.10 and up. See JavaFIBS2001/docs/Instructions.html chapter 11.

Without the external files, no buttons show, no villains or friends are known, no sounds play etc. They are really really needed to be found.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

inim

Quote from: inim on September 08, 2008, 08:55:42 AM
Here is the JDK bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
Status has changed to "fix delivered", so likely will be fixed in the upcoming JDK 6 R10. Just watch that URL for status change info etc.

Sun did not fix this for the JDK 1.6.0_10 release :(
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

fixedgear

Quote from: inim on November 15, 2008, 05:19:10 PM
Sun did not fix this for the JDK 1.6.0_10 release :(

well, somehow it was working ok on my previous setup; i don't know why.  as far as i know, i've never moved anything around after extracting the files...

i looked at the doc you suggested, and tried java -jar -Dcom.fibs.javafibs.home="/root/my-applications/JavaFIBS2001/" JavaFIBS2001/JavaFIBS-1.0.10_JDK16.jar

and also tried emptying the contents of all subfolders into the same directory as the program, but still no luck.  guess i'll have to use the java applet from within firefox for now.

inim

#11
Tested JavaFIBS on Ubuntu 8.04 LTS today, a recent Debian based Linux. Just cd'ed to to JF directory and started the JAR file from sheell.

I had 3 types of error messages on startup

1) The missing user/* files on first startup
2) The GTK warnings
3) An Swing event processing NullPointerException in some event handler

My guess is that 3) is caused by 1).

Nevertheless, I get a perfectly looking screen with all buttons, board etc. GTK Look&Feel is detected and used. On 2nd start the NPE from 3) doesn't show again. The application is perfectly useable, i.e. I can log in and play.

I'm afraid my diagnosis is that your Linux GLib/GTK setup is broken, which also explains the low level panic the JVM reported ( C  [libglib-2.0.so.0+0xf451]  g_atomic_int_exchange_and_add+0x9). Either your distribution or your local installation have an issue. My guess is that other complex Java GUI applications will have problems too.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.

socksey

That will be a charge of $150.00 USA dollars.  Kindly remit in a timely manner.   ::)   
Spoiler
Just kidding!
[close]

socksey



"I shall always begin, start, initiate, take the first step, and/or write the first word, as soon as I get around to it." - Procrastinatus

inim

Quote from: inim on September 08, 2008, 08:55:42 AM
Here is the JDK bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
Status has changed to "fix delivered", so likely will be fixed in the upcoming JDK 6 R10. Just watch that URL for status change info etc.

Good news for Linux users, Sun finally fixed bug 6624717 in Java 6 Update 12 released early February 2009. See http://java.sun.com/javase/6/webnotes/6u12.html for details (search for the bug number in the page).

I haven't tested it yet, but updating to that release should make the GTK warnings under Linux go away. Recommended update.
This space is available for rent by advertisers. Call 0900-INIMITE today, and see your sales skyrocketing in no time! New customers receive free Vl@9rå and a penis enlargement set as a bonus! We support banners, flash banners, and scrollers. Discrete handling by our HQ on the Dutch Antilles.