Re: Pbuffer Xerror.

New Message Reply Date view Thread view Subject view Author view

Brainval (brainval++at++ehome.encis.es)
Fri, 16 Jan 1998 23:20:56 +0300


About the Pbuffer Problem,

We have check all the points, but no one seems to give us
any change.

Rob Jenkins wrote:
>
> This is unusual, a common error with this kind of code is for glXMakeCurrent to
> fail with BadAlloc ( man glXMakeCurrent explains what triggers this ), that can
> be avoided by experimenting with the FBConfig you use to make the pbuffer ( try
> to use a smaller one ). This isn't the same thing, man XConfigureWindow lists
> the BadWindow error but I'm not sure if it's really applicable in this case as
> I know that sample code runs on a similar machine to yours.

We know, we have already made pbuffers work with performer, but not as
an pfWindow.
or PfPwindow.

> As a shot in the
> dark I notice that you only have 128M of RAM, could you look in /var/adm/SYSLOG
> and see if you ever run out of swap space around the time you run pbuffer ? If
> that is the problem then you should be able to make the example work by adding
> some swap ( see man swap ).

There is no messages in /var/adm/SYSLOG when pbuffer fails.

> Also, if that is the case then the other more
> complicated but better solution would be to use a smaller FBconfig, in
> pbuffer.c there's a section of code like:
>
> fbc = glXChooseFBConfigSGIX(dsp, 0, FBAttrs, &num);
> pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"Num matching FBConfigs on display 0x%p=%s
> screen %d is %d",
> dsp, XDisplayString(dsp), screen, num);
>
> pfGetPWinSize(pw, &xs, &ys);
> /* just use first FBConfig found */
> pfPWinFBConfig(pw, fbc[0]);
>
> Which while this is OK for demo purposes, it would be good to go through that
> list of FBconfigs ( returned by glXChooseFBConfigSGIX ) and find the one best
> suited to your app, I think that on iR machines the first one return has a huge
> accum buffer etc that you really don't need.
>
> On iR you could try adding logic like this after glXChooseFBConfigSGIX:
> /* find an FBconfig in list with RGB == 10 and Zbuffer > 1 */
> for(i = 0; i < num; i++)
> {
> glXGetFBConfigAttribSGIX(dpy, fbc[i], GLX_RED_SIZE, &a[0]);
> glXGetFBConfigAttribSGIX(dpy, fbc[i], GLX_GREEN_SIZE, &a[1]);
> glXGetFBConfigAttribSGIX(dpy, fbc[i], GLX_BLUE_SIZE, &a[2]);
> glXGetFBConfigAttribSGIX(dpy, fbc[i], GLX_ALPHA_SIZE, &a[3]);
> glXGetFBConfigAttribSGIX(dpy, fbc[i], GLX_DEPTH_SIZE, &a[4]);
> printf("r = %d, b = %d g = %d a = %d z = %d\n",
> a[0],a[1],a[2],a[3],a[4]);
> if(a[0] == 10 && a[1] == 10 && a[2] 10 && a[3] == 0 && a[4] > 1)
> { match = i; break; }
> }
>
> then use fbc[match] for the pbuffer.

> It may be simpler that all that, make sure you have the gfx patch 2326

I patchSG0001707 01/15/98 Patch SG0001707: WorkShop 2.6.4 Patch
I patchSG0001765 08/22/97 Patch SG0001765: dmedia_eoe and
dmedia_dev
                                  patch for 6.4
I patchSG0001775 01/15/98 Patch SG0001775: rollup - libfastm for
ido7.1
I patchSG0001776 01/15/98 Patch SG0001776: Origin FRU analyzer
fix
I patchSG0001788 01/15/98 Patch SG0001788: rollup - bug fixes
for libm,
                                  libmx, and libm43 - irix6.3 and
irix6.4
I patchSG0001809 01/15/98 Patch SG0001809: SpeedShop 1.1 Patch
I patchSG0001949 01/15/98 Patch SG0001949: c frontend patch on
7.1 /
                                  7.1.1
I patchSG0001975 01/15/98 Patch SG0001975: gmemusage security
hole
I patchSG0001984 01/15/98 Patch SG0001984: fixes to hwgfs
(mount, link
                                  counts, pathconf)
I patchSG0002014 01/15/98 Patch SG0002014: Multi-module system
                                  controller update
I patchSG0002024 01/15/98 Patch SG0002024: CacheFS bug fixes #1
I patchSG0002044 05/10/97 Patch SG0002044: rld rollup #7 for
6.2, 6.3,
                                  and 6.4: pthreads+security
I patchSG0002071 01/15/98 Patch SG0002071: imon fixes for
6.4-S2MP+O
I patchSG0002072 01/15/98 Patch SG0002072: MIPSpro 7.1 Compiler
                                  Back-end rollup #3
I patchSG0002078 01/15/98 Patch SG0002078: runpriv security hole
I patchSG0002091 01/15/98 Patch SG0002091: xlock security fix
I patchSG0002102 01/15/98 Patch SG0002102: c++ frontend rollup
#3 for
                                  7.1
