From owner-info-inventor-dev@oss.sgi.com Fri May 3 01:38:11 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g438cBwJ029083 for ; Fri, 3 May 2002 01:38:11 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g438cAcQ029082 for info-inventor-dev-outgoing; Fri, 3 May 2002 01:38:10 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from burdell.cc.gatech.edu (root@burdell.cc.gatech.edu [130.207.3.207]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g438brwJ029076 for ; Fri, 3 May 2002 01:37:54 -0700 Received: from bounce.cc.gatech.edu (bounce.cc.gatech.edu [130.207.17.109]) by burdell.cc.gatech.edu (8.9.1/8.9.3) with ESMTP id EAA08382 for ; Fri, 3 May 2002 04:38:56 -0400 (EDT) Received: (from bbb@localhost) by bounce.cc.gatech.edu (8.9.1/8.9.1) id EAA331452; Fri, 3 May 2002 04:38:55 -0400 (EDT) Date: Fri, 3 May 2002 04:38:55 -0400 (EDT) Message-Id: <200205030838.EAA331452@bounce.cc.gatech.edu> X-Authentication-Warning: bounce.cc.gatech.edu: bbb set sender to benjamin.wong@cc.gatech.edu using -f To: info-inventor-dev@oss.sgi.com Subject: Segfault bug in SoBlinker From: Ben Wong Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi, It appears that if you allocate an SoBlinker before calling SoXt::init(), the program will die with a segmentation fault. This doesn't appear to be documented anywhere, nor mentioned on any web-page, so I assume it is a bug rather than an obscure feature. (Of course, it could just be me doing something silly, but it seems unlikely at this point). I have reproduced the bug on both NetBSD-1.5 with the LGPL version of Open Inventor-2.1.5-7 and on an SGI running IRIX 6.5 (with the stock Open Inventor). Both died with the same call stack (see below). I'd like to know if this bug still exists in the latest version of Open Inventor. Could someone please test it for me and post the results? Below I have included a minimal program to reproduce the bug. Comment out the line that defines BLINKBUG if you want to see the program run without dumping core. Ben -- College of Computing and GVU Benjamin.Wong@cc.gatech.edu Georgia Institute of Technology Atlanta, Georgia 30332-0280 -------- 8< -------- CUT HERE -------- 8< -------- CUT HERE -------- #include #include #include #include #include #include #include #include #include #include #include #define BLINKBUG // This program exercises a bug in Open Inventor such that if an // SoBlinker is allocated *before* SoXt::init() is called, the program // will have a segmentation fault. // This bug was demonstrated on both g++ with Open Inventor 2.1.5-7 // (NetBSD), and CC with IRIX 6.5's standard Open Inventor. // // Both die with the same call stack: //(gdb) bt //#0 SbDict::findEntry () at SbDict.c++:182 //#1 0xc87d3e8 in SbDict::find () at SbDict.c++:160 //#2 0xc926f34 in find__13SoGlobalFieldSGRC6SbName () at SoGlobalField.c++:198 //#3 0xc88af34 in getGlobalField__4SoDBSGRC6SbName () at SoDB.c++:827 //#4 0xc8de5e4 in SoTimeCounter::__ct () at SoTimeCounter.c++:55 //#5 0xc9354d8 in SoBlinker::__ct () at SoBlinker.c++:43 //#6 0x10001c40 in main (argv=0x7fff2f24) at minblinker.cc:25 void main(int , char **argv) { #ifdef BLINKBUG SoBlinker *myBlinker = new SoBlinker; // THIS CORE DUMPS! #endif // Initialize Inventor and Xt Widget myWindow = SoXt::init(argv[0]); if (myWindow == NULL) exit(1); #ifndef BLINKBUG SoBlinker *myBlinker = new SoBlinker; // BUT LATER ALLOCATION IS FINE. #endif // Set up camera and light SoSeparator *root = new SoSeparator; root->ref(); SoPerspectiveCamera *myCamera = new SoPerspectiveCamera; root->addChild(myCamera); root->addChild(new SoDirectionalLight); // Setup the scene graph root->addChild(myBlinker); myBlinker->speed = 1.0/2; // blink every two seconds myBlinker->addChild(new SoCube); // Set up and display render area SoXtRenderArea *myRenderArea = new SoXtRenderArea(myWindow); SbViewportRegion myRegion(myRenderArea->getSize()); myCamera->viewAll(root, myRegion); myRenderArea->setSceneGraph(root); myRenderArea->setTitle("Minimal SoBlinker Implementation"); myRenderArea->show(); SoXt::show(myWindow); SoXt::mainLoop(); } From owner-info-inventor-dev@oss.sgi.com Fri May 3 02:52:50 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g439qowJ006635 for ; Fri, 3 May 2002 02:52:50 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g439qoa5006633 for info-inventor-dev-outgoing; Fri, 3 May 2002 02:52:50 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from smtp3.ev1.net (smtpout.ev1.net [207.218.192.47]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g439qYwJ006628 for ; Fri, 3 May 2002 02:52:34 -0700 Received: from sugarlan2pa6cc [216.12.216.162] by smtp3.ev1.net (SMTPD32-6.06) id AE811D5A0140; Fri, 03 May 2002 04:55:13 -0500 Message-ID: <002501c1f287$b20d3000$dedfdacf@sugarlan2pa6cc> From: "Matt Verona" To: , "Ben Wong" References: <200205030838.EAA331452@bounce.cc.gatech.edu> Subject: Re: Segfault bug in SoBlinker Date: Fri, 3 May 2002 04:48:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Howdy Ben... I think that Inventor has always had this "feature"... i.e., you must always initialize the Inventor database by calling the static SoDB::init() method, before creating nodes, like SoBlinker, etc.... See page 36 of "The Inventor Mentor": ... "SoDB::init() must be the first Inventor call you make. If you use the Inventor Component Library, the database is initialized automatically when you call SoXt::init(). If you are not using components, but you are using interaction or node kits, or both, call SoInteraction::init(), which initialized the database, interaction, and node kits." ~MV *** ----- Original Message ----- From: "Ben Wong" To: Sent: Friday, May 03, 2002 3:38 AM Subject: Segfault bug in SoBlinker > Hi, > > It appears that if you allocate an SoBlinker before calling > SoXt::init(), the program will die with a segmentation fault. This > doesn't appear to be documented anywhere, nor mentioned on any > web-page, so I assume it is a bug rather than an obscure feature. > (Of course, it could just be me doing something silly, but it seems > unlikely at this point). > > I have reproduced the bug on both NetBSD-1.5 with the LGPL version of > Open Inventor-2.1.5-7 and on an SGI running IRIX 6.5 (with the stock > Open Inventor). Both died with the same call stack (see below). I'd > like to know if this bug still exists in the latest version of Open > Inventor. Could someone please test it for me and post the results? > > Below I have included a minimal program to reproduce the bug. Comment > out the line that defines BLINKBUG if you want to see the program run > without dumping core. > > Ben > > -- > College of Computing and GVU > Benjamin.Wong@cc.gatech.edu Georgia Institute of Technology > Atlanta, Georgia 30332-0280 > > -------- 8< -------- CUT HERE -------- 8< -------- CUT HERE -------- > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > > #define BLINKBUG > > // This program exercises a bug in Open Inventor such that if an > // SoBlinker is allocated *before* SoXt::init() is called, the program > // will have a segmentation fault. > > // This bug was demonstrated on both g++ with Open Inventor 2.1.5-7 > // (NetBSD), and CC with IRIX 6.5's standard Open Inventor. > // > // Both die with the same call stack: > > //(gdb) bt > //#0 SbDict::findEntry () at SbDict.c++:182 > //#1 0xc87d3e8 in SbDict::find () at SbDict.c++:160 > //#2 0xc926f34 in find__13SoGlobalFieldSGRC6SbName () at SoGlobalField.c++:198 > //#3 0xc88af34 in getGlobalField__4SoDBSGRC6SbName () at SoDB.c++:827 > //#4 0xc8de5e4 in SoTimeCounter::__ct () at SoTimeCounter.c++:55 > //#5 0xc9354d8 in SoBlinker::__ct () at SoBlinker.c++:43 > //#6 0x10001c40 in main (argv=0x7fff2f24) at minblinker.cc:25 > > > void > main(int , char **argv) > { > #ifdef BLINKBUG > SoBlinker *myBlinker = new SoBlinker; // THIS CORE DUMPS! > #endif > > > // Initialize Inventor and Xt > Widget myWindow = SoXt::init(argv[0]); > if (myWindow == NULL) exit(1); > > > #ifndef BLINKBUG > SoBlinker *myBlinker = new SoBlinker; // BUT LATER ALLOCATION IS FINE. > #endif > > > // Set up camera and light > SoSeparator *root = new SoSeparator; > root->ref(); > SoPerspectiveCamera *myCamera = new SoPerspectiveCamera; > root->addChild(myCamera); > root->addChild(new SoDirectionalLight); > > // Setup the scene graph > root->addChild(myBlinker); > myBlinker->speed = 1.0/2; // blink every two seconds > myBlinker->addChild(new SoCube); > > // Set up and display render area > SoXtRenderArea *myRenderArea = new SoXtRenderArea(myWindow); > SbViewportRegion myRegion(myRenderArea->getSize()); > myCamera->viewAll(root, myRegion); > > myRenderArea->setSceneGraph(root); > myRenderArea->setTitle("Minimal SoBlinker Implementation"); > myRenderArea->show(); > SoXt::show(myWindow); > SoXt::mainLoop(); > } > > > From owner-info-inventor-dev@oss.sgi.com Fri May 3 04:43:22 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g43BhMwJ008699 for ; Fri, 3 May 2002 04:43:22 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g43BhLje008698 for info-inventor-dev-outgoing; Fri, 3 May 2002 04:43:21 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g43BhDwJ008694 for ; Fri, 3 May 2002 04:43:14 -0700 Received: from fwd07.sul.t-online.de by mailout05.sul.t-online.com with smtp id 173ZR3-0004ZM-07; Fri, 03 May 2002 11:33:05 +0200 Received: from there (520080106055-0001@[217.231.245.230]) by fmrl07.sul.t-online.com with smtp id 173ZQn-2CvWuuC; Fri, 3 May 2002 11:32:49 +0200 Content-Type: text/plain; charset="iso-8859-1" From: "=?iso-8859-1?q?J=F6rn?= Beutner" Reply-To: beutner@pi.tu-berlin.de To: Ben Wong , info-inventor-dev@oss.sgi.com Subject: Re: Segfault bug in SoBlinker Date: Fri, 3 May 2002 11:32:48 +0200 X-Mailer: KMail [version 1.3.1] References: <200205030838.EAA331452@bounce.cc.gatech.edu> In-Reply-To: <200205030838.EAA331452@bounce.cc.gatech.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <173ZQn-2CvWuuC@fmrl07.sul.t-online.com> X-Sender: 520080106055-0001@t-dialin.net Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi Ben, I have complied and run your test code on my Linux-PC (running SuSE-7.3 and sgi-OpenInventor-2.1.5-6). The executable produces the same result as you discribed. # Program received signal SIGSEGV, Segmentation fault. # 0x40232622 in SbDict::findEntry (this=0x0, key=134530060) at SbDict.c++:218 I do not know if this is a bug or a feature, but a closer look at the debugger gives the following result at the line 218 of SbDict.c++. The variables this=0x0 and buckets=0x0 are not initialized and the code produces a segmentation fault consequently. 209: // 210: // Returns reference to entry with given key, or NULL if there is none. 211: // 212: 213: SbDictEntry *& 214: SbDict::findEntry(unsigned long key) const 215: { 216: SbDictEntry **entry; 217: 218: entry = &buckets[key % tableSize]; 219: 220: while (*entry != NULL) { 221: if ((*entry)->key == key) 222: break; 223: entry = &(*entry)->next; 224: } 225: return *entry; 226: } Unfortunately I am not that familiar with the details of OpenInventor so I can not give you any further hints. Joern On Friday, 3. May 2002 10:38, Ben Wong wrote: > Hi, > > It appears that if you allocate an SoBlinker before calling > SoXt::init(), the program will die with a segmentation fault. This > doesn't appear to be documented anywhere, nor mentioned on any > web-page, so I assume it is a bug rather than an obscure feature. > (Of course, it could just be me doing something silly, but it seems > unlikely at this point). > > I have reproduced the bug on both NetBSD-1.5 with the LGPL version of > Open Inventor-2.1.5-7 and on an SGI running IRIX 6.5 (with the stock > Open Inventor). Both died with the same call stack (see below). I'd > like to know if this bug still exists in the latest version of Open > Inventor. Could someone please test it for me and post the results? > > Below I have included a minimal program to reproduce the bug. Comment > out the line that defines BLINKBUG if you want to see the program run > without dumping core. > > Ben From owner-info-inventor-dev@oss.sgi.com Fri May 3 13:10:52 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g43KAqwJ028459 for ; Fri, 3 May 2002 13:10:52 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g43KAqXc028458 for info-inventor-dev-outgoing; Fri, 3 May 2002 13:10:52 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from cvap57.nada.kth.se (cvap57.nada.kth.se [130.237.218.179]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g43KAmwJ028455 for ; Fri, 3 May 2002 13:10:49 -0700 Received: from localhost (amiller@localhost) by cvap57.nada.kth.se (8.9.3+Sun/8.9.3) with ESMTP id WAA15214 for ; Fri, 3 May 2002 22:11:53 +0200 (MEST) X-Authentication-Warning: cvap57.nada.kth.se: amiller owned process doing -bs Date: Fri, 3 May 2002 22:11:52 +0200 (MEST) From: Andrew Miller To: Subject: SoGlwDrawA.c 1.5 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk A while back I posted a note regarding a keyboard focus problem that I traced back to the #undef __GLX_MOTIF in SoGLwDrawA.c. I never got any response, but now I've seen it was posted as a bug by Aubrey Holland and Jonathan has fixed it. Is this update available? The tarball is still old, the online source tree doesn't have it, and I timeout trying to log into the cvs server. I want to distribute my app soon, which is much easier to use when the keyboard focus works correctly, but it would be nicer if I don't have to supply an Inventor patch. Thanks, -Andrew Miller From owner-info-inventor-dev@oss.sgi.com Thu May 9 12:42:51 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g49JgpwJ017255 for ; Thu, 9 May 2002 12:42:51 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g49Jgp3W017254 for info-inventor-dev-outgoing; Thu, 9 May 2002 12:42:51 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from faui45.informatik.uni-erlangen.de (root@faui45.informatik.uni-erlangen.de [131.188.34.45]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g49JgawJ017249 for ; Thu, 9 May 2002 12:42:37 -0700 Received: from faui90.informatik.uni-erlangen.de (postfix@faui90.informatik.uni-erlangen.de [131.188.39.4]) by faui45.informatik.uni-erlangen.de (8.9.1/8.1.49-FAU) with ESMTP id VAA27353 for ; Thu, 9 May 2002 21:44:07 +0200 (MET DST) Received: from sonata.informatik.uni-erlangen.de (faui90h.informatik.uni-erlangen.de [131.188.39.12]) by faui90.informatik.uni-erlangen.de (Postfix) with ESMTP id 19628C1BD00 for ; Thu, 9 May 2002 21:44:00 +0200 (MES) Received: by sonata.informatik.uni-erlangen.de (Postfix, from userid 1001) id EEA54349DA; Thu, 9 May 2002 21:44:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sonata.informatik.uni-erlangen.de (Postfix) with ESMTP id E6CA02E4B1 for ; Thu, 9 May 2002 21:44:06 +0200 (CEST) Date: Thu, 9 May 2002 21:44:06 +0200 (CEST) From: Gerd Sussner X-X-Sender: To: Subject: Overlay Bugfix and $PREFIX-patch Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1132262361-1887088795-1020973446=:16671" Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1132262361-1887088795-1020973446=:16671 Content-Type: TEXT/PLAIN; charset=US-ASCII hi folks, while porting inventor to aix-platform, i found a little bug in the SoXtRenderArea: The renderarea assumes that the transparency index of an overlay is always index 0. well this is true at least for sgi- and nvidia-linux-machines, but not for aix-machines - they have an index of 0xff. fortunately it is possible to ask glx for the right index. i included it in the patch. additionally, i added support for installing inventor different to $IVROOT/usr/[bin|lib|man|share|demos], i.e. you can install inventor now in $IVROOT/$PREFIX/[bin|lib|man|share|demos] just change the PREFIX variable in make/ivcommondefs. note, that only those files are patched which are actually installed, e.g. apps/demos, but the mentor-examples are not patched so far. i hope this patch is useful and get its way into cvs. gerd ps: next week i think i have a patch for a port to aix ---1132262361-1887088795-1020973446=:16671 Content-Type: APPLICATION/x-gunzip; name="prefix.patch.gz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="prefix.patch.gz" H4sICMbK2jwAA3ByZWZpeC5wYXRjaAC1W3tz2kgS/xs+RS/JZSG8n47ZcyrY YJs7bHwG+1y32aKENIAqQuI0Eja3le9+PTMSSOiBsL2qGIHU3dMz3b/unpai qLMZFE0o2qDqa6JbhlmWVitaVsjSoOWRTHTyqJJnYpZHhudXSc7ntxyTlUlm 6ktixnSxWDx+uNRIsuAftg61OlQq7Uqr3WxBrVKppvNv0CU1XthwI20ATlFY u9Fo16tMai397RsUGyf1aqFagbz75du3NJTL7O99jjT8mS4CHuoMspIsE0qz mbJNTUf3vrtKXrWlqWFbmQLcT4b/zMEvZ1DJpfN7Qu7ue5f9p8yxYpgUVAlS dEMtssxmXpYoTZoT+HVkmOamALJhawrohgUzVVcgky6mQBzJ9P4VvgISrcu6 rWmZ3G/pvMufVOWABEiZxLJN/Teh/s80OMZrnBZOmO34mZkuSMgXn65MVbdm WdlYLiVdKUBGkk3DJJICieYEn/hEDojKJJ2gEMdVdMzgSGNXmdJKPGrnaxRW 7qp0pUmbK1NaLQ7BNZwjEqfh5KkRgnMoW1A7hWqrXWm0q00GpcohgEaIi0Vm 64SZln8yw46mXVW2Up+9QtptVTZ0dh2XLQ0fFBxXJ9C/GN5OLvuDXirDB+4j ES2pa/RkH0n/djSedPv3Ka9fK5IlbS2XSefDOfyG3uPxK9K7fZw8dnCQ/uPk 6r5zd80EZJi+7xZiDnjLUvof4R+HnMRHGOkbPqpXu4RfSqwnVOuNwhfIixPz BbZ00LEV1cAQpREKC2lNYGmsiQJTYj0TokP/vv8EzVIdEFX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hnRcjn4k3M3GeGn+9G/+huSwL1RBZTGyXcHaqtWD9N6agRopo MFlluyfmvAuY2brMF6rkvE0sntw57xJ/gMHF01O3dzmCPLPKTWd8zX7lxK3Q G8w4jGt4N+Y3i11H4e+Zjw42ct8zjOYAReis+MvKztSEyi3+/nOL1WnCmbC6 U2dcj6IjoaNgKMJJYrKhXmEDVbdftgvFXha7un3gmR/tYaJ8ZOer0mgVqlgG Vhun7CxWxq3AXafZboRUIjhRg/7jOVYwuAcSLs18MOdusNndQf887C4G0nQ+ lHe7PlxCPlTCjobJQWx1fUTiR267g+iytiFT5rp7Px7eBZTZ76uxUUNId6MG GIAz7DQQ3IwFv40euDpMgZvObTVsOZaSzv6qDk09hqbOJ4I7zzCa3faJUXU7 4040lefNOk7cuxmGEfOHymxFwnTfLcl2BvnwGQQo63yVQ+axo/TMJh8+m31a 75zy4XPasYiZgSDzeaLDl/MZmF/06bAl8/0HEETF/wETCcjUdTcAAA== ---1132262361-1887088795-1020973446=:16671-- From owner-info-inventor-dev@oss.sgi.com Mon May 13 01:59:08 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4D8x8wJ019422 for ; Mon, 13 May 2002 01:59:08 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4D8x8L2019421 for info-inventor-dev-outgoing; Mon, 13 May 2002 01:59:08 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from sark.cc.gatech.edu (sark.cc.gatech.edu [130.207.7.23]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4D8x4wJ019418 for ; Mon, 13 May 2002 01:59:04 -0700 Received: from gaia.cc.gatech.edu (gaia.cc.gatech.edu [130.207.3.8]) by sark.cc.gatech.edu (8.11.6/8.11.6) with ESMTP id g4D90o016756 for ; Mon, 13 May 2002 05:00:50 -0400 (EDT) Received: (from bbb@localhost) by gaia.cc.gatech.edu (8.11.6/8.11.6) id g4D90nn06308; Mon, 13 May 2002 05:00:49 -0400 (EDT) Date: Mon, 13 May 2002 05:00:49 -0400 (EDT) Message-Id: <200205130900.g4D90nn06308@gaia.cc.gatech.edu> X-Authentication-Warning: gaia.cc.gatech.edu: bbb set sender to benjamin.wong@cc.gatech.edu using -f To: info-inventor-dev@oss.sgi.com In-reply-to: <002501c1f287$b20d3000$dedfdacf@sugarlan2pa6cc> (mattverona@ev1.net) Subject: Re: Segfault bug in SoBlinker From: Ben Wong References: <200205030838.EAA331452@bounce.cc.gatech.edu> <002501c1f287$b20d3000$dedfdacf@sugarlan2pa6cc> Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk >>>>> "Matt" == Matt Verona writes: Matt> Howdy Ben... I think that Inventor has always had this Matt> "feature"... i.e., you must always initialize the Inventor Matt> database by calling the static SoDB::init() method, before Matt> creating nodes, like SoBlinker, etc.... Matt> See page 36 of "The Inventor Mentor": Ah. Thanks for the help. (And thanks to all the other people who responded). You are right; the man page for SoDB is quite explicit that SoDB::Init() should be called before constructing any nodes. It doesn't appear that the man pages for any of the nodes mention their dependence on SoDB. It seems that such a critical relationship would warrant a few words, perhaps in the "See Also" section. Is there a place to submit bug reports for the documentation? Ben -- Benjamin Wong College of Computing and GVU benjamin.wong@cc.gatech.edu Georgia Institute of Technology Ph.D. Student Atlanta, Georgia 30332-0280 From owner-info-inventor-dev@oss.sgi.com Thu May 16 02:39:50 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4G9donC016195 for ; Thu, 16 May 2002 02:39:50 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4G9doS6016194 for info-inventor-dev-outgoing; Thu, 16 May 2002 02:39:50 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from faui45.informatik.uni-erlangen.de (root@faui45.informatik.uni-erlangen.de [131.188.34.45]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4G9dhnC016191 for ; Thu, 16 May 2002 02:39:45 -0700 Received: from faui90.informatik.uni-erlangen.de (postfix@faui90.informatik.uni-erlangen.de [131.188.39.4]) by faui45.informatik.uni-erlangen.de (8.9.1/8.1.49-FAU) with ESMTP id LAA20567 for ; Thu, 16 May 2002 11:40:12 +0200 (MET DST) Received: from sonata.informatik.uni-erlangen.de (faui90h.informatik.uni-erlangen.de [131.188.39.12]) by faui90.informatik.uni-erlangen.de (Postfix) with ESMTP id D32A0C1BD00 for ; Thu, 16 May 2002 11:40:04 +0200 (MES) Received: by sonata.informatik.uni-erlangen.de (Postfix, from userid 1001) id 6C04B3E7C0; Thu, 16 May 2002 11:40:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sonata.informatik.uni-erlangen.de (Postfix) with ESMTP id 662D53E7BF for ; Thu, 16 May 2002 11:40:11 +0200 (CEST) Date: Thu, 16 May 2002 11:40:11 +0200 (CEST) From: Gerd Sussner X-X-Sender: To: Subject: Re: Overlay Bugfix and $PREFIX-patch (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Sorry, I just resent it to Jonathan Lim, but may be any others are interested in too. Gerd ---------- Forwarded message ---------- Date: Thu, 16 May 2002 09:13:36 +0200 (CEST) From: Gerd Sussner To: Jonathan Lim Subject: Re: Overlay Bugfix and $PREFIX-patch > Your fix does this: > > glXGetConfig(XtDisplay(parent), vis, GLX_TRANSPARENT_INDEX_VALUE_EXT, &index); > overlaySceneMgr->setBackgroundIndex(index); > > setBackgroundIndex() sets the color that is used to clear the background in > color index mode. The default value is black (index 0) as described in the > SoSceneManager man page. I'm not sure if this is the same thing as > transparency. hi jonathan, as far as i understood the code, the overlay widget lies above the actual render area. to see anything in the render area, the overlay widget needs to be transparent by default (except you are drawing something in it, like the jackInTheBox :-) ). clearing the background means to fill the whole plane with one color. this means that filling the overlay plane with a non-transparent color (say black), you won't see anything from the render area, because it is covered by an opaque black plane. i hope this helps to diminish your doubts. gerd From owner-info-inventor-dev@oss.sgi.com Thu May 16 17:23:10 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4H0NAnC019440 for ; Thu, 16 May 2002 17:23:10 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4H0NAwH019439 for info-inventor-dev-outgoing; Thu, 16 May 2002 17:23:10 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from deliverator.sgi.com (deliverator.SGI.COM [204.94.214.10]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4H0N6nC019435 for ; Thu, 16 May 2002 17:23:06 -0700 Received: from kinabalu.csd.sgi.com (kinabalu.csd.sgi.com [130.62.73.96]) by deliverator.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id RAA05090 for ; Thu, 16 May 2002 17:23:36 -0700 (PDT) mail_from (jlim@kinabalu.csd.sgi.com) Received: (from jlim@localhost) by kinabalu.csd.sgi.com (SGI-8.9.3/8.9.3) id RAA55528; Thu, 16 May 2002 17:21:16 -0700 (PDT) From: Jonathan Lim Message-Id: <200205170021.RAA55528@kinabalu.csd.sgi.com> Subject: Re: Overlay Bugfix and $PREFIX-patch To: Gerd.Sussner@informatik.uni-erlangen.de (Gerd Sussner) Date: Thu, 16 May 2002 17:21:16 -0700 (PDT) Cc: info-inventor-dev@oss.sgi.com In-Reply-To: from "Gerd Sussner" at May 09, 2002 09:44:06 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Thu May 9 12:44:06 2002, Gerd.Sussner@informatik.uni-erlangen.de wrote: > > additionally, i added support for installing inventor different to > $IVROOT/usr/[bin|lib|man|share|demos], i.e. you can install inventor > now in $IVROOT/$PREFIX/[bin|lib|man|share|demos] > just change the PREFIX variable in make/ivcommondefs. > note, that only those files are patched which are actually installed, > e.g. apps/demos, but the mentor-examples are not patched so far. I don't see why this change is necessary. Assume IVROOT is /usr/people/somebody/workarea. The source files will be in $IVROOT/inventor. The results of the build will be in $IVROOT/usr. Once everything is done, you can simply cd to $IVROOT/usr, tar up everything there, and extract the archive anywhere else you please. Jonathan Lim _ Silicon Graphics _ Mountain View GPS Graphics Computer Systems CA, USA From owner-info-inventor-dev@oss.sgi.com Thu May 16 23:43:18 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4H6hInC024707 for ; Thu, 16 May 2002 23:43:18 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4H6hI1V024706 for info-inventor-dev-outgoing; Thu, 16 May 2002 23:43:18 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from faui45.informatik.uni-erlangen.de (root@faui45.informatik.uni-erlangen.de [131.188.34.45]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4H6hBnC024699 for ; Thu, 16 May 2002 23:43:12 -0700 Received: from faui90.informatik.uni-erlangen.de (postfix@faui90.informatik.uni-erlangen.de [131.188.39.4]) by faui45.informatik.uni-erlangen.de (8.9.1/8.1.49-FAU) with ESMTP id IAA13520; Fri, 17 May 2002 08:43:45 +0200 (MET DST) Received: from sonata.informatik.uni-erlangen.de (faui90h.informatik.uni-erlangen.de [131.188.39.12]) by faui90.informatik.uni-erlangen.de (Postfix) with ESMTP id 613ADC1BD00; Fri, 17 May 2002 08:43:37 +0200 (MES) Received: by sonata.informatik.uni-erlangen.de (Postfix, from userid 1001) id 8D4C33E7D4; Fri, 17 May 2002 08:43:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sonata.informatik.uni-erlangen.de (Postfix) with ESMTP id 873E53E7C5; Fri, 17 May 2002 08:43:43 +0200 (CEST) Date: Fri, 17 May 2002 08:43:43 +0200 (CEST) From: Gerd Sussner X-X-Sender: To: Jonathan Lim Cc: Subject: Re: Overlay Bugfix and $PREFIX-patch In-Reply-To: <200205170021.RAA55528@kinabalu.csd.sgi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Thu, 16 May 2002, Jonathan Lim wrote: > On Thu May 9 12:44:06 2002, Gerd.Sussner@informatik.uni-erlangen.de wrote: > > > > additionally, i added support for installing inventor different to > > $IVROOT/usr/[bin|lib|man|share|demos], i.e. you can install inventor > > now in $IVROOT/$PREFIX/[bin|lib|man|share|demos] > > just change the PREFIX variable in make/ivcommondefs. > > note, that only those files are patched which are actually installed, > > e.g. apps/demos, but the mentor-examples are not patched so far. > > I don't see why this change is necessary. Assume IVROOT is > /usr/people/somebody/workarea. The source files will be in $IVROOT/inventor. > The results of the build will be in $IVROOT/usr. Once everything is done, you > can simply cd to $IVROOT/usr, tar up everything there, and extract the archive > anywhere else you please. > well, if you set IVROOT to /usr/local, as it should be if the package is installed locally, the path to the binaries|libraries|man|share|demos would be /usr/local/usr/[bin|lib|man|share|demos]. this means every user who wants to use it must adapt its PATH, LD_LIBRARY_PATH and MAN_PATH. additionally, all the code which uses materials, textures or fonts look up first in /usr/share/data/[materials|textures|help]. that's the reason why i introduces the variable PREFIX (influenced by autoconf). for me, IVROOT should be the root directory of the system, i.e. usually / it would only be necessary to change it if you compile and install it on a partition which is mounted via NFS by other clients, e.g. /export/usr/local -> /usr/local. the patch allows an administrator to install open inventor in a place where all users instantly participate (/usr/local/bin and /usr/local/lib are usually already in paths). additionally the patch do not change the current behaviour if you set PREFIX to /usr. gerd From owner-info-inventor-dev@oss.sgi.com Fri May 17 14:02:55 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4HL2tnC015957 for ; Fri, 17 May 2002 14:02:55 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4HL2tsO015956 for info-inventor-dev-outgoing; Fri, 17 May 2002 14:02:55 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from anacleto.cmp.loc ([217.172.66.2]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4HL2QnC015951 for ; Fri, 17 May 2002 14:02:53 -0700 Received: from anacleto.cmp.loc (apache@localhost) by anacleto.cmp.loc (8.11.6/8.11.6) with ESMTP id g4HL2tV16545 for ; Fri, 17 May 2002 23:03:00 +0200 X-Authentication-Warning: anacleto.cmp.loc: apache owned process doing -bs Received: from there (unverified [195.82.129.40]) by finstro.cmp.es (DS:ModularMailMonger 2.1a1); Fri, 17 May 2002 23:02:35 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Daniel Solaz Organization: Lepidoptero Dot Com Message-Id: <200205171705.58507@que.te.den.dos.bellotas> To: Subject: Re: Overlay Bugfix and $PREFIX-patch Date: Fri, 17 May 2002 17:09:11 +0200 X-Mailer: KMail [version 1.3.1] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Friday 17 May 2002 08:43 Gerd Sussner wrote: > On Thu, 16 May 2002, Jonathan Lim wrote: > > I don't see why this change is necessary. Assume IVROOT is... > well, if you set IVROOT to /usr/local, as it should be if... Supposing one wants to get a working OpenInventor FreeBSD port (I do), it would be easier if this was done as Gerd Sussner says. -Daniel From owner-info-inventor-dev@oss.sgi.com Mon May 20 04:32:30 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g4KBWUnC021804 for ; Mon, 20 May 2002 04:32:30 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g4KBWUT4021803 for info-inventor-dev-outgoing; Mon, 20 May 2002 04:32:30 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from FW1.dt.navy.mil (FW1.dt.navy.mil [192.5.27.135]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g4KBWQnC021800 for ; Mon, 20 May 2002 04:32:27 -0700 Received: by FW1.dt.navy.mil; id HAA14030; Mon, 20 May 2002 07:33:09 -0400 (EDT) Received: from unknown(130.46.225.16) by FW1.dt.navy.mil via smap (V5.5) id xma013744; Mon, 20 May 02 07:32:43 -0400 Received: from youngkmwnt (YoungKMWNT.dt.navy.mil [130.46.208.40]) by smtprelay.dt.navy.mil (8.9.3/8.9.3) with ESMTP id HAA26498 for ; Mon, 20 May 2002 07:32:42 -0400 From: "Kevin M. Young" To: Subject: Overlay Context Date: Mon, 20 May 2002 07:35:43 -0400 Message-ID: <000101c1fff2$7a26dba0$28d02e82@youngkmwnt> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk I am using an NVIDIA Quadro4 xgl graphics card and would like to be able to use it's hardware overlay context capabilities. I also have a fireGL3 graphics card and it uses 8 bit overlay planes and looks quite nice with open inventor. However, the NVIDIA Quadro4 xgl uses 16 bit overlay planes and I am not able, so far, to use overlay's with inventor. I thank you in advance for any help you may provide. Thanks, Kevin /***********************************************/ /* Kevin M. Young 301.227.5663 */ /* Software Engineer */ /* Dynamic Animation Systems */ /* mailto://kyoung@d-a-s.com */ /* http://www.d-a-s.com */ /* */ /***********************************************/