From owner-freebsd-x11@FreeBSD.ORG Thu Apr 30 04:34:50 2009 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D50A91065670 for ; Thu, 30 Apr 2009 04:34:50 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id 2CDA68FC08 for ; Thu, 30 Apr 2009 04:34:49 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: (qmail 92475 invoked by uid 89); 30 Apr 2009 04:34:48 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (78.111.72.187) by avocado.salatschuessel.net with SMTP; 30 Apr 2009 04:34:47 -0000 Date: Thu, 30 Apr 2009 06:34:54 +0200 From: Oliver Lehmann To: John Hein Message-Id: <20090430063454.969303d0.lehmann@ans-netz.de> In-Reply-To: <18936.36210.823588.838523@gromit.timing.com> References: <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> <18936.36210.823588.838523@gromit.timing.com> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.1; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: x11@freebsd.org Subject: Re: Problem with OpenGL and ATI HD3850 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2009 04:34:51 -0000 John Hein wrote: > Try printing to stderr instead of stdout (or set stdio to be > unbuffered with setvbuf(3)) - you may be getting farther than you > think and are getting bitten by stdio buffering. > > Also is this threaded? Tested it: void GLSupport::initialiseExtensions(void) { // Set version string const GLubyte* pcVer = glGetString(GL_VERSION); fprintf(stderr,"100\n"); assert(pcVer && "Problems getting GL version string using glGetString"); fprintf(stderr,"101\n"); String tmpStr = (const char*)pcVer; fprintf(stderr,"102\n"); LogManager::getSingleton().logMessage("GL_VERSION = " + tmpStr); fprintf(stderr,"103\n"); mVersion = tmpStr.substr(0, tmpStr.find(" ")); fprintf(stderr,"104\n"); olivleh1@kartoffel olivleh1> freeorion unknown chip id 0x9515, can't guess. 100 101 main() caught exception(std::exception): basic_string::_S_construct NULL not valid It looks like it is threaded but I'm not sure. (gdb) file /usr/local/bin/freeorion Reading symbols from /usr/local/bin/freeorion...done. (gdb) run Starting program: /usr/local/bin/freeorion [New LWP 100138] [New Thread 0x8062020b0 (LWP 100138)] unknown chip id 0x9515, can't guess. 100 101 main() caught exception(std::exception): basic_string::_S_construct NULL not valid Program exited normally. (gdb) How can I output whatever glGetString returns? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/