Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10489 - Java plugin crashes
Summary: Java plugin crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-09 13:16 UTC by Francisco León
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of crash (java.log,9.44 KB, text/plain)
2002-11-10 19:04 UTC, Francisco León
Details
Hs error file (hs_err_pid5468.log,9.27 KB, text/plain)
2002-11-10 19:05 UTC, Francisco León
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco León 2002-11-09 13:16:49 UTC
after lots of time of building, i get:

javac: invalid flag: -source
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -O                        Optimize; may hinder debugging or enlarge class file
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -target <release>         Generate class files for specific VM version

make[4]: *** [.compile.classlist] Error 2
make[4]: Leaving directory
`/var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk/j2se/make/java/java'
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2002-11-09 13:58:23 UTC
This is because the ebuild requires jdk-1.4, while you only have blackdown-jdk-1.3.
I have fixed the ebuild so it now enforces this, sorry for the mistake,
( note the blackdown-jdk-1.4 ebuild is a ~arch ebuild so you need to enable the
testing tree )

Cretin
Comment 2 William Roe 2002-11-09 15:15:03 UTC
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-java/java-sdk-docs-1.4.1 to /
>>> Unpacking source...

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_unpack, Line 2, Exitcode 0
!!! Please download j2sdk-1_4_1-doc.zip from
http://java.sun.com/j2se/1.4.1/download.html and move it to /usr/portage/distfiles
Comment 3 Francisco León 2002-11-09 15:20:52 UTC
cretin, please update the ebuild to reflect the proper url to download the 
files from (the sun one, and it asks you to register etc)

btw i am still building, now with 1.4 beta
i have been told that building without blackdown worked at it is
Comment 4 William Roe 2002-11-09 15:31:00 UTC
The above comment I made only caused problems with doc in the USE vars - I
removed it since it wanted to download about 30-40Mb of crap ;)
Sorry, who are you calling a cretin? 
Comment 5 Francisco León 2002-11-09 15:44:12 UTC
LOL
look for the "assigned to" at the top of this bug page
Comment 6 William Roe 2002-11-09 15:51:56 UTC
ROTFL!!
Oh dear.
I shall recover gracefully.
God - what a mess just for OpenOffice
Comment 7 Francisco León 2002-11-09 16:33:12 UTC
it's done building but loading a java webpage it crashes :(
Comment 8 Stefan Jones (RETIRED) gentoo-dev 2002-11-10 05:21:48 UTC
Might as well reopen this to keep all the potential bugs in,

Will try and replicate the build error with blackdown, mine seems to work....

The only Cretin

Comment 9 Stefan Jones (RETIRED) gentoo-dev 2002-11-10 05:53:32 UTC
Francisco Le
Comment 10 Stefan Jones (RETIRED) gentoo-dev 2002-11-10 05:53:32 UTC
Francisco León,

Could you post, if you have them, the error files made by mozilla and java,

The java ones are found in your home dir and are named hs_**.log or similar

Comment 11 Francisco León 2002-11-10 19:04:40 UTC
Created attachment 5560 [details]
Log of crash
Comment 12 Francisco León 2002-11-10 19:05:31 UTC
Created attachment 5561 [details]
Hs error file
Comment 13 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 02:08:58 UTC
This is because of motif.
What versions of motif have you got installed?
The only supported version is lesstif-0.93.36.
Although java will happily staticly link to openmotif it will crash onstartup if
done so.

That is why on the latest ebuilds openmotif is blocked, because it can only link
sucessfully to lesstif. After the compile you can reinstall openmotif as it is
statically linked so will not effect java.

 Cretin
Comment 14 Francisco León 2002-11-11 10:35:50 UTC
But how did i compile with openmotif if it's blocked? I did not, i uninstalled 
it before compiling, and i dont even have it installed now, i only have tif and 
lesstif

Comment 15 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 10:51:33 UTC
Ok, but do you have two tif libraries installed, lesstif and tif? ( I was not
aware of the tif library ) This could be the problem. The ebuild requires
lesstif only to be installed.

If not, then I am at a loss regarding the error. This is definatly a motif
error, as the logs point to that.

Comment 16 Francisco León 2002-11-11 11:21:30 UTC
Do you have tif installed? I can unistall it and add it later, but i promise i 
dont have openmotif installed...  I don't  want to lose another 3 hours 
compiling this thing if i am not sure it's gonna work...
Comment 17 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 12:25:28 UTC
Well tif is definatly the problem here then,
Is it a gentoo package, so that I can block it for others?
I didn't have tif installed or any other clones except for lesstif when I
compiled it.

Also a good idea for large buggy ebuilds, like this one, is to emerge ccache to
speed up recompiles.

Anyway, good luck, and it should work now,

Stefan

Comment 18 Francisco León 2002-11-11 12:36:19 UTC
i dont remember what installed tif, sorry. I am gonna recompile and post back 
in about 3 hours
Comment 19 Francisco León 2002-11-11 12:41:07 UTC
btw it's tiff, and it's an image format. Why would this crash java? I think 
mplayer installed it... So no, that's not the reason why it crashes.

Maybe i should compile it with sun's jre instead of buggy blackdown, what do 
you think?
Comment 20 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 12:58:27 UTC
tiff will not effect it.

Could you do a search for libXm.a on your system, this is the motif library java
tries to link to.

You could try and compile with sun's jdk 1.4, just suitably set your java-config.

Also you should try to clean out the /usr/lib/mozilla/plugins dir of old
javaplugings, maybe one of those is loading instead and is using the new java
librarys causing a crash ....

( I'm rapidly running out of ideas, you may have to send me the binaries )
Stefan
Comment 21 Francisco León 2002-11-11 13:19:58 UTC
there are lots of libXm files, and they all belong to lesstif so i guess it's 
okay. I am downloading sun's jdk to use it and test.
Comment 22 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 13:22:17 UTC
I've just updated the ebuild to check for valid versions of java, so do a emerge
rsync before you start.

Also check which version of java you are using before you start and set it
accordingly using the tool java-config (see java-config --help )

Many thanks for your patience
Comment 23 joseph 2002-11-11 16:05:41 UTC
Hi,

This is my java-config --list-available-vms
[blackdown-jdk-1.4.1_beta] Blackdown JDK 1.4.1_beta
(/etc/env.d/java/20blackdown-jdk-1.4.1_beta)

and when I run emerge sun-j2sdk, I got

These are the packages that I would merge, in order.

Calculating dependencies   

emerge: there are no masked or unmasked ebuilds to satisfy "virtual/jdk-1.4"
(from ebuild / dev-java/sun-j2sdk-1.4.0-r1 merge).

Have I missed something?
Comment 24 Francisco León 2002-11-11 16:10:47 UTC
it's a new "bug" cretin just added ;)
seriously, i had that too after he just updated the ebuild today.
just emerge sun-jdk by yourself
Comment 25 Stefan Jones (RETIRED) gentoo-dev 2002-11-11 16:22:06 UTC
It is because the default jdk is blackdown, and it's 1.4 version is masked, so
emerge tries to install that one and fails. So either put ~x86 in your
ACCEPT_KEYWORDS or emerge you prefered jdk manually.
Comment 26 Francisco León 2002-11-11 17:05:13 UTC
STILL crashes....
>:-<

Comment 27 Stefan Jones (RETIRED) gentoo-dev 2002-11-12 03:04:46 UTC
Can you remerge lesstif and then:

Run the command:
updatedb && locate libXm.a
and find out what packages provide these files.

You should only find /usr/lib/libXm.a which is provided by x11-libs/lesstif-0.93.36

could you also do a "ls -l /usr/lib/mozilla/plugins".

Please could you then report the results?
many thanks, we WILL get to the bottom of this!
Comment 28 Stefan Jones (RETIRED) gentoo-dev 2002-11-12 07:02:55 UTC
This might be due to a bad copy of lesstif compiled with the wring configure
options.

I have updated the ebuilds, and am remerging it now, wait out 
....
Comment 29 Francisco León 2002-11-12 11:33:05 UTC
i uninstalled lesstif and reinstalled it before compiling java yesterday, and 
libXm.a was owned by lesstif so that's all right.

Thanks for having so much patience
Comment 30 Stefan Jones (RETIRED) gentoo-dev 2002-11-12 12:21:56 UTC
Well I have found the problem and have released a new version, -r2 with the fix.

It seems the problem was any version of motif apart from the sun compiled one
causes problems. My plugin ran well for the sites I tested, but ppl pointed out
crashes on other sites which still affected me. (eg. news.bbc.co.uk works)

The -r2 ebuild should be in portage soon, it compiles java using sun's openmotif.
This version now crashes less, and works on sites which didn't work before.
Lesstif and openmotif are now both blocked, for the same reasons as before.

Anyone want to try? ( or have ppl had enough! )
Comment 31 Francisco León 2002-11-12 12:34:15 UTC
Hey, i just got 512mb more ram so i need something to test it with :)
Will try to compile java for the THIRD time as soon as i see -r2.

However, you said that now you are using sun's openmotif to compile java, and 
you also say that openmotif is still blocked? (i think you meant plain motif)

Anyway i will try it... Please test chat.cantv.net and chat.webmaster.com for 
me. In cantv just type a nick choose any channel and hit the button
Comment 32 Stefan Jones (RETIRED) gentoo-dev 2002-11-12 13:30:36 UTC
I have finished compiling the -r2 ebuild and tested it,
It now works for those two websites with no visable errors which I can see.

If it works for you also aswell I will close this bug, unmask the ebuild.

In the future I will try to use an open source motif, till then ...
Comment 33 Francisco León 2002-11-12 15:21:06 UTC
It is my honor to close this bug :)
FIXED
(ram really helps, less than 2 hours this time)
Thanks to cretin for making this possible