Two (probably unrelated) problems with FileClients

"Jeremy W. Sheaffer" <[email protected]>
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
Using the config script at the end of the email, under cr-1.6 I am able to
play back OpenGL traces I have made from various applications.  Under 1.7
I get the following output:

CR Debug(alpina:22242): calling crNetConnectToServer( "localhost", 10000,
8096, 0 )
CR Debug(alpina:22242): Connecting to server alpina on port 10000, with
protocol tcpip
CR Debug(alpina:22242): Calling crTCPIPInit()
CR Debug(alpina:22242): Initializing TCPIP

CR Debug(alpina:22242): Calling crTCPIPConnection
CR Debug(alpina:22242): Done calling crTCPIPConnection
CR Debug(alpina:22242): Done connecting to server.
CR Debug(alpina:22242): SPU 1/1: (0) "render"
CR Debug(alpina:22242): crNetSetRank:  set my_rank to 0
CR Debug(alpina:22242): initializing dispatch table 0x811e4d0 (for SPU
error)
CR Debug(alpina:22242): Done initializing the dispatch table for SPU
error, calling the self function
CR Debug(alpina:22242): Done with the self function
CR Debug(alpina:22242): Networking already initialized!
CR Warning(alpina:22242): Couldn't find the CRMOTHERSHIP environment
variable, defaulting to localhost
CR Debug(alpina:22242): calling crNetConnectToServer( "localhost", 10000,
8096, 0 )
CR Debug(alpina:22242): Connecting to server alpina on port 10000, with
protocol tcpip
CR Debug(alpina:22242): Calling crTCPIPInit()
CR Debug(alpina:22242): Calling crTCPIPConnection
CR Debug(alpina:22242): Done calling crTCPIPConnection
CR Debug(alpina:22242): Done connecting to server.
CR Debug(alpina:22242): Looking for the system's OpenGL library...
CR Debug(alpina:22242): Found it in default path.
CR Debug(alpina:22242): Render SPU: Creating default window (visBits=0x1,
id=0)
CR Debug(alpina:22242): Render SPU: Looks like we have GLX
CR Debug(alpina:22242): Render SPU: Chose visual id=0x2c: RGBA=(8,8,8,0)
Z=0 stencil=0 double=0 stereo=0 accum=(16,16,16,16)
CR Debug(alpina:22242): Render SPU: Creating window (visBits=0x1, id=0)
CR Debug(alpina:22242): Render SPU: Created window on display :0.0,
Xvisual 0x2c
CR Debug(alpina:22242): Render SPU: actual window x, y, width, height:
100, 100, 1024, 768
CR Debug(alpina:22242): WindowCreate returned 0
CR Debug(alpina:22242): Render SPU: Created DIRECT context on display
:0.0, Xvisual 0x2c
CR Debug(alpina:22242): Render SPU: GL_VENDOR:   NVIDIA Corporation
CR Debug(alpina:22242): Render SPU: GL_RENDERER: GeForce FX 5200
Ultra/AGP/3DNOW!
CR Debug(alpina:22242): Render SPU: GL_VERSION:  1.5.1 NVIDIA 61.11
CR Debug(alpina:22242): initializing dispatch table 0x811c528 (for SPU
render)
CR Debug(alpina:22242): Done initializing the dispatch table for SPU
render, calling the self function
CR Debug(alpina:22242): Done with the self function
CR Debug(alpina:22242): No tiling information for server!
CR Warning(alpina:22242): It looks like there are nothing but file
clients.  That suits me just fine.
CR Error(alpina:22242): Assertion failed: mural->numExtents > 0, file
server_tiles.c, line 530

Which terminates with SIGTERM, and here's the backtrace:

#0  0x40277ac1 in kill () from /lib/libc.so.6
#1  0x4038f9ed in pthread_kill () from /lib/libpthread.so.0
#2  0x4038fd0b in raise () from /lib/libpthread.so.0
#3  0x402776fa in raise () from /lib/libc.so.6
#4  0x401319a5 in crError (
    format=0x80b4fe0 "Assertion failed: %s, file %s, line %d") at
error.c:158
#5  0x080571bd in crServerGetTileInfoFromMothership (conn=0x811b7e0,
    mural=0x80c5560) at server_tiles.c:530
#6  0x0804b297 in crServerGatherConfiguration (mothership=0x0)
    at server_config.c:397
#7  0x0804a1d4 in CRServerMain (argc=1, argv=0xbffff764) at
server_main.c:170
#8  0x08049e6a in main (argc=1, argv=0xbffff764) at main.c:11
#9  0x40263d06 in __libc_start_main () from /lib/libc.so.6

That's the first problem.  I can't seem to replay any traces under
1.7.  Have others had issues with FileClients under 1.7?

The other problem concerns a particular trace.  Same config file.
cr-1.6.  Here's the output:

CR Warning(alpina:22216): It looks like there are nothing but file
clients.  That suits me just fine.
CR Warning(alpina:22216): Couldn't open X display named '-2147414829'
CR Warning(alpina:22216): Couldn't get a visual,
renderspu_SystemInitVisual failed
CR Warning(alpina:22216): headSpu.CreateContext failed in
crServerDispatchCreateContext()

crserver terminates with SIGSEGV.  Here's the backtrace:

#0  crServerDispatchLoadMatrixf (m=0x417e7478) at server_projmatrix.c:23
#1  0x40123dc3 in crUnpackLoadMatrixf () at unpack_matrices.c:40
#2  0x40120500 in crUnpack (data=0x56, opcodes=0x417e70ab,
num_opcodes=131,
    table=0x417e7050) at unpack.c:1756
#3  0x080549a8 in crServerSerializeRemoteStreams () at server_stream.c:290
#4  0x08049fe8 in CRServerMain (argc=134960048, argv=0x810d408)
    at server_main.c:188
#5  0x08049ea9 in main (argc=1, argv=0xbffff764) at main.c:11
#6  0x4022bd06 in __libc_start_main () from /lib/libc.so.6

crServerDispatchLoadMatrixf tries to access
cr_server.curClient->currentCtx->transform.matrixMode, but
cr_server.curClient->currentCtx is null, as CreateContext failed.

If anybody can provide any input on this I'd be very grateful.  I've been
beating my head against it for a while now.  Also, I'd be happy to supply
traces if they are needed.

Jeremy




# 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 <file>' % sys.argv[0]
        sys.exit(-1)

dump = sys.argv[1]

server_spu = SPU( 'render' )

W = 1024
H = 768

server_spu.Conf( 'window_geometry', [100, 100, W, H] )

server_node = CRNetworkNode( )
server_node.FileClient(dump)

server_node.AddSPU( server_spu )

cr = CR()
cr.AddNode( server_node )
cr.Go()


-- 
Jeremy W. Sheaffer
[email protected]
http://cs.virginia.edu/~jws9c/



             /*********************************************
             * The Moving Finger writes; and having writ, *
             *    Moves on: nor all thy piety nor wit     *
             *  Shall lure it back to cancel half a line  *
             *  Nor all thy tears wash out a word of it.  *
             *                                            *
             *                       -Omar Khayyam        *
             *********************************************/



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.