pfFog & forked Motif process

New Message Reply Date view Thread view Subject view Author view

Ray Twiddy (rltwiddy++at++ohio.neiddd.com)
Tue, 1 Oct 1996 09:18:08 -0400


PROBLEM:
Our Performer application crashes when using pfFog and the X-Window
server terminates. The application uses a Motif GUI containing a
glwMDrawingAreaWidget running in a separate forked process. There
are three channels but fogging is applied only to the main channel
(chan1). There is a post-draw OpenGL function for a HUD overlay
for chan1. The application runs successfully when the fogging is
turned off but when the fogging is turned on, it crashes after a
few seconds.

SYSLOG ERROR MESSAGE:
Types of Messages Selected: Critical, Error, Warning, Info
====================================================

  1 Sep 26 17:02:06 ohio unix: WARNING: mgras: CFIFO timeout
  1 Sep 26 17:02:06 ohio unix:
  1 Sep 26 17:02:06 ohio unix: WARNING: Graphics error
  1 Sep 26 17:02:06 ohio unix: irnode=88458b98
  1 Sep 26 17:02:06 ohio unix: gfxp=8d48de00, boundrn=88257718,
rnodep=8b1fe03c
  1 Sep 26 17:02:06 ohio unix: gfxp=8ba19a50, boundrn=882578d8,
rnodep=8c76f3b8
  1 Sep 26 17:02:06 ohio unix: gfxp=8facbdd8, boundrn=882577f8,
rnodep=8ed643f8
  1 Sep 26 17:02:06 ohio unix: gfxp=8bb81ebc, boundrn=88257868,
rnodep=8da8c36c
  1 Sep 26 17:02:06 ohio unix: active_rnode=8c76f3b8
  1 Sep 26 17:02:06 ohio unix: busy_dma:^Ibf070104/cc
  1 Sep 26 17:02:06 ohio unix: status:^I^Ibf070000/148
  1 Sep 26 17:02:06 ohio unix: fifo_status:^Ibf070004/78029ab
  1 Sep 26 17:02:06 ohio unix: gio_status:^Ibf070100/0
  1 Sep 26 17:02:06 ohio unix: rebus_sync:^Ibf05021c/2
  1 Sep 26 17:02:06 ohio unix: window:^I^Ibf045000/9e0
  1 Sep 26 17:02:06 ohio unix: hqpc:^I^Ibf046000/296
  1 Sep 26 17:02:06 ohio unix: flag_set:^Ibf070008/110100
  1 Sep 26 17:02:06 ohio unix: hq_config:^Ibf050000/7e86
  1 Sep 26 17:02:06 ohio unix: gio_config:^Ibf050114/765b900f
  1 Sep 26 17:02:06 ohio unix: re_status:^Ibf07c578/1
  1 Sep 26 17:02:08 ohio fatal IO error 131 (Connection
reset by peer) 1 Sep 26 17:02:08 ohio xdm: Server for display
:0 terminated unexpectedly: 2304

SOFTWARE:
IRIX 6.2, C++, IRIS Performer 2.0.2, RapidApp 1.2, and ViewKit 1.4.0
(Motif 1.2.4 and X11R6)

C++ CODE FRAGMENTS:
        ... in application process

        // Create an earth/sky model that draws sky/ground/horizon
        eSky1 = new pfEarthSky;
        eSky1->setMode(PFES_BUFFER_CLEAR, PFES_SKY_GRND);
        eSky1->setAttr(PFES_GRND_HT, -600.0f);
        eSky1->setAttr(PFES_GRND_FOG_TOP, -0.1f);
        eSky1->setAttr(PFES_HORIZ_ANGLE, 5.0f);
        eSky1->setColor(PFES_CLEAR, 0.0f, 0.0f, 0.5f, 1.0f);
        eSky1->setColor(PFES_SKY_TOP, 0.1f, 0.4f, 0.5f, 1.0f);
        eSky1->setColor(PFES_SKY_BOT, 0.0f, 0.0f, 0.5f, 1.0f);
        eSky1->setColor(PFES_GRND_NEAR, 0.0f, 0.05f, 0.1f, 1.0f);
        eSky1->setColor(PFES_GRND_FAR, 0.05f, 0.1f, 0.4f, 1.0f);
        eSky1->setColor(PFES_HORIZ, 0.1f, 0.2f, 0.5f, 1.0f);
        // create fog to simulate water density
        fog = new pfFog;
        fog->setFogType(PFFOG_PIX_LIN);
        fog->setColor(0.0f, 0.15f, 0.3f);
        fog->setRange(350.0f, 550.0f);
        eSky1->setFog(PFES_GRND, fog);
        ...
        eSky2 = new pfEarthSky;
        eSky2->setMode(PFES_BUFFER_CLEAR, PFES_FAST);
        Shared->chan2->setESky(eSky2);
        ...
        Shared->chan3->setESky(eSky2);

        ... in draw channel 1 callback

        if (Shared->envFlag)
        {
            Shared->chan1->setESky(eSky1);
            pfEnable(PFEN_FOG);
        }
        else
        {
            Shared->chan1->setESky(eSky2);
            pfDisable(PFEN_FOG);
        }
        // erase framebuffer and draw Earth-Sky model
        channel->clear();

HARDWARE:
Iris Audio Processor: version A2 revision 1.1.0
1 250 MHZ IP22 Processor
FPU: MIPS R4000 Floating Point Coprocessor Revision: 0.0
CPU: MIPS R4400 Processor Chip Revision: 6.0
On-board serial ports: 2
On-board bi-directional parallel port
Data cache size: 16 Kbytes
Instruction cache size: 16 Kbytes
Secondary unified instruction/data cache size: 2 Mbytes on Processor 0
Main memory size: 128 Mbytes
EISA bus: adapter 0
Integral Ethernet: ec0, version 1
Integral SCSI controller 1: Version WD33C93B, revision D
  CDROM: unit 4 on SCSI controller 1
  Disk drive: unit 3 on SCSI controller 1
Integral SCSI controller 0: Version WD33C93B, revision D
  Disk drive: unit 1 on SCSI controller 0
Graphics board: Maximum Impact/TRAM option card

Graphics board 0 is "IMPACT" graphics.
        Managed (":0.0") 1280x1024
        Product ID 0x0, 2 GEs, 2 REs, 4 TRAMs
        MGRAS revision 3, RA revision 5, RB revision 4
        HQ rev A, GE11 rev B, RE4 rev A, PP1 rev A,
        VC3 rev A, CMAP rev E, MC rev C
        19" monitor (id 0x1)

ANY SUGGESTIONS ON HOW TO CORRECT THIS PROBLEM WILL BE APPRECIATED!

-- 
Ray Twiddy                                                  |    /  ____/   /
NEI - Nomura Enterprise Inc.    rltwiddy++at++neiddd.com         |   /  /       /
14240-G Sullyfield Circle       Bus. (703) 818-1990      /  |  /  ___/    /
Chantilly, VA 20151-1661        FAX  (703) 818-7626     /     /  /       /
___________________________________________________  __/   __/ _____/ __/
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.