frozen Xfree4.2

Hi everybody

First, I want to thank you for the binarie release of Qt. I think it’s a
great thing for QNX users.

Nevertheless, I have a problem to resolve before be fully operational with
Qt.
Regularly, my Xwindow fall in an freeze state. I only have the reset button
solution to restart the system (CTRL+ALT+BACKSPACE doesn’t work). There is
nothing special in /var/log/XFree86.0.log.

Is there a diagnostics procedure I have to do to isolate the problem ?
Do I have to recompile XFree42 to make it works correctly with my system ?
(Is the source package for QNX available in OpenQNX ? )

Thank in advance for your response !

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

some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

On Thu, 11 Apr 2002, Johan CARDON wrote:

Hi everybody

First, I want to thank you for the binarie release of Qt. I think it’s a
great thing for QNX users.

Nevertheless, I have a problem to resolve before be fully operational with
Qt.
Regularly, my Xwindow fall in an freeze state. I only have the reset button
solution to restart the system (CTRL+ALT+BACKSPACE doesn’t work). There is
nothing special in /var/log/XFree86.0.log.

Is there a diagnostics procedure I have to do to isolate the problem ?
Do I have to recompile XFree42 to make it works correctly with my system ?
(Is the source package for QNX available in OpenQNX ? )

Thank in advance for your response !

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


openqnx-developer mailing list
openqnx-developer=> 5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer

Le Jeudi 11 Avril 2002 20:14, vous avez écrit :

some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

Thanks for your response Frank but I hope that 512M of memory is enough.

I have a C&T 69000 chips for my video and I found on Xfree86.org that they
have been rewritten drivers for this chips and they must be considered in
work in progress. They encourage to use 3.3.6 version if we want stability.
(unfortunately Xfree3.3.6 doesn’t start on my machine).

However they give some advice :
advice my result
Disable Accel → no effect
Disable MMIO → Xserver doesn’t start
reduce clock → (I RTFM to learn how to do that).

Another option is to use Qt3 under Xphoton.
All the examples compile fine but when I start one of them, all the widget
drawing are mixed. (two Play button instead of one Play and one Quit in
Tictactoe example) → unusable.
I will try with QT2. (enough for my needs).

Thanks.

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

On Fri, 12 Apr 2002, Johan CARDON wrote:

Le Jeudi 11 Avril 2002 20:14, vous avez écrit :
some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

Thanks for your response Frank but I hope that 512M of memory is enough.

that should be enough. I have 128M on my machine (S3 Salvage), never
had a problem. my apps may not as memory hungry, but 512M should
definitely be enough.

I have a C&T 69000 chips for my video and I found on Xfree86.org that they
have been rewritten drivers for this chips and they must be considered in
work in progress. They encourage to use 3.3.6 version if we want stability.
(unfortunately Xfree3.3.6 doesn’t start on my machine).

Armin had 3.3.6 version up a while ago, but that only supports the
serial mouse. He may be able to help you more on that.

However they give some advice :
advice my result
Disable Accel → no effect
Disable MMIO → Xserver doesn’t start
reduce clock → (I RTFM to learn how to do that).

Another option is to use Qt3 under Xphoton.
All the examples compile fine but when I start one of them, all the widget
drawing are mixed. (two Play button instead of one Play and one Quit in
Tictactoe example) → unusable.
I will try with QT2. (enough for my needs).

Ask garry=mMf908IxFcw@public.gmane.org for the new Xphoton, which is xfree86 4.2 based,
it may work better.

Frank

Thanks.

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


openqnx-developer mailing list
openqnx-developer=> 5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer

BTW, have you read the
/opt/X11R6/lib/X11/doc/README.chips
and tried those suggestions?
it has very useful information about all supported Options,
troubleshooting tips and even contact info for the author.

Frank

On Fri, 12 Apr 2002, Johan CARDON wrote:

Le Jeudi 11 Avril 2002 20:14, vous avez écrit :
some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

Thanks for your response Frank but I hope that 512M of memory is enough.

