FS#3472 - java apps hang with no errors

Attached to Project: Arch Linux
Opened by Alex Matviychuk (alexmat) - Monday, 14 November 2005, 01:14 GMT
Last edited by arjan timmerman (blaasvis) - Monday, 14 November 2005, 07:46 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I installed the latest j2re and applications like jedit and azureus hang when they try to load the GUI. Running azureus from command line for example, creates a .Azureus folder in my home directory, but the GUI never loads and no errors are output to the console. Similar behavior is exhibited by jedit: the program starts, a .jedit folder is created and the splash screen even comes up, but then hangs and the gui is never loaded. Again there is no output to the console.

I also tried updating j2re to the latest release using a package build and get the same behavior.
This task depends upon

Closed by  Jason Chu (jason)
Monday, 21 November 2005, 15:24 GMT
Reason for closing:  Not a bug
Comment by Jason Chu (jason) - Tuesday, 15 November 2005, 20:18 GMT
What type of sound card do you have? Are you listening to music when you do this?

I've found that some java apps try to grab the sound card and will wait indefinitely if blocked.
Comment by Alex Matviychuk (alexmat) - Tuesday, 15 November 2005, 21:40 GMT
I do have alsa installed and my sound is working correctly, but I am not playing music or using the sounds card in any way. In all my tests I did a fresh boot, started x and then tried to run the java apps. It's very wierd. Are there any little java programs I can run to get some kind of better diagnosis? I am not seeing anything related to java in the logs and like I said before there is no output when running java apps from a terminal, they just hang.

I have a fairly new install (using the 7.1 iso) so there's not much in terms of old cruft...
Comment by Jason Chu (jason) - Tuesday, 15 November 2005, 21:52 GMT
I don't know how arch is interacting with this stuff, especially if you say the binary j2re install does the same thing.

Maybe try using strace (strace -o <file> <command>) to get a little more of what's happening. Apart from that, I'm not sure how to debug this.
Comment by Alex Matviychuk (alexmat) - Wednesday, 16 November 2005, 08:48 GMT
In addition to java hanging, java_vm hangs when I access java applets in firefox.

I'm attaching an strace I ran on azureus (the pacman version).

I also compiled and ran a simple swing program and it ran like normal without hanging (source attached).

I'd love to get this resolved, I depend on jedit for a lot of development work :P Anything else I can test or provide you with, just let me know. I will contine to try other things I can come up with to figure this out.
Comment by Jason Chu (jason) - Wednesday, 16 November 2005, 16:00 GMT
Oooo, it looks like the interface code is forking. Rather than strace -o run strace -fo.
Comment by Alex Matviychuk (alexmat) - Wednesday, 16 November 2005, 20:12 GMT
Here is the new strace, it seems much bigger. Also when I did ctrl-c to stop the trace I got this:

PANIC: attached pid 2776 exited
PANIC: handle_group_exit: 2776 leader 2771

I don't know if that's just because of the way I ran strace or something else, but when I ran the trace with just -o I don't get that. In any case it looks like the strace output file for the -fo option was written correctly. I'm attaching.
(application/octet-stream)    javatest2 (1.11 MiB)
Comment by Alex Matviychuk (alexmat) - Thursday, 17 November 2005, 21:43 GMT
I'm out of ideas. I've tried everything I'm capable of. I will try to do a complete reinstall of the os this weekend and bring up just the bare minimum to get j2re running. Maybe I just messed something up in a crazy way... :P
Comment by Alex Matviychuk (alexmat) - Saturday, 19 November 2005, 23:29 GMT
It looks like this was something with my laptop and not an Arch Linux problem. My hard drive died yesterday. Up to the point when it died more an more applications began acting wierd. This bug can be closed because I didn't see anyone else having the same problems as I did. Thanks for your help.

Loading...