To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 174
173  |  175
Subject: 
Re: What is exception "StackOverflowError" in method "<clinit>"
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Fri, 17 May 2002 18:30:14 GMT
Viewed: 
3676 times
  
"fredsiva" <frederic.siva@wanadoo.be> writes:

When running my program (made of several classes), I get the following:
(Output from the Emulator, but I get similar result on the RCX of course)

*** UNCAUGHT EXCEPTION/ERROR:
--  Exception class   : 7
--  Thread            : 1
--  Method signature  : 3
--  Root method sig.  : 0
--  Bytecode offset   : 7

Here is a part of my signature file:

Class 0: java/lang/Object
Class 1: java/lang/Thread
Class 2: java/lang/String
Class 3: java/lang/Throwable
Class 4: java/lang/Error
Class 5: java/lang/OutOfMemoryError
Class 6: java/lang/NoSuchMethodError
Class 7: java/lang/StackOverflowError
Class 8: java/lang/NullPointerException
Class 9: java/lang/ClassCastException
....
Signature 1: run()V
Signature 2: <init>()V
Signature 3: <clinit>()V
Signature 4: notify()V
Signature 5: notifyAll()V
Signature 6: wait()V

By putting some "traces", I see that the instruction that causes the crash
is a pretty simple:

TextLCD.print("MENU");

Any clue what it could be ?

StackOverflowError could either be a stack overflow
(maximum depth is 10) or a thread that dies from whatever exception
(that seems to be a bug, but I couldn't yet figure out what causes it).

I suppose TextLCD.print should work, though I never used it,
so probably it is really a stack overflow.
Is the call deeply nested?

Jürgen

--
Jürgen Stuber <stuber@loria.fr>
http://www.loria.fr/~stuber/



Message has 1 Reply:
  Re: What is exception "StackOverflowError" in method "<clinit>"
 
(...) I have tried TextLCD.print() and it really does work. Roger (22 years ago, 17-May-02, to lugnet.robotics.rcx.java)

Message is in Reply To:
  What is exception "StackOverflowError" in method "<clinit>"
 
When running my program (made of several classes), I get the following: (Output from the Emulator, but I get similar result on the RCX of course) *** UNCAUGHT EXCEPTION/ERROR: -- Exception class : 7 -- Thread : 1 -- Method signature : 3 -- Root (...) (22 years ago, 13-May-02, to lugnet.robotics.rcx.java)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR