info-inventor-dev
[Top] [All Lists]

Re: Solaris g++/gcc: crashes in Material Editor and Color Editor..

To: "Vincent S. Cojot" <coyote@xxxxxxxxxxxxxxx>
Subject: Re: Solaris g++/gcc: crashes in Material Editor and Color Editor..
From: Simon Ney <Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Sep 2002 18:53:06 +0200
Cc: info-inventor-dev@xxxxxxxxxxx
Organization: KOMMUNIKATOR
References: <1721.212.208.45.51.1031315574.squirrel@xxxxxxxxxxxxxxxxxxxx>
Reply-to: Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
Hi,

i have also ported inventor to solaris , but to solaris 7.
initial here were also a problem with textomat, but it is already fixed
here.
i dont know if the solution was in the textomat directory or in a
library.
below is the cvs diff of the textomat directory ... i believe the
problem was that sgi
want to iconv from UCS-2 to ISO8859-1 (default locale here).
this convertion pair is not available on solaris. if have overwritten
the
to-codeset with UTF-8 (as workaround).

here are my cvs diff of textomat (what about consolidating these diffs
with the one mails some days before ?):

NOTE:
        [1] possible only the following line is relevant (see line number in
the diff):
                char *nl_encord = "UTF-8";
        [2] i have replaced the two link scripts for the fonts with the one
after "cvs diffs snip"
        [3] local problem here is that the color cube of the "color editor" is
hidden by a other plane.
        [4] printing of transparent blending results in dithers version (screen
door) by the "off screen renderer"

i use:
        - Suns OpenGL on a "Ultra 1 Creator 3D"
        - gcc 3.2
        - solaris 7
(
 )imon

-----------------8<-----------------------------------------------------------------------
sney@bbiss7:920:{textomatic}# cvs diff -r ORIG_TAR
? textomatic
cvs server: Diffing .
Index: GNUmakefile
===================================================================
RCS file:
/var/opt/KUKisdn/cvs-repository/inventor/apps/demos/textomatic/GNUmakefile,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -r1.1.1.1 -r1.3
12a13,16
> #BBI
> LLDLIBS += -lXm -lXt -lX11 -lGL
> 
> 
Index: TextWrapper.c++
===================================================================
RCS file:
/var/opt/KUKisdn/cvs-repository/inventor/apps/demos/textomatic/TextWrapper.c++,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -r1.1.1.1 -r1.2
74a75
> #ifdef NOBBI
75a77,79
> #else
>     const char    *input        = inbuf;
> #endif
226a231
> #ifdef NOBBI
227a233,235
> #else
>       const char    *input= inbuf;
> #endif
Index: textomatic.c++
===================================================================
RCS file:
/var/opt/KUKisdn/cvs-repository/inventor/apps/demos/textomatic/textomatic.c++,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -r1.1.1.1 -r1.2
412a413
> #ifdef NOBBI
413a415,417
> #else
>     char *nl_encord = "UTF-8";
> #endif
414a419
> #ifdef NOBBI
415a421,423
> #else
>            fprintf( stderr, "textomatic: iconv_open error. (UCS-2)(%s)\n", 
> nl_encord);
> #endif
417a426
> #ifdef NOBBI
418a428,430
> #else
>            fprintf( stderr, "textomatic: iconv_open error. (UCS-2)(UCS-2)\n");
> #endif
-----------------8<-----------------------------------------------------------------------
#! /usr/bin/ksh

IVPREFIX="/vol01/vrml/inventor-proto/usr"

FROM_DIR="/usr/openwin/lib/X11/fonts/Type1"
TO_DIR="${IVPREFIX}/share/data/fonts"

mkdir -p ${TO_DIR}

ln -s ${FROM_DIR}/Helvetica.pfa         ${TO_DIR}/Helvetica
ln -s ${FROM_DIR}/Times-Roman.pfa       ${TO_DIR}/Times-Roman
ln -s ${FROM_DIR}/UTRG____.pfa          ${TO_DIR}/Utopia-Regular

-----------------8<-----------------------------------------------------------------------

"Vincent S. Cojot" wrote:
> 
> Hello All,
> 
> I have verified this morning that textomatic doesn't display any text on SUN
> (with libFL.a or with freetype2).. That's unfortunate but I guess I'll
> investigate.. On another subject, I have noticed that "Material Editor" and
> "Color Editor" don't work.. At least, they crash SceneViewer. Both crashes
> show pretty similar backtraces (see one below).. Has anyone seen something
> like that..? Can anyone give me a head start about where I should start
> investigating into the OpenInventor source (I'm new to that huge source so
> I'm not too sure about where to start).. Here's the backtrace I'm seeing
> with gcc-2.95.3/Solaris 8 02/02 and gdb-5.0 (I'm selecting a part of the
> object and then I choose "Material Editor" from the menu..):
> 
> PS: The "transform editor" -DOES- work and displays 5 "choosers" (no
> pictures, graphics, etc..) I guess that's normal but I've never used it.
> 
> (gdb) set arg /usr/local/demos/data/Inventor/windmill.iv
> (gdb) run
> Starting program: /usr/local/bin/SceneViewer
> /usr/local/demos/data/Inventor/windmill.iv
> warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074
> Reading input file...done.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xff2273fc in AddEventHandler () from /usr/lib/libXt.so.4
> (gdb) bt
> #0  0xff2273fc in AddEventHandler () from /usr/lib/libXt.so.4
> #1  0xff227388 in XtAddEventHandler () from /usr/lib/libXt.so.4
> #2  0xff2b03f0 in SoXtMouse::enable () from /usr/local/lib/libInventorXt.so
> #3  0xff2ba290 in _SoXtSlider::buildWidget () from
> /usr/local/lib/libInventorXt.so
> #4  0xff2b7940 in _SoXtColorSlider::constructorCommon () from
> /usr/local/lib/libInventorXt.so
> #5  0xff2b84a4 in _SoXtColorSlider::_SoXtColorSlider () from
> /usr/local/lib/libInventorXt.so
> #6  0xff2c6fb4 in SoXtMaterialEditor::buildSlidersForm () from
> /usr/local/lib/libInventorXt.so
> #7  0xff2c7640 in SoXtMaterialEditor::buildControls () from
> /usr/local/lib/libInventorXt.so
> #8  0xff2c7c0c in SoXtMaterialEditor::buildWidget () from
> /usr/local/lib/libInventorXt.so
> #9  0xff2c678c in SoXtMaterialEditor::constructorCommon () from
> /usr/local/lib/libInventorXt.so
> #10 0xff2c986c in SoXtMaterialEditor::SoXtMaterialEditor () from
> /usr/local/lib/libInventorXt.so
> #11 0x20130 in SoSceneViewer::processTopbarEvent ()
> #12 0xff23c374 in XtCallCallbackList () from /usr/lib/libXt.so.4
> #13 0xfea85c98 in BtnUp () from /usr/lib/libXm.so.4
> #14 0xfea0f8fc in _XmDispatchGadgetInput () from /usr/lib/libXm.so.4
> #15 0xfeaf0a64 in _XmMenuBtnUp () from /usr/lib/libXm.so.4
> #16 0xff23f32c in HandleActions () from /usr/lib/libXt.so.4
> #17 0xff23e234 in HandleSimpleState () from /usr/lib/libXt.so.4
> #18 0xff23dd34 in _XtTranslateEvent () from /usr/lib/libXt.so.4
> #19 0xff23dab8 in XtDispatchEventToWidget () from /usr/lib/libXt.so.4
> #20 0xff23d3a4 in _XtDefaultDispatcher () from /usr/lib/libXt.so.4
> #21 0xff23ced8 in XtDispatchEvent () from /usr/lib/libXt.so.4
> #22 0xff2e789c in SoXt::dispatchEvent () from /usr/local/lib/libInventorXt.so
> #23 0xff2e8334 in SoXt::mainLoop () from /usr/local/lib/libInventorXt.so
> #24 0x1ae0c in main ()
> (gdb) kill
> 
> Thanks for reading...
> 
> Vincent

-- 
---------------------------------------------------------------------
| Simon Ney, Bischofsweg 46 60598 Frankfurt/M Tel: ++49 69 68600055 |
| Email Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx Fax: ++49 69 68600052 |
---------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>