PDA

View Full Version : -Unknown Exception Type-


briangochnauer
10-Apr-2006, 07:09 PM
I'm posting in Bugreports because I now believe it's something in EurekaLog.

Story:
I have been chasing a bug in Indy10 /D2005 with the Indy Dev team for some time now. At some point I upgraded from 5.0.6 to 5.1.3 not thinking anything of it I continued doing feedback on the Indy10 newsgroups about errors and updating my source as they fixed them. I started getting this "Unknown Exception Type" error which I posted on one of the other forums and was told that it was most likely a memory corruption problem. I reported back to the Indy10 newsgroups that they had a serious problem and things were going badly.

I finally gave up on getting that problem fixed and rolled my Indy10 source code back to a December version and expected to see the "unknown Exception Type" error to disappear from my EurekaLog captures. To my surprise it did not!

After some thought, I decided to go back to EL 5.0.6.
The problem has disappeared.

I cannot reproduce the problem reliably or I would demonstrate it for you.
All I can say is that the line directly previously then exception stack is many times the Exception "IdConnClosedGracefully" which is 'standard' ignoreable error. Followed by a Kernel32.dll error "Unknown Exception Type"

================================================== =====
procedure TIdIOHandler.RaiseConnClosedGracefully;
begin
raise EIdConnClosedGracefully.Create(RSConnectionClosedG racefully);
end;
================================================== =====
Hope example shows correctly.....

-------------------------------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
-------------------------------------------------------------------------------------------------------------------
| Exception Thread: ID=3064; Priority=0; Class=TIdThreadWithTask |
|-----------------------------------------------------------------------------------------------------------------|
|7C59BBF3|KERNEL32.DLL| | |RaiseException | |
|004AE090|WFDMSCli.exe|IdIOHandler.pas |TIdIOHandler |RaiseConnClosedGracefully |1340[0] |
|004B0FA8|WFDMSCli.exe|IdIOHandlerStack.pas |TIdIOHandlerStack |CheckForDisconnect |486[19] |

briangochnauer
11-Apr-2006, 01:41 PM
I have now recieved an error even with EL 5.0.6 :confused:
(see attached zip - two errror in file)


Exception:
----------------------------------------------
2.1 Date : Tue, 11 Apr 2006 07:07:32 -0500
2.2 Address: 7C81EB33
2.3 Module : kernel32.dll
2.4 Type : Unknown exception type.
2.5 Message: Unknown error message.

Computer:
-------------------------------------------------------
4.1 Name : WFF00G91B4Y7AWK
4.2 User : SYSTEM
4.3 Total Memory : 2048 Mb
4.4 Free Memory : 1694 Mb
4.5 Total Disk : 74.52 Gb
4.6 Free Disk : 44.98 Gb
4.7 System Up Time: 1 day, 1 minute, 46 seconds
4.8 Processor : Intel(R) Pentium(R) 4 CPU 3.20GHz
4.9 Display Mode : 1280 x 1024, 32 bit

Operating System:
------------------------------------
5.1 Type : Microsoft Windows XP
5.2 Build # : 2600
5.3 Update : Service Pack 2
5.4 Language: English

------------------------------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
------------------------------------------------------------------------------------------------------------------
| Running Thread: ID=4440; Priority=0; Class=TIdThreadWithTask |
|----------------------------------------------------------------------------------------------------------------|
|004AC4CC|WFDMSCli.exe|IdIOHandler.pas |TIdIOHandler |RaiseConnClosedGracefully |1436[0] |
|004AF3DC|WFDMSCli.exe|IdIOHandlerStack.pas |TIdIOHandlerStack |CheckForDisconnect |537[19] |
|004AF2D6|WFDMSCli.exe|IdIOHandlerStack.pas |TIdIOHandlerStack |ReadFromSource |498[49] |
|004ABA8C|WFDMSCli.exe|IdIOHandler.pas |TIdIOHandler |ReadLn |1160[41]|


There exception file 15,000+ lines long, this is one problem that could definately benefit from being able to look at the information in a 'thread tree' view to see if the exception is happening in a certain 'level' of threading.

admin
11-Apr-2006, 05:53 PM
Hi,

