Index: [thread] [date] [subject] [author]
  From: Christoph Reichenbach <jameson@darmstadt.gmd.de>
  To  : Marcus Sundberg <mackan@stacken.kth.se>
  Date: Wed, 12 May 1999 12:17:31 +0200

Re: libggi troubles on sparc-sun-solaris2.5

Hi,

> > I'm having troubles with GGI on Solaris. The problem occurs when I try
> > to
> > run a program compiled for libggi (snapshot 05/11) over an ssh
> > connection:
> > ggiOpen() opens a visual (an empty X window), but does not return
> 
> If you get a window it means that ggiOpen succeeded and that at
> least one successful SetMode call was done.

Sorry; you're right: ggiSetMode() doesn't return.

> Ah, thanks for finding that one. What you see here is a problem with
> Solaris fprintf() not handling NULL pointer strings. The following
> patch will fix that:

Fixed. The debug messages display fine now:


LibGII: Debugging=255
LibGGI: Debugging=255
LibGGI: ggiOpen("display-x:saturn:3.0") called
LibGGI: Loading driver display-x:saturn:3.0
LibGGI: _ggiAddDL(392ab8, "display-x", "saturn:3.0", 0x1) called
LibGGI: _ggiLoadDL("/home/jameson/lib/ggi/display/X.so", 0x1) called
LibGGI: hand.handle=ef7c083c
LibGGI: hand.init=ef5c1730
LibGGI: hand.cleanup=ef5c1dbc
LibGGI: _ggiLoadDL returned 36720
LibGGI: X-target wants display saturn:3.0
LibGGI: X: has display saturn:3.0
LibGGI: X: has screen 0
LibGGI: _ggiAddDL(392ab8, "helper-mansync", "(null)", 0x0) called
LibGGI: _ggiLoadDL("/home/jameson/lib/ggi/display/mansync.so", 0x0)
called
LibGGI: hand.handle=ef7c14c4
LibGGI: hand.init=eebe104c
LibGGI: hand.cleanup=eebe10e0
LibGGI: _ggiLoadDL returned 36900
LibGGI: 0 = dlh->init(392ab8,"(null)",28538) - helper-mansync
LibGGI: X: Enabling use of XSHM extension
LibGGI: _GGI_mansync_init(): nrvisuals = 1
LibGII: Allocating input structure
LibGII: _giiEvQueueAllocate(384538) called
LibGII: Got queue_set: 15b658
LibGII: giiOpen adding "xwin", "", efffe540
LibGII: _giiLoadDL("xwin","(NULL)") called
LibGII: hand.handle=ef7c1778
LibGII: hand.init=eebc18a8
LibGII: _giiLoadDL returned 3b3778
LibGII: GIIdlinit(384538) called for input-xwin
LibGII: _giiEvQueueAdd(384538, efffde78) called
LibGII: _giiEvQueueSetup() called
LibGII: _giiEvQueueSetup alloced 3b3cb8
LibGII: Adding event type 1, size 116 at pos 0
LibGII: _giiEvQueueAdd(384538, efffde78) called
LibGII: Adding event type 1, size 116 at pos 1
LibGII: 0=dlh->init(384538,"",efffe540) - xwin
LibGII: _giiUpdateCache(384538) called
LibGII: Found fd: 3
LibGII: giiJoinInputs(0, 384538) called
LibGII: _giiUpdateCache(384538) called
LibGII: Found fd: 3
LibGGI: X-target fully up
LibGGI: 1 = dlh->init(392ab8,"saturn:3.0",0) - display-x
LibGGI: ggiOpen: returning 392ab8
LibGGI: Loading extra inputs/filters for display-x:saturn:3.0
LibGGI: Checking GGI_INPUT_DISPLAY_X_1 : (nil)
LibGGI: Checking GGI_INPUT_DISPLAY_X : (nil)
LibGGI: Checking GGI_INPUT : (nil)
LibGGI: ggiSetMode(392ab8, 320x200.V320x200.F1.[]) called
LibGGI: ggiSetMode: trying (vis 320x200 virt 320x200)
LibGGI: ggiSetMode: trying2 (vis 320x200 virt 320x200)
LibGGI: ggiSetMode: calling ef5c2e8c
LibGGI: _GGIbasiccheck: defgt = 0x4000808, tmgt = 0x0
LibGGI: Default visual -  ID: 0x20, depth: 8, class: 3
LibGGI: _GGIbasiccheck: defgt = 0x4000808, tmgt = 0x4000808
LibGGI: Default visual -  ID: 0x20, depth: 8, class: 3
LibGGI: _GGIbasiccheck: gt = 0x4000808
LibGGI: Visual -  ID: 0x20, depth: 8, class: 3
LibGGI: X: has window 0x4c00006
LibGGI: X: Resize
LibGGI: X: Creating shm image #0
LibGGI: X: shmat success at eeba0000.
LibGGI: X: XShmAttach failed - trying without shm
LibGGI: X: Buffer allocated 3b5cd0
LibGGI: X: Image #0 allocated
LibGGI: X GC allocated.
LibGGI: X: About to map
LibGGI: X: Window Mapped
LibGGI: X: copied default colormap into private colormap (4c00009)
LibGGI: X: Sync
LibGGI: X: Sync done
LibGGI: _ggiAddDL(392ab8, "generic-stubs", "", 0x1) called
LibGGI: _ggiLoadDL("/home/jameson/lib/ggi/default/stubs.so", 0x1) called
LibGGI: hand.handle=ef7c1aa8
LibGGI: hand.init=eeba24cc
LibGGI: hand.cleanup=eeba27d8
LibGGI: _ggiLoadDL returned 36928
LibGGI: 4 = dlh->init(392ab8,"",0) - generic-stubs
LibGGI: X: GGIsetmode: success in loading generic-stubs ()
LibGGI: _ggiAddDL(392ab8, "generic-color", "", 0x1) called
LibGGI: _ggiLoadDL("/home/jameson/lib/ggi/default/color.so", 0x1) called
LibGGI: hand.handle=ef7c1cb8
LibGGI: hand.init=eeae1294
LibGGI: hand.cleanup=eeae14c0
LibGGI: _ggiLoadDL returned 36950
LibGGI: 2 = dlh->init(392ab8,"",0) - generic-color
LibGGI: X: GGIsetmode: success in loading generic-color ()
LibGGI: _ggiAddDL(392ab8, "generic-linear-8", "", 0x1) called
LibGGI: _ggiLoadDL("/home/jameson/lib/ggi/default/linear_8.so", 0x1)
called
LibGGI: hand.handle=ef550074
LibGGI: hand.init=eea92740
LibGGI: hand.cleanup=eea9296c
LibGGI: _ggiLoadDL returned 36978
LibGGI: 4 = dlh->init(392ab8,"",0) - generic-linear-8
LibGGI: X: GGIsetmode: success in loading generic-linear-8 ()
LibGGI: ggiIndicateChange(392ab8, 0x1) called
LibGGI: ggiIndicateChange: 1 changed for 392ab8.
LibGGI: _GGI_mansync_start() (MANSYNC_CHILD) called.
LibGGI: ggiSetMode: set to frame 0, origin = {0,0}
LibGGI: ggiSetMode: set GC
LibGGI: ggiSetMode: success (vis 320x200 virt 320x200)
LibGGI: PAL_mapcolor(392ab8): 000000000000 -> 000000000000 (0)
LibGGI: PAL_mapcolor(392ab8): 000000000000 -> 000000000000 (0)
LibGGI: ggiSetMode: SetWriteFrame 0
LibGGI: ggiSetMode: frame address: 3b5cd0
LibGGI: ggiSetMode: FillScreen 0
LibGGI: GGI_X_flush(392ab8, 1) called
LibGGI: _ggi_x_do_blit(394878, 0x0, 320x200) called
LibGGI: GGI_X_flush(392ab8, 0) called
LibGGI: _ggi_x_do_blit(394878, 0x0, 320x200) called
Profiling Timer Expired

There's a delay between the last debug message and the SIGPROF; it
varies between
about one and several seconds (I think that I had it running for over a
minute once).

I'm not sure where the SIGPROF comes from, however...


> > ggi_visual_t openVisual()
> > {
> >   ggi_mode mode = {
> >     1, // 1 frame
> >     {320,200}, // resolution
> >     {320,200}, // virtual
> >
> >     {0,0},     // size in mm
> 
> Some good coding practise:
> You should use GGI_AUTO for virtual and size,

I thought that they should be used for minimum/preferred size?


Thanks for your help,

llap,
 CJR

Index: [thread] [date] [subject] [author]