SourceForge has been redesigned. Learn more.
Close

#455 Internal error in debugger

closed-out-of-date
Debugger (177)
5
2007-11-04
2007-10-15
prateek
No

Versions info:
OS: Windows XP SP2
Java: jre1.5.0_12 & jre1.6.0_03
Eclipse: 3.2, 3.3 & 3.3.1
Perl: ActiveState Perl v5.8.8 build 822 [280952] MSWin32-x86-multi-thread Binary
EPIC Version: 0.5.40
Mail-IMAPClient: 2.2.9

When i try to debug a perl file which uses Mail::IMAPClient <<Before.jpg>>, i get the following error message while creating IMAP client object

"An internal error occurred during: "child count update"." Reason: 1416 <<During.jpg>>

The debugging can proceed futher once i click ok but now the variables window (top right) fails to display any variable or values. <<After.jpg>>

The code works absolutely fine during normal run both from within eclipse and from command prompt.

Log file is attached. I have tried many permutations of java(1.5 & 1.6), perl (5.6 & 5.8) and eclipse (3.2 & 3.3) versions and all give similar problem problem.

Thanks and regards
Prateek

PS: I tried many times but could not attach the log file in the bug report form (Bug in bug reports form?!!). If you provide me an email address, I'll be happy to mail the zip file. Its around 650KB.

Code that invokes error in debug mode:

my $imap = Mail::IMAPClient->new(
Server => $host,
User => $id,
Password => $password
)
or die "Cannot connect to $host as $id: $@";

Partial log is appended below:

!SESSION 2007-10-15 14:34:23.564 -----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.epic.debug 4 0 2007-10-15 14:35:30.604
!MESSAGE An error occurred while parsing debugger variables; contents of the Variables view may be inaccurate. Failure caused by string: {NS00000005$DATES0000000215NS00000006$DEBUGS00000002''NS00000005$HELPS00000002''NS00000008$endDATES0000000215NS00000007$folderS0000001e'Public Folders/Test Folder'NS00000005$hostS00000023'SERVER.EXAMPLE.COM'NS00000003$idS0000000c'USERNAME'NS00000005$imapS00000020Mail::IMAPClient=HASH(0x23a3284)S00000003...INS00000007'Clear'S000000015NS00000007'Count'S000000011NS0000000a'Debug_fh'S0000000eGLOB(0x227be4)S00000003-> S0000000d*main::STDERRS00000028FileHandle({*main::STDERR}) => fileno(2)NS00000009'Fast_io'S000000011NS00000009'History'S0000000fHASH(0x2392e98)S00000003...INS000000010S00000010ARRAY(0x2392cdc)S00000003...INS00000003[0]S00000010ARRAY(0x2206b90)S00000003...INS00000003[0]S000000010NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000076'* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVER.EXAMPLE.COM) ready.
'OONS000000011S00000010ARRAY(0x236a0a0)S00000003...INS00000003[0]S00000010ARRAY(0x236a04c)S00000003...INS00000003[0]S000000010NS00000003[1]S00000007'INPUT'NS00000003[2]S00000028'1 LOGIN XXXXXXXX XXXXXXXX
PASSWORD

'ONS00000003[1]S00000010ARRAY(0x23929e8)S00000003...INS00000003[0]S000000011NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000028'+ Ready for additional command text.
'ONS00000003[2]S00000010ARRAY(0x2392a24)S00000003...INS00000003[0]S000000012NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000019'1 OK LOGIN completed.}
!STACK 0
org.epic.debug.varparser.TokenVarParser$ParseException: could not parse string @1394
at org.epic.debug.varparser.TokenVarParser.readString(TokenVarParser.java:129)
at org.epic.debug.varparser.TokenVarParser.readStrings(TokenVarParser.java:135)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:157)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.parseVars(TokenVarParser.java:38)
at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:405)
at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:226)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1419
at java.lang.String.<init>(Unknown Source)
at org.epic.debug.varparser.TokenVarParser.readString(TokenVarParser.java:123)
... 19 more

