Windows bug

Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

Hi Eugene,

What are you using to display this picture? are you doing this using
your own application using widgets or are you using the picture viewer?
(although I shudder at the thought of opening 32768 pictures in the
picture viewer manually :slight_smile: ).

What version of Photon are you running? QNX?

Erick


Eugene A. Kislov <evkislov@asutp.yorp.yaroslavl.ru> wrote:

Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

Sorry,

Re-reading your question, you are doing this in code, the number you
are getting is the same as the MAX_INT size (see /usr/include/limits.h).
Is there anything in your code that may be exceeding this value?

Erick.


Eugene A. Kislov <evkislov@asutp.yorp.yaroslavl.ru> wrote:

Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

Erick Muis <emuis@qnx.com> wrote in message
news:8qqe28$542$2@nntp.qnx.com

Sorry,

Re-reading your question, you are doing this in code,

I would hope so… to actually sit down and do it manually 32768 times would
be… quite boring…
:slight_smile:

the number you
are getting is the same as the MAX_INT size (see /usr/include/limits.h).
Is there anything in your code that may be exceeding this value?

Erick.


Eugene A. Kislov <> evkislov@asutp.yorp.yaroslavl.ru> > wrote:
Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

Coulda been with scripts or something along those methods, mind you it would
be interesting if it was done manually :slight_smile:

Gary Dike <gdike@idirect.ca> wrote:

Erick Muis <> emuis@qnx.com> > wrote in message
news:8qqe28$542$> 2@nntp.qnx.com> …
Sorry,

Re-reading your question, you are doing this in code,

I would hope so… to actually sit down and do it manually 32768 times would
be… quite boring…
:slight_smile:

the number you
are getting is the same as the MAX_INT size (see /usr/include/limits.h).
Is there anything in your code that may be exceeding this value?

Erick.


Eugene A. Kislov <> evkislov@asutp.yorp.yaroslavl.ru> > wrote:
Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

Erick Muis <emuis@qnx.com> wrote in message
news:8qt54s$mm0$2@nntp.qnx.com

Coulda been with scripts or something along those methods, mind you it
would
be interesting if it was done manually > :slight_smile:

Interesting? I thought it’d be kinda boring…
click click click… “1”… click click click… “2”…

Gary Dike <> gdike@idirect.ca> > wrote:

Erick Muis <> emuis@qnx.com> > wrote in message
news:8qqe28$542$> 2@nntp.qnx.com> …
Sorry,

Re-reading your question, you are doing this in code,

I would hope so… to actually sit down and do it manually 32768 times
would
be… quite boring…
:slight_smile:

the number you
are getting is the same as the MAX_INT size (see
/usr/include/limits.h).
Is there anything in your code that may be exceeding this value?

Erick.


Eugene A. Kislov <> evkislov@asutp.yorp.yaroslavl.ru> > wrote:
Hi, all!
We have an interesting situation. We make follow sequence in Qnx
window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and
window
don’t close.
Is there anybody, who solve this problem.

Hello, Gary and Erick

Lets Me say some words.

About problem. There is a SCADA. When operator work with it, they switch
diagrams and 32767 windows will be open and close for approximately 2
week. The SCADA work from 0,5 to 1,5 year in normal conditions (without
reboot). As You see, 32767 - is very small quantity.

About solution. Do You know solution of this problem?

Eugene A. Kislov <evkislov@asutp.yorp.yaroslavl.ru> wrote:

Hello, Gary and Erick

Lets Me say some words.

About problem. There is a SCADA. When operator work with it, they switch
diagrams and 32767 windows will be open and close for approximately 2
week. The SCADA work from 0,5 to 1,5 year in normal conditions (without
reboot). As You see, 32767 - is very small quantity.

About solution. Do You know solution of this problem?

I think there is a new screen that can be downloaded from
/updates/wrt40/Alpha that fixes this.

It is NOT a released version of screen, but only an Alpha test
that fixes the above reported bug.

-David

Hi Eugene,

I’ve tried to do the same experiment. Results are the following:

with QNX Windows from April 1996 (in my opinion better than any newer
version), the window id becomes sub-zero (from 32767 to -32767, then -32766)
but it is possible to close it without any problem. Check if the id variable
can contain such numbers (e.g. if it is not unsigned int).

On the other hand QNX Windows is able to produce even worse behavior. I
doubt if it is able to run one year without any touch. Several time it also
happened, that application had falled down but its window had been still on
screen without any possibility to close it (usually if the window is big and
cursor is inside, screen sigsegv follows, therefore this is relevant only if
your window is smaller). Check whether your program is still running when
you have got the peculiar state.

May be, my advices are more desperate than wise.

Best regards
Andy

Eugene A. Kislov wrote:

Hi, all!
We have an interesting situation. We make follow sequence in Qnx window:
open window
show picture in window
close window

When we repeat it 32768 times, the window id become subzero and window
don’t close.
Is there anybody, who solve this problem.

“andy” <andy@microstep-hdo.sk> wrote in message
news:39ED4A16.2D4B2755@microstep-hdo.sk

Hi Eugene,

I’ve tried to do the same experiment. Results are the following:

with QNX Windows from April 1996 (in my opinion better than any newer
version), the window id becomes sub-zero (from 32767 to -32767,
then -32766)
but it is possible to close it without any problem. Check if the id
variable
can contain such numbers (e.g. if it is not unsigned int).

As mentioned previously, this problem has been fixed in the latest version,
which is 4.25B.