I patchSG0002105 01/15/98 Patch SG0002105: NFS rollup #3 for
IRIX 6.4
I patchSG0002114 01/15/98 Patch SG0002114: IRIX 6.4 Networking
Commands
I patchSG0002145 01/15/98 Patch SG0002145: Mount command rollup
for
                                  IRIX 6.4
I patchSG0002149 01/15/98 Patch SG0002149: Automount command
rollup for
                                  IRIX 6.4
I patchSG0002173 01/15/98 Patch SG0002173: Hinv rollup for 6.4
I patchSG0002194 01/15/98 Patch SG0002194: IRIX development
environment
                                  updates
I patchSG0002207 01/15/98 Patch SG0002207: Add support for
Coyote,
                                  Diana to stacker program
I patchSG0002233 01/15/98 Patch SG0002233: commands security
fixes
I patchSG0002254 01/15/98 Patch SG0002254: Pthread library fixes
I patchSG0002258 01/15/98 Patch SG0002258: IRIX 6.4 AutoFS
Rollup #1
I patchSG0002294 01/15/98 Patch SG0002294: specfs fixes for IRIX
6.4
I patchSG0002299 01/15/98 Patch SG0002299: PCI Rollup
I patchSG0002325 01/15/98 Patch SG0002325: I/O Support

!!!!!!! INCLUDED !!!!!!!!
I patchSG0002326 01/15/98 Patch SG0002326: Onyx2 6.4 graphics
rollup #3
                                  including GVO and DVP2 support

I patchSG0002335 01/15/98 Patch SG0002335: xfsdump/xfsrestore
rollup
                                  for IRIX 6.4
I patchSG0002338 01/15/98 Patch SG0002338: OutBox security fixes
I patchSG0002344 01/15/98 Patch SG0002344: icrash rollup #3 for
IRIX
                                  6.4
I patchSG0002354 01/15/98 Patch SG0002354: 6.4 SCSI rollup
I patchSG0002370 01/15/98 Patch SG0002370: Availmon 2.1 for IRIX
6.4
I patchSG0002372 01/15/98 Patch SG0002372: XFS rollup #6 for
IRIX 6.4
I patchSG0002394 01/15/98 Patch SG0002394: libc fixes for
6.4-S2MP+O
I patchSG0002411 01/15/98 Patch SG0002411: fibrechannel large
                                  configuration and dual host update
I patchSG0002412 01/15/98 Patch SG0002412: Ioconfig update
I patchSG0002421 01/15/98 Patch SG0002421: 6.4 S2MP+OCTANE
IP27/BASEIO
                                  proms
I patchSG0002422 01/15/98 Patch SG0002422: libmp rollup
I patchSG0002440 01/15/98 Patch SG0002440: Onyx2 Diagnostics 6th
                                  release
I patchSG0002444 01/15/98 Patch SG0002444: 6.4.1 SCSI tape
[TDR4.1]
I patchSG0002500 01/15/98 Patch SG0002500: O32 code generator
fixes for
                                  MIPSpro 7.1 & 7.2
I patchSG0002560 01/15/98 Patch SG0002560: serial driver/IOC3
update
I patchSG0002600 01/15/98 Patch SG0002600: XLV 6.4 Rollup #2
I patchSG0002694 01/15/98 Patch SG0002694: 6.4 kernel rollup
I patchSG0002706 01/15/98 Patch SG0002706: IRIX 6.4 STREAMS
Rollup #3

> installed and that you have pf 2.2 MR, do:
>
> elfdump -L /usr/lib/libpf* | grep IVERSION

[35] IVERSION sgi4.0.440
[3] IVERSION sgi1.2
[32] IVERSION sgi2.1
[32] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[35] IVERSION sgi4.0.440
[34] IVERSION sgi2.1
elfdump: /usr/lib/libpfdb is a directory
[34] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[35] IVERSION sgi4.0.440
[34] IVERSION sgi4.0.440
[31] IVERSION sgi2.1
[31] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[34] IVERSION sgi4.0.440
[33] IVERSION sgi2.1
[33] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[34] IVERSION sgi4.0.440
[34] IVERSION sgi3.2
[34] IVERSION sgi4.0.440
[31] IVERSION sgi2.1
[33] IVERSION sgi3.2
[34] IVERSION sgi4.0.440
[34] IVERSION sgi4.0.440
[31] IVERSION sgi2.1
[31] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[34] IVERSION sgi4.0.440
[33] IVERSION sgi2.1
[33] IVERSION sgi3.0:sgi3.1:sgi3.2:sgi3.3
[34] IVERSION sgi4.0.440

>
> And you should see a list of thins like:
>
> [35] IVERSION sgi4.0.440
>
> where the 4.0 shows it's pf 2.2 and the 440 is the alpha number of 2.2 that you
> have - alpha 440 was the MR version. If none of this helps let me know.
>
> Cheers
> Rob

Thank You for your response but nothing seems to be wrong.

What else can we check ?

Hector Viguer.
Brainstorm Multimedia.
=======================================================================
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:56:34 PDT

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