!ENTRY org.epic.debug 4 0 2007-10-15 14:35:30.635
!MESSAGE An error occurred while parsing debugger variables; contents of the Variables view may be inaccurate. Failure caused by string: {NS00000005$DATES0000000215NS00000006$DEBUGS00000002''NS00000005$HELPS00000002''NS00000008$endDATES0000000215NS00000007$folderS0000001e'Public Folders/Test Folder'NS00000005$hostS00000023'SERVER.EXAMPLE.COM'NS00000003$idS0000000c'USERNAME'NS00000005$imapS00000020Mail::IMAPClient=HASH(0x23a3284)S00000003...INS00000007'Clear'S000000015NS00000007'Count'S000000011NS0000000a'Debug_fh'S0000000eGLOB(0x227be4)S00000003-> S0000000d*main::STDERRS00000028FileHandle({*main::STDERR}) => fileno(2)NS00000009'Fast_io'S000000011NS00000009'History'S0000000fHASH(0x2392e98)S00000003...INS000000010S00000010ARRAY(0x2392cdc)S00000003...INS00000003[0]S00000010ARRAY(0x2206b90)S00000003...INS00000003[0]S000000010NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000076'* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVER.EXAMPLE.COM) ready.
'OONS000000011S00000010ARRAY(0x236a0a0)S00000003...INS00000003[0]S00000010ARRAY(0x236a04c)S00000003...INS00000003[0]S000000010NS00000003[1]S00000007'INPUT'NS00000003[2]S00000028'1 LOGIN XXXXXXXX XXXXXXXX
PASSWORD

'ONS00000003[1]S00000010ARRAY(0x23929e8)S00000003...INS00000003[0]S000000011NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000028'+ Ready for additional command text.
'ONS00000003[2]S00000010ARRAY(0x2392a24)S00000003...INS00000003[0]S000000012NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000019'1 OK LOGIN completed.}
!STACK 0
org.epic.debug.varparser.TokenVarParser$ParseException: expected token S missing @1405
at org.epic.debug.varparser.TokenVarParser.readString(TokenVarParser.java:115)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:156)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.parseVars(TokenVarParser.java:38)
at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:405)
at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:226)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.epic.debug 4 0 2007-10-15 14:35:30.635
!MESSAGE An error occurred while parsing debugger variables; contents of the Variables view may be inaccurate. Failure caused by string: {NS00000005$DATES0000000215NS00000006$DEBUGS00000002''NS00000005$HELPS00000002''NS00000008$endDATES0000000215NS00000007$folderS0000001e'Public Folders/Test Folder'NS00000005$hostS00000023'SERVER.EXAMPLE.COM'NS00000003$idS0000000c'USERNAME'NS00000005$imapS00000020Mail::IMAPClient=HASH(0x23a3284)S00000003...INS00000007'Clear'S000000015NS00000007'Count'S000000011NS0000000a'Debug_fh'S0000000eGLOB(0x227be4)S00000003-> S0000000d*main::STDERRS00000028FileHandle({*main::STDERR}) => fileno(2)NS00000009'Fast_io'S000000011NS00000009'History'S0000000fHASH(0x2392e98)S00000003...INS000000010S00000010ARRAY(0x2392cdc)S00000003...INS00000003[0]S00000010ARRAY(0x2206b90)S00000003...INS00000003[0]S000000010NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000076'* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVER.EXAMPLE.COM) ready.
'OONS000000011S00000010ARRAY(0x236a0a0)S00000003...INS00000003[0]S00000010ARRAY(0x236a04c)S00000003...INS00000003[0]S000000010NS00000003[1]S00000007'INPUT'NS00000003[2]S00000028'1 LOGIN XXXXXXXX XXXXXXXX
PASSWORD

'ONS00000003[1]S00000010ARRAY(0x23929e8)S00000003...INS00000003[0]S000000011NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000028'+ Ready for additional command text.
'ONS00000003[2]S00000010ARRAY(0x2392a24)S00000003...INS00000003[0]S000000012NS00000003[1]S00000008'OUTPUT'NS00000003[2]S00000019'1 OK LOGIN completed.}
!STACK 0
org.epic.debug.varparser.TokenVarParser$ParseException: unexpected end of stream
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:146)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.parseVars(TokenVarParser.java:38)
at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:405)
at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:226)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2007-10-15 14:35:30.666
!MESSAGE An internal error occurred during: "child count update".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 1416
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:176)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.readVar(TokenVarParser.java:172)
at org.epic.debug.varparser.TokenVarParser.readVars(TokenVarParser.java:190)
at org.epic.debug.varparser.TokenVarParser.parseVars(TokenVarParser.java:38)
at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:405)
at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:226)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Discussion

  • Jan Ploski

    Jan Ploski - 2007-10-18

    Logged In: YES
    user_id=86907
    Originator: NO

    Please switch to EPIC testing 0.6.17 and see if you still have problems. The 'testing' version of EPIC has a significantly improved debugger.

     
  • prateek

    prateek - 2007-10-23

    Logged In: YES
    user_id=1913258
    Originator: YES

    Thanks for the help! Its works correctly now. Thanks a ton for the awesome plugin!

    Prateek

     
  • Jan Ploski

    Jan Ploski - 2007-11-04
    • status: open --> closed-out-of-date
     

Log in to post a comment.