nanogui: Problem: Drawing Images


Previous by date: 16 Jan 2002 06:53:08 -0000 Long time operation and events, Jaster
Next by date: 16 Jan 2002 06:53:08 -0000 Re: Long time operation and events, Greg Haerr
Previous in thread: 16 Jan 2002 06:53:08 -0000 Problem: Drawing Images, Brian
Next in thread: 16 Jan 2002 06:53:08 -0000 Re: Problem: Drawing Images, Brian

Subject: Re: [nanogui] Problem: Drawing Images
From: "Greg Haerr" ####@####.####
Date: 16 Jan 2002 06:53:08 -0000
Message-Id: <03f001c19e58$c1758660$3aba46a6@xmission.com>

: I am having trouble drawing images, using GrDrawImageBits(),
: GrDrawImageFromFile() and GrDrawImageToFit().
: I just followed the examples in 'install.txt'.  The examples run fine
: on
: my x86 PC; however, they only run 'partially' on our ARM platform.
: The underlying operating system is uClinux for ARM.

A couple of ideas: make sure that the MAXREQUESTSZ
macro in nanox/nxproto.h is larger than the image
size you're using.  Also, you might try using
the LINK_APP_INTO_SERVER=Y config option so that
you eliminate any client/server issues.  Finally,
there may be some alignment problems in the
image conversion routines - try a few different
types of image files.

Regards,

Greg



: 
: For GrDrawImageBits(), it causes the error:
:     # nano-X: GsError (GrDrawImageBits) Bad graphics context:  1000
: 
: For both GrDrawImageFromFile() and GrDrawImageToFit(), it endlessly
: prints out:
:     # nano-X: Error accept failed (88)
: where errno of 88 corresponds to:
:     #define ENOTSOCK 88 /* Socket operation on non-socket */
: It actually finishes drawing the image and then prints out the error
: message...
: Adding some debug printf's would not reproduce the problem but causes
: nano-X
: server to stop responding even though the other parts of the system
: remain alive.
: 
: I tried both 0.89pre8 and 0.89pre7 and the results were similar.
: 
: The 'landmine' game and a simple 'hello world' program run fine on our
: system;
: therefore, I think the nano-X server is ok.
: 
: Has anyone experienced the same problems?
: Our system is very slow.  Does clock speed have anything to do with
: it?  (I personally
: do not think so...)
: 
: I have trouble sorting out the source of the problems.  Could anyone
: give me a hint here?
: 
: Thanks. : )
: 
: 
: Brian
: 
: 
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 16 Jan 2002 06:53:08 -0000 Long time operation and events, Jaster
Next by date: 16 Jan 2002 06:53:08 -0000 Re: Long time operation and events, Greg Haerr
Previous in thread: 16 Jan 2002 06:53:08 -0000 Problem: Drawing Images, Brian
Next in thread: 16 Jan 2002 06:53:08 -0000 Re: Problem: Drawing Images, Brian


Powered by ezmlm-browse 0.20.