briangochnauer wrote:
> I have now recieved an error even with EL 5.0.6 :confused:
> (see attached zip - two errror in file)
>
>
> Exception:
> ----------------------------------------------
> 2.1 Date : Tue, 11 Apr 2006 07:07:32 -0500
> 2.2 Address: 7C81EB33
> 2.3 Module : kernel32.dll
> 2.4 Type : Unknown exception type.
> 2.5 Message: Unknown error message.
>
> [...]
>
> There exception file 15,000+ lines long, this is one problem that could
> definately benefit from being able to look at the information in a
> 'thread tree' view to see if the exception is happening in a certain
> 'level' of threading.
>
> +-------------------------------------------------------------------+
> |Filename: UnknownError.zip |
> |Download: http://news.eurekalog.com/attachment.php?attachmentid=18 |
> +-------------------------------------------------------------------+

I'm sorry but if it's so I absolutely need more information to can help you.
Are you sure to cannot reproduce this problem with a little source demo?

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

briangochnauer
11-Apr-2006, 10:29 PM
Can I get it to ignore the -unknown type- using the Exception tab exclusions?

2.4 Type : Unknown exception type.
2.5 Message: Unknown error message.

admin
12-Apr-2006, 03:24 PM
Hi,

briangochnauer wrote:
> Can I get it to ignore the -unknown type- using the Exception tab
> exclusions?
>
> 2.4 Type : Unknown exception type.
> 2.5 Message: Unknown error message.

No, it's impossible because this is only a messages showed when the
Exception object is unreadable (due unknown causes).

But I have released the new EurekaLog 5.1.4 RC 5 at:
http://www.eurekalog.com/login.php

Try to do this:

1)...Close all opened Delphi/CBuilder instances;
2)...Deinstall all installed EurekaLog versions;
3)...Remove all folders containing the ExceptionLog.* or
?ExceptionExpert.* files;
4)...download and install the last EurekaLog 5.1.4 RC 5 version;
5)...restart your PC.

I'm waiting to your feedback as soon as possible, ok? :)


--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

briangochnauer
13-Apr-2006, 01:17 PM
Same results. Indy has an update (fixes) to some things.
I'm going to try those changes and see if they make a difference.
At this point I don't know where (Indy or EL) the problem lies.

Thanks,
Brian

briangochnauer
13-Apr-2006, 02:45 PM
still getting Unknown errors.
The 'new' odd point is that one reports a 'TList' type error with an unknown error message, but it really should be an IdConnClosedGracefully type raised in the procedure RaiseConnClosedGracefully which is shown in the stack trace.

----------------------------------------------
2.1 Date : Thu, 13 Apr 2006 07:39:25 -0500
2.2 Address: 7C81EB33
2.3 Module : kernel32.dll
2.4 Type : TList
2.5 Message: Unknown error message.

Active Controls:
-----------------------------------------------
3.1 Form Class : rctrl_renwnd32
3.2 Form Text : For Me - Microsoft Outlook
3.3 Control Class:
3.4 Control Text :

Computer:
-------------------------------------------------------
4.1 Name : WFF00G91B4Y7AWK
4.2 User : SYSTEM
4.3 Total Memory : 2048 Mb
4.4 Free Memory : 1730 Mb
4.5 Total Disk : 74.52 Gb
4.6 Free Disk : 45.23 Gb
4.7 System Up Time: 3 days, 33 minutes, 39 seconds
4.8 Processor : Intel(R) Pentium(R) 4 CPU 3.20GHz
4.9 Display Mode : 1280 x 1024, 32 bit

Operating System:
------------------------------------
5.1 Type : Microsoft Windows XP
5.2 Build # : 2600
5.3 Update : Service Pack 2
5.4 Language: English

Network:
---------------------------------
6.1 IP Address: 010.255.201.107
6.2 Submask : 255.255.252.000
6.3 Gateway : 010.255.200.254
6.4 DNS 1 : 010.050.000.103
6.5 DNS 2 : 010.050.000.110
6.6 DHCP : ON

Call Stack Information:
----------------------------------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
----------------------------------------------------------------------------------------------------------------------
| Running Thread: ID=3972; Priority=0; Class=TIdThreadWithTask |
|--------------------------------------------------------------------------------------------------------------------|
|004B67D8|WFDMSCli.exe|IdIOHandler.pas |TIdIOHandler |RaiseConnClosedGracefully|1433[0] |
|004B9610|WFDMSCli.exe|IdIOHandlerStack.pas |TIdIOHandlerStack |CheckForDisconnect |537[19] |
|004B950A|WFDMSCli.exe|IdIOHandlerStack.pas |TIdIOHandlerStack |ReadFromSource |498[49] |

admin
13-Apr-2006, 03:53 PM
Hi,

briangochnauer wrote:
> still getting Unknown errors.
> The 'new' odd point is that one reports a 'TList' type error with an
> unknown error message, but it really should be an
> IdConnClosedGracefully type raised in the procedure
> RaiseConnClosedGracefully which is shown in the stack trace.
>
> [...]

I'm sorry but I absolutely need to can reproduce it to can help you.

If you want I can connect with your PC using our remote support tool, so
to can definitely check the problem on your PC, ok?

To allow me to connect directly with your PC you must only download and
run our remote control tool
(http://www.eurekalog.com/files/EurekaLog_Remote_Support.exe).

It is only a simple TCP client working on the HTTPS ports, so works with
any firewall and local network configuration.

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

briangochnauer
13-Apr-2006, 06:46 PM
I work in a company of 120,00+ employees. Firewalls everywhere, very restricted. There is no way you will be able to remote in.

The failure occurs within about four hours using 200 client PCs and a server.
It is not very predictable and there is no way for me to create a program where it I could reproduce on one or two PC.

:(

I can get my development machine to be the 'server' and cause the error on my developement machine if there is some other 'dump' or capture that I can get for you.

briangochnauer
13-Apr-2006, 07:26 PM
Opps, didn't read you last message completely about HTTPS.
THat might work.

Got two more errors one minute apart.
TEurekaStackList error then 66 seconds later a Unknown Exception type,
both with Exception message of "Unknown error message".

If the EL stack is crashing, is there a limit to the number of threads EL can track?

admin
13-Apr-2006, 08:18 PM
Hi,

briangochnauer wrote:
> Opps, didn't read you last message completely about HTTPS.
> THat might work.

Yes, it's so! :)

What do you think, are you able to reproduce it on your PC?

> Got two more errors one minute apart.
> TEurekaStackList error then 66 seconds later a Unknown Exception type,
> both with Exception message of "Unknown error message".
>
> If the EL stack is crashing, is there a limit to the number of threads
> EL can track?

No, I have tested EurekaLog with more that 1300 threads without problems. :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

briangochnauer
14-Apr-2006, 01:01 AM
I just had a thought, when this exception occurs RaiseConnectionClosedGracefully, the very next thing it does is do some clean up and terminates the thread.

Could EL be trying to access a thread that has already been destroyed?


I can reproduce it if you want to try remote support exe, but I can reproduce it on demand, it usually occurs in 3 or 4 hours.

admin
14-Apr-2006, 09:59 AM
Hi,

briangochnauer wrote:
> I just had a thought, when this exception occurs
> RaiseConnectionClosedGracefully, the very next thing it does is do some
> clean up and terminates the thread.
>
> Could EL be trying to access a thread that has already been destroyed?
>
>
> I can reproduce it if you want to try remote support exe, but I can
> reproduce it on demand, it usually occurs in 3 or 4 hours.

I suggest to you to activate the EurekaLog debug code, so to can see all
the EurekaLog internal calls in the next error report.

To activate it see here:
http://www.eurekalog.com/docs/debug.html

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

briangochnauer
14-Apr-2006, 05:10 PM
Here's a file

briangochnauer
17-Apr-2006, 01:21 PM
The other file that I have this morning is 25 MB but even compressed to 517KB it won't upload because of a limit of 32KB.

briangochnauer
17-Apr-2006, 01:37 PM
I noticed that in EurekaLog.pas your redeclaring TIdThread as your own class type

TIdThread = class(TThread)
protected
FData: TObject;
FStopMode: TIdThreadStopMode;
FStopped: Boolean;
FTerminatingException: string;
FOnException: TIdExceptionEvent;
public
class procedure HandledException(Sender: TObject; E: Exception);
end;

*Very Dangerous*

In Indy10 lastest snapshop they changed the TIdThread class,
it no longer has a
procedure HandledException(Sender: TObject; E: Exception);

*BOOM*

admin
18-Apr-2006, 06:53 PM
Hi,

briangochnauer wrote:
> I noticed that in EurekaLog.pas your redeclaring TIdThread as your own
> class type
>
> [...]
>
> *Very Dangerous*
>
> In Indy10 lastest snapshop they changed the TIdThread class,
> it no longer has a
> procedure HandledException(Sender: TObject; E: Exception);
>
> *BOOM*

Try to remove the "SetIndyEvent" procedure and tell back to me the
results, ok? :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!