I have a C&T 69000 chips for my video and I found on Xfree86.org that they
have been rewritten drivers for this chips and they must be considered in
work in progress. They encourage to use 3.3.6 version if we want stability.
(unfortunately Xfree3.3.6 doesn’t start on my machine).

However they give some advice :
advice my result
Disable Accel → no effect
Disable MMIO → Xserver doesn’t start
reduce clock → (I RTFM to learn how to do that).

Another option is to use Qt3 under Xphoton.
All the examples compile fine but when I start one of them, all the widget
drawing are mixed. (two Play button instead of one Play and one Quit in
Tictactoe example) → unusable.
I will try with QT2. (enough for my needs).

Thanks.

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


openqnx-developer mailing list
openqnx-developer=> 5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer

Le Vendredi 12 Avril 2002 18:05, Frank Liu a écrit :

On Fri, 12 Apr 2002, Johan CARDON wrote:
Le Jeudi 11 Avril 2002 20:14, vous avez écrit :
some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

Thanks for your response Frank but I hope that 512M of memory is enough.

that should be enough. I have 128M on my machine (S3 Salvage), never
had a problem. my apps may not as memory hungry, but 512M should
definitely be enough.

I have a C&T 69000 chips for my video and I found on Xfree86.org that
they have been rewritten drivers for this chips and they must be
considered in work in progress. They encourage to use 3.3.6 version if we
want stability. (unfortunately Xfree3.3.6 doesn’t start on my machine).

Armin had 3.3.6 version up a while ago, but that only supports the
serial mouse. He may be able to help you more on that.

However they give some advice :
advice my result
Disable Accel → no effect
Disable MMIO → Xserver doesn’t start
reduce clock → (I RTFM to learn how to do that).

Another option is to use Qt3 under Xphoton.
All the examples compile fine but when I start one of them, all the
widget drawing are mixed. (two Play button instead of one Play and one
Quit in Tictactoe example) → unusable.
I will try with QT2. (enough for my needs).

Ask garry=> mMf908IxFcw@public.gmane.org > for the new Xphoton, which is xfree86 4.2 based,
it may work better.

Frank

Thanks.

For information about my test :
XFREE42

  • I tried with another card (ATI 3D rage IIc with 4096 Kbytes of memory) →
    same problem so I think it’s not a hard problem.
  • I tried to reduce resolution and depth → idem

XFREE336

  • I have a PS/2 mouse so I will try with it with a serial mouse.

And I go read /opt/X11R6/lib/X11/doc/README.chips now

Thanks,

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

Subject: Re: Fwd: Re: [Openqnx-developer] frozen Xfree4.2
Date: Tue, 16 Apr 2002 18:50:06 +0200
From: Johan CARDON <johan.cardon=wMUr/XMoy4A@public.gmane.org>
To: Garry Turcotte <garry=mMf908IxFcw@public.gmane.org>, Frank Liu <liug@mama.indstate.edu>

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. > :slight_smile:
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 :frowning:

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 :slight_smile:.

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

Glad to hear you got it working.
Looks like the new Xphoton is very promising.
We can use the CVS feature of the sourceforge and create a openqnx
one, if Garry wants to open the Xphoton source.
Since XFree license is different from GPL, I guess you don’t
have to release the source.

Frank

On Tue, 16 Apr 2002, Johan CARDON wrote:

Subject: Re: Fwd: Re: [Openqnx-developer] frozen Xfree4.2
Date: Tue, 16 Apr 2002 18:50:06 +0200
From: Johan CARDON <johan.cardon=wMUr/> XMoy4A@public.gmane.org
To: Garry Turcotte <garry=> mMf908IxFcw@public.gmane.org> >, Frank Liu <> liug@mama.indstate.edu

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. > :slight_smile:
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 > :frowning:

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 > :slight_smile:> .

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


openqnx-developer mailing list
openqnx-developer=> 5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer

At 11:05 12.04.02 -0500, Frank Liu wrote:


On Fri, 12 Apr 2002, Johan CARDON wrote:

Le Jeudi 11 Avril 2002 20:14, vous avez écrit :
some other people had this random lockup/crash, it turned out
to be not enough memory. since qnx6 doesn’t really use swap,
you have to have enough physical memory.

Thanks for your response Frank but I hope that 512M of memory is enough.

that should be enough. I have 128M on my machine (S3 Salvage), never
had a problem. my apps may not as memory hungry, but 512M should
definitely be enough.


I have a C&T 69000 chips for my video and I found on Xfree86.org that they
have been rewritten drivers for this chips and they must be considered in
work in progress. They encourage to use 3.3.6 version if we want stability.
(unfortunately Xfree3.3.6 doesn’t start on my machine).

Armin had 3.3.6 version up a while ago, but that only supports the
serial mouse. He may be able to help you more on that.

I would buy a compatible video card … it takes less time and solves the
trouble immediately :slight_smile:

I’m using a ATI Rage 128 on a 196MB machine … QT2 and QT3 are working fine.

Armin

I would buy a compatible video card … it takes less time and solves the
trouble immediately > :slight_smile:

I’m using a ATI Rage 128 on a 196MB machine … QT2 and QT3 are working
fine.

Armin

Thank for the advice, I think, like you, that it is sometimes costless to buy
compatible hardware :slight_smile:. But when I boot with one CPU XFree4.2 works very fine
with my C&T 69000 and with an ATI rage II pci I have the same frozen state
while booting SMP kernel.
I have posted a news on qdn.public.qnxrtp.os about that because frozen state
happens when I use Photon too (but it is more randomly). Under XFree or with
XPhoton I’m sure to froze mys system with the drawlines Qt3 example.

At the moment, it is not very blocking for me because I could developed my
project using single CPU kernel (pthread library and QThread class works on
single CPU). But in futur I would like to use my two CPU (make -j2 is a
fantastic command :slight_smile:.

Thanks

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

At 16:31 24.04.02 +0200, Johan CARDON wrote:

I would buy a compatible video card … it takes less time and solves the
trouble immediately > :slight_smile:

I’m using a ATI Rage 128 on a 196MB machine … QT2 and QT3 are working
fine.

Armin

Thank for the advice, I think, like you, that it is sometimes costless to buy
compatible hardware > :slight_smile:> . But when I boot with one CPU XFree4.2 works very fine
with my C&T 69000 and with an ATI rage II pci I have the same frozen state
while booting SMP kernel.

Interesting …

I have posted a news on qdn.public.qnxrtp.os about that because frozen state
happens when I use Photon too (but it is more randomly). Under XFree or with
XPhoton I’m sure to froze mys system with the drawlines Qt3 example.

At the moment, it is not very blocking for me because I could developed my
project using single CPU kernel (pthread library and QThread class works on
single CPU). But in futur I would like to use my two CPU (make -j2 is a
fantastic command > :slight_smile:> .

PVM plus ‘parallel make’ works also fantastic :slight_smile:

Armin

At 16:31 24.04.02 +0200, Johan CARDON wrote:

I would buy a compatible video card … it takes less time and solves
the
trouble immediately > :slight_smile:

I’m using a ATI Rage 128 on a 196MB machine … QT2 and QT3 are working
fine.

Armin

Thank for the advice, I think, like you, that it is sometimes costless to
buy
compatible hardware > :slight_smile:> . But when I boot with one CPU XFree4.2 works very
fine
with my C&T 69000 and with an ATI rage II pci I have the same frozen state
while booting SMP kernel.

I too have a dually, and XFree 4.2 locks up under QNX RTP 6.1A when running
SMP on three different video cards for me: Mach64, S3Trio, MGA G200, that’s
all I have in the closet :slight_smile: BTW, the first two cards are PCI, and the G200
is AGP.

Like Johan if I boot single CPU XFree 4.2 is fine. Photon and everything
else seems to be working very well under SMP for me (if not for Johan).

Could there be some non-SMP safe code in the XFree86 4.2 hardware layer in
the QNX port.? XFree86 4.2 under Linux on the same hardware is working
well. Is XFree86 4.2 even multi-threaded? Any extra logging I could enable
to track this down?

Cheers,

Todd