Re: frozen Xfree4.2

Johan CARDON <johan.cardon-wMUr/[email protected]> Tue, 16 Apr 2002 18:57:24 +0200
Newsgroups gmane.os.qnx.openqnx.devel
Message-ID <[email protected]>
Subject: Re: Fwd: Re: [Openqnx-developer] frozen Xfree4.2
Date: Tue, 16 Apr 2002 18:50:06 +0200
From: Johan CARDON <johan.cardon-wMUr/[email protected]>
To: Garry Turcotte <[email protected]>, Frank Liu <[email protected]>

Le Lundi 15 Avril 2002 16:19, vous avez écrit :
> Johan CARDON wrote:
> > Le Vendredi 12 Avril 2002 19:52, vous avez écrit :
> >>I'll attach a new XPhoton (don't know if it'll work with 6.1
> >>I had to rebuild it on my 6.2 machine)
> >>It expects the X stuff in /usr/X11R6 so if you have 4.2 just
> >>make a link to /opt/X11R6
> >>
> >>As for the locking up, try adding the following to
> >>xc/programs/Xserver/os/io.c
> >>
> >>#if defined(__QNXNTO__)
> >>#define ETEST(err) (err == EAGAIN || err == EWOULDBLOCK || err == EINTR)
> >>#else
> >>...
> >>
> >>Let me know, how it goes...
> >
> > Garry,
> > I have copied all the /opt/X11R6 stuff under /usr/X11R6 plus XPhoton in
> > /usr/X11R6/bin and I start XPhoton with  :
> > /usr/X11R6/bin/XPhoton -once
> >
> > Here is my results :
> > It works better with Qt. The widgets are not damaged but I can't input
> > text with my keyboard.
>
> So, it draws correctly. :)
> As far as text input goes, the X server defaults to pointer focus
> so it needs at least one mouse event to know what window you're on.
> (If you don't move the mouse you won't get focus.)
> Also, if you're not using a us keyboard layout in Photon, you may
> have to manually load a mapping for Photon key caps to scan codes
> (see the attached file...)
>
> > The big problem is that my system always randomly hang when I use XPhoton
> > (like when I start the Xserver 4.2 alone).
> > I Think the reason is that I'm using the Frank LIU's Xfree4.2 binaries.
> > (same binaries, same effect)
>
> Try starting all your X stuff at priority 1 to see if they're just
> running ready.
> $ on -p1 sh
> $ XPhoton &
> $ xprograms &
> ...
> then you should still be able to start and run Photon programs...
>
> > So I have little questions :
> > Are you using Frank LIU's binary for your test ?
>
> yes and no, I've built my own using frank's source changes
>
> > Do I have to recompile my own Xfree4.2 distribution ? (if yes, How ?)
>
> You shouldn't have to, but you can download XFree86 4.2
> unpack it and 'make World'
>
> > Frank LIU says that on his system there isn't problem. I will configure
> > another PC in my labs with a minimal QNX6.1A install to continue test.
> >
> > Thanks

Gary, Frank,

I have installed a system on another PC and run Qt3-designer (under new
XPhoton or under XFree86 4.2 without photon) WITHOUT hang. up It works better
under XFree than under XPhoton (always keystroke problem).

I have re-installed from zero a system on my development machine. This
machine hang without Qt3 or XFree4.2. Just after installing I start network
configuration and it's hang up.

So I think it's not Qt3 or XFree4.2 but a problem with my system ! What ?
infortunately, I don't known :-(

I used this machine for 4 months to developed a little PhAB application and
I've never had such problem.
A precision, it's a PICMG motherboard with two PIII. I have build my /.boot
with /boot/build/qnxbasesmp.build.
I think I will search and talk about that on qdn.public.qnxrtp and perhaps
recontact you later. (Or, perhaps you have a great solution :-).

Thanks for your help.
--
				Institut Albert Bonniot
Johan CARDON			Faculté de Medecine de Grenoble
Laboratoire IMAG/TIMC/GMCAO 	Domaine de la Merci
Tel: +33 (0)4 76 54 95 05	38706 La Tronche Cedex