From: Greg H. <hu...@cs...> - 2002-08-30 13:58:58
|
Hi Mike. This is now fixed. I have tested file dumping with the tilesort SPU, and it works great. I also made file dumping a bit more robust and flexible. I checked in 'tiledump.conf' into mothership/configs so you can see how I'm doing things. It's shown below. Note that the 'FileClient()' call is now gone. It still works in case you want to play back a dump in isolation, but the problem is that the server needs to know the tile information, and it gets that by posing as its client SPU's and asking about the other servers to the mothership. If it just thinks it has file clients, then it can't do that. The upshot is that if you want to take a trace from a tilesort SPU and play it back, you (currently) need to use a configuration file that has both the client and the server in it, even though playback only requires the server. A workaround would be a way to explicitly tell the server what the overall tiling was, and have the server check for this explicit information before it goes digging through the mothership's data structures. I don't think this is currently in there, although I could be wrong about that. Rock on. If you send a trace of your program, make sure to also send along the configuration file you used to generate that trace so we can successfully play it back. -Greg # Copyright (c) 2001, Stanford University # All rights reserved # # See the file LICENSE.txt for information on redistributing this software. import sys sys.path.append( '../server' ) from mothership import * if len(sys.argv) != 2: print 'Usage: %s <demo>' % sys.argv[0] sys.exit(-1) demo = sys.argv[1] render_spu = SPU( 'render' ) tilesort_spu = SPU( 'tilesort' ) print_spu = SPU( 'print' ) render_spu.Conf( 'window_geometry', [100, 100, 500, 500] ) server_node = CRNetworkNode( ) #server_node.AddSPU( print_spu ) server_node.AddSPU( render_spu ) server_node.AddTile( 0, 0, 500, 500 ) client_node = CRApplicationNode( ) client_node.AddSPU( tilesort_spu ) tilesort_spu.AddServer( server_node, r'file://c:\tmp\dump' ) client_node.SetApplication( demo ) client_node.StartDir( crbindir ) cr = CR() cr.MTU( 32*1024 ) cr.AddNode( client_node ) cr.AddNode( server_node ) cr.Go() -- Greg Humphreys, Assistant Professor Department of Computer Science, University of Virginia http://www.cs.virginia.edu/~humper/ -----Original Message----- From: chr...@li... [mailto:chr...@li...] On Behalf Of Mike H. Miller Sent: Friday, August 30, 2002 8:30 AM Cc: chr...@li... Subject: RE: [Chromium-users] Lighting bug in AVS/Express 6.1 On Fri, 2002-08-30 at 08:09, Greg Humphreys wrote: > That error basically means that Chromium tried to read from a dump file > that was open for writing. It probably means that you failed to use the > simplequery SPU, although it's possible that the tilesort SPU does some > other handshaking that I'm not aware of and doesn't check if the > connection is actually a network connection. > > Making sure you're using simplequery and then putting a breakpoint in a > debugger on crError is always illuminating... Hmmm. I am using simplequery (right before tilesort) on the client node. It works just fine with pack-- it's only tilesort that breaks things. I'm afraid I don't have a change to fire up my debugger right now... hopefully I'll get to it later today. P.S. Greg, I may have been the only one on this list who didn't know you got a new job as a Professor in Virginia-- congrats! :) -- Mike Miller mhm...@pr... -> mm...@pp... |