From: Brian P. <bri...@tu...> - 2004-12-17 20:50:22
|
Daniel Leo wrote: > Hi, > I have need to use pack spu to generate an local gl trace file.and the > spus chain I have configured is > client.simplequery->client.simplerquery->packspu->output_file. >=20 > the following are the contents of config file: > -------------------------------------------------------- > import sys > sys.path.append( '../server' ) > from mothership import * >=20 > if len(sys.argv) !=3D 3: > print 'Usage: %s <demo> output_file' % sys.argv[0] > sys.exit(-1) >=20 > demo =3D sys.argv[1] > output_file =3D sys.argv[2] >=20 > pack_spu =3D SPU( 'pack' ) > sq_spu =3D SPU( 'simplequery' ) >=20 > server_spu =3D SPU( 'NONE' ) > client_node =3D CRApplicationNode( ) > client_node.AddSPU( sq_spu ) > client_node.AddSPU( SPU( 'simplerquery' ) ) ^^^^^^^^^^^^^^ That should be 'simplequery'. > client_node.AddSPU( pack_spu ) > pack_spu.AddServer( None, r'file://%s' % output_file ) >=20 > #client_node.SetApplication( '%s' % (os.path.join(crbindir, demo)) ) > #client_node.StartDir( crbindir ) > client_node.SetApplication( demo ) >=20 > cr =3D CR() > cr.MTU( 32*1024 ) > cr.AddNode( client_node ) > cr.Go() >=20 > ---------------------------------------- >=20 > after I typed the command lines : > python myconf.conf fonttest $(MYDIR)/output_file & > crappfaker & > the following error messages were printed : > ------------------------------------------- > MOTHERSHIP EXCEPTION! TERRIBLE! > Traceback (most recent call last): > File "../server/mothership.py", line 987, in Go > self.ProcessRequest( self.wrappers[sock] ) > File "../server/mothership.py", line 1910, in ProcessRequest > fn( sock_wrapper, arguments) > File "../server/mothership.py", line 1456, in do_servers > host =3D node.host > AttributeError: 'NoneType' object has no attribute 'host' > CR Error(localhost:2556): Bad Mothership response: 8=EF=BF=BD=03 > =04 > ----------------------------------------------------------- >=20 > then,my questions are: > 1. how to setup the attribute 'host'? > 2. whether a server is necessary in spus chain? > 3. I have configured another spus chain in this form: > client.simplequery->client.simplerquery->packspu->server.print->outpu= t_file > and if the server is a necessary one in chain , i wonder whether the > contents of the output_file are identical to those generated by > client.simplequery->client.simplerquery->packspu->output_file=20 >=20 This problem is fixed in the CVS head code. The attached patch for=20 mothership.py from Chromium 1.7 should fix it. -Brian |