Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
IceGrid assertion fails - tests

Hallo all,

I compiled Ice 3.2.1 with STLPort 5.1.5.

Everything went fine during the tests until I reached the following assetion failure in IceGrid/deployer:

Code:
alltests.cpp:516: assertion `it->read(1024, lines) && lines.empty()' failed


I have debugged a little bit the problem. It seems that "lines" is not empty after the read, the reason why, when you step a little bit inside read() is thinks it has an empty line to read.

I thought first that the test text file ("log2.txt") was invalid (for example that it had an EOL), but this is not the case, the text file is as expected (checked it in a hexadecimal editor).

Is this a bug in IceGrid?

Last edited by die_gestalt : 03-12-2008 at 07:36 AM.
Reply With Quote
  #2 (permalink)  
Old 03-14-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
Hi,

Sorry for the late answer. Which compiler do you use?

It's likely that the problem is caused by STLport iostreams. In src/IceGrid/FileChache.cpp, you could try tweaking the following lines (line 166 and 197) to see if it solves the problem:

Code:
#if defined(_MSC_VER) && (_MSC_VER < 1300)
If you're using VC6, you should change the line to:
Code:
#if 0
If you're not using VC6, you should change it to:
Code:
#if 1
Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 03-14-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
Hello Benoit,

Thanks for the answer. I'm using Visual Studio 2005 SP1 Professional Edition.

I'll test your tweak and let you know.

Update: It works! I suggest the define be changed to #ifdef _STLP_FEATURES_H

In other news I had to download Expat 2.0.1 and copy the dll into the bin directory of Ice otherwise the FreezeScript test crashes.

Regards.

Last edited by die_gestalt : 03-14-2008 at 06:47 AM.
Reply With Quote
  #4 (permalink)  
Old 03-14-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
I'm sorry but I started over from a clean directory and it still doesn't work, I think I must have tested with the "commented" version of AllTests.cpp.
Reply With Quote
  #5 (permalink)  
Old 03-14-2008
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,053
I'm sorry, but we cannot provide you with any further assistance until you change the name of your organization & project to something more descriptive.
Reply With Quote
  #6 (permalink)  
Old 03-14-2008
die_gestalt die_gestalt is offline
Registered User
 
Name: Hanz Fünzinger
Organization: self-employed
Project: Various projects, trying to learn Ice
 
Join Date: Mar 2008
Posts: 21
There is no specific project for the moment, I'm just a freelance engineer trying to learn Ice.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceGrid node shutdown fails when registry is down jae Help Center 1 12-07-2006 11:23 PM
IcePHP tests alfredt Help Center 2 04-08-2004 11:46 AM
tests failing (one sooner, one later) peter.s Help Center 1 03-20-2004 09:24 AM
IceJ-1.2.0 failing tests? SteveWampler Help Center 24 01-12-2004 02:33 PM
bench tests alfredt Comments 2 08-07-2003 11:10 AM


All times are GMT -4. The time now is 01:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.