Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2006, 10:19 AM
egidy egidy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 166 egidy User rank is Private First Class (20 - 50 Reputation Level)egidy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 49 m 31 sec
Reputation Power: 5
'connection lost to database'

sometimes I am receiving error message 'connection lost to database' - in my case - it appears only when I am initializing the new column (for table with many rows - above 100k or even 1m records) with sp (where is for select...do...begin loop over this table). I have no observed any preconditions to this (some network environment, or server release etc.) error, it is rare - however - nasty when it appears.

I searched a lot - and found that this was an issue before IB 5.6 - but no any other reasosn. Some explanations were - problem with garbage collection/sweep - in can explain unregularity of this...

Any experience?
Thanx in advance.

Reply With Quote
  #2  
Old March 10th, 2006, 05:53 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,824 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 8 h 35 m 21 sec
Reputation Power: 278
Sounds like a bug.

Reply With Quote
  #3  
Old June 15th, 2006, 12:55 PM
egidy egidy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 166 egidy User rank is Private First Class (20 - 50 Reputation Level)egidy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 49 m 31 sec
Reputation Power: 5
well - I discovered some solid situation in which it occurs - when I am executing select (as query or in for loop) which uses some udf around one or more fields - then almost exactly 255 rows are returned and then connection lost appears.

I don't make throughouh tests but - find workaround instead... OK, maybe it helps someone - it is really hard to discover why this occurs.

Reply With Quote
  #4  
Old June 16th, 2006, 12:52 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,824 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 8 h 35 m 21 sec
Reputation Power: 278
Quote:
Originally Posted by egidy
well - I discovered some solid situation in which it occurs - ...
Did you submit the bug report?

Reply With Quote
  #5  
Old July 5th, 2006, 05:17 AM
kalin_mh_mh kalin_mh_mh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 kalin_mh_mh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 4 sec
Reputation Power: 0
i have similar problem with Firebird 1.5.3.4870 and rfunc 2.1.3

CREATE PROCEDURE BBB1 (Path Varchar(255)) RETURNS (RETID INTEGER)
AS
Declare Variable fh Integer;
Declare Variable bi Integer;
Declare Variable tstr1 Varchar(255);
Declare Variable tstr2 Varchar(255);
Declare Variable S1 Numeric(15,5);
begin
...
bi=fSize(path || 'BBB.Txt');
if (bi>0) then begin
fh=fopen(path || 'BBB.Txt', FO_RDONLY(), 0);
if (fh>0) then begin
while (bi>0 and RetID=0) do begin
tstr1=fRead(fh,220); tstr2=SubStr(tstr1,81,15);
...
S1=cast(tstr2 as Numeric(15,5));
...
bi=bi-1;
end
bi=fclose(fh);
end
end
...
end



CREATE PROCEDURE BBB2 (Path Varchar(255)) RETURNS (RETID INTEGER)
AS
Declare Variable fh Integer;
Declare Variable bi Integer;
Declare Variable tstr1 Varchar(255);
Declare Variable tstr2 Varchar(255);
Declare Variable S1 Numeric(15,5);
begin
...
bi=fSize(path || 'BBB.Txt');
if (bi>0) then begin
fh=fopen(path || 'BBB.Txt', FO_RDONLY(), 0);
if (fh>0) then begin
while (bi>0 and RetID=0) do begin
tstr1=fRead(fh,220); tstr2=SubStr(tstr1,81,15);
...
S1=cast(SubStr(tstr1,81,15) as Numeric(15,5));
...
bi=bi-1;
end
bi=fclose(fh);
end
end
...
end


on PC with Win98 BBB1 & BBB2 work perfectly
on other PC with WinXP BBB1 work but BBB2 rise exception 'connection lost to database' and the server terminates abnormally

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > 'connection lost to database'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway