Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a certain Java program that occasionally causes Ubuntu to crash. The sound gets stuck on a short loop, the screen output actually ceases (i.e. monitor can find no input and turns off) and no keyboard or mouse inputs work. I have to restart it from the physical power button. My question isn't how to fix it because I don't know what is actually happening. I would like to know what logs or logging programs I could look at to get any information on why this is happening. It would be useful information to include in a bug report to whomever it may concern.

share|improve this question

closed as off topic by Marco Ceppi Feb 1 '12 at 23:44

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What to do with questions that describe known bugs? and as such is now closed. –  Marco Ceppi Feb 1 '12 at 23:44

2 Answers 2

There are a number of Java apps that don't run perfect under the OpenJDK JVM included with Ubuntu. You may want to try installing the Sun Java JVM and see if this resolves your problem.

https://help.ubuntu.com/community/Java

There are a number of system logs you can look through also, but I don't recall their locations.

share|improve this answer
    
It turns out I already had Sun's version installed, but not set as default. I will see if this helps. –  Echogene Jun 4 '11 at 10:31
    
It didn't help. Oh well. –  Echogene Jun 4 '11 at 17:52

Look at /var/log/messages as starting point. If java is crashing it will generate an error some thing similar as below

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xf3c1501d, pid=1393, tid=3852467056
#
# JRE version: 6.0_23-b05
# Java VM: Java HotSpot(TM) Server VM (19.0-b09 mixed mode linux-x86 )

detailed crash logs will be named like this err_pidxxx.log, but I believe the logging will be controlled by your settings.

share|improve this answer
    
I can't find /var/log/messages and err_pidxx.log. I looked at syslog and the last thing that was logged there before I pressed the power button was NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context. I take it that this is from my Nvidia driver, in which case, assuming this lead to the crash, Java's using of the graphics card lead to the driver`s crashing. I will have to see if it crashes again and leaves the same message before making any other guesses. –  Echogene Jun 4 '11 at 10:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.