Page 1 of 1

Assertion failure

Posted: Wed 12 Oct 2011 15:49
by JeffLaing
In a production program (SSL client), I keep receiving the error:
Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034).
The error is probably raised by the ScSSHChannel.Connect procedure, and occurs in multiples of four to 8 events.
code is
try
ScsshChannel2.connect
except
on e: exception do
begin
log('FATAL ERROR will re try '+e.message;
disconnectall; // a procedure to close all data chans.
timerdelayconnect.enabled:=true; // wait 6 seconds and retry log on and port forward
end;
end;

typical log file entry
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 FATAL ERROR will re try Assertion failure (D:\Projects\Delphi\SecureBridge\Source\ScSSHChannel.pas, line 1034)
12/10/2011 02:46:06 SSL connected

I don't have source code, and don't have drive D in production machine, or my Delphi machine. Any Idea what is happening. I can't reproduce problem in office.
Jeff

Posted: Thu 13 Oct 2011 15:00
by Dimon
It is a very stange behaviour. This problem can arise when an internal error occurs in the connection.
I cannot reproduce this behaviour. Please send a complete small sample that demonstrates the problem to dmitryg*devart*com.

Cant reproduce fault

Posted: Fri 14 Oct 2011 01:35
by JeffLaing
The only time I see the error is when a production app. is on a client site. I have several other clients using the same program without any error.
I assume that there is some kind of link failure. I can't reproduce fault, and have limited debug facilities on clients machines.

If I bring the client machine to my office I never see the problem. Even using the program on a very poor wireless link won't reproduce the fault.
The only thing that I can think of now is to look for this error and reboot client PC !
Jeff

Posted: Mon 17 Oct 2011 11:12
by Dimon
Do you use SSH or SSL protocol? These are different protocols.

Please try to compose a sample to demonstrate the problem and send it to dmitryg*devart*com.