Author Topic: Is this a bug?  (Read 4840 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #15 on: September 09, 2020, 01:19:26 AM »
Even after a number of repeats, it does not happen.

Could you try inserting a cls here:
Code: [Select]
    a = ltrim rtrim Input ' per togliere caratteri da input tipo CR
    if a=0 then exit do
cls
    b = sqrt(a)

Nicola

  • Guest
Re: Is this a bug?
« Reply #16 on: September 10, 2020, 01:16:11 AM »
First of all thank you for the time you are dedicating to me ...
Unfortunately it also happens to me by entering CLS. I tried on both a 64bit and a 32bit.
See the attached file. I recorded the inputs until the weird characters come out.

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #17 on: September 10, 2020, 01:51:42 AM »
Hi Nicola,

Your mp4 seems to be blank.

But there is nothing obvious wrong with your program, and I don't think anyone here has encountered that kind of problem with console outputs. I can only suggest stripping down the program to find out more about what causes this bug on your system.

Nicola

  • Guest
Re: Is this a bug?
« Reply #18 on: September 10, 2020, 02:11:23 AM »
the video is compressed with x264. Try using a video player that supports it. I use MPC-HC

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #19 on: September 10, 2020, 02:51:59 AM »
Ok, mpc works.

jack

  • Guest
Re: Is this a bug?
« Reply #20 on: September 10, 2020, 03:06:05 AM »
@Nicola
I would like to help in determining what the problem is, what are the specs of your computer and OS?
I can't reproduce the problem on my PC, could you attach the exe that produces the problem?

Nicola

  • Guest
Re: Is this a bug?
« Reply #21 on: September 10, 2020, 04:10:33 AM »
@jack
see attachments.

As I wrote before, I tried both compiling for a 32 bit and for a 64 bit. In both cases there is the same drawback. The 32-bit I tried it on a 32-bit win7 operating system.
This is for 32bit

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #22 on: September 10, 2020, 06:40:10 AM »
Try this prog and see if there are any problems with it:

Code: [Select]
uses console
int i
double r
print "integer square roots" cr cr
for i=1 to 1000
  r=sqr(i)
  if frac(r)=0.0
    print i tab r cr
  endif
next
wait

It also demonstrates the reliability of frac()=0 to catch all the integer square roots :)

jack

  • Guest
Re: Is this a bug?
« Reply #23 on: September 10, 2020, 06:49:18 AM »
I confirm that the exe that Nicola posted produces the problem
@Nicola
does the problem also happen when you "Run program directly" ?

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #24 on: September 10, 2020, 09:19:46 AM »
Yes, I get that too. How did you compile it, Nicola? I've tried all the methods I could think of, but was unable to reproduce the bug.

Nicola

  • Guest
Re: Is this a bug?
« Reply #25 on: September 10, 2020, 11:12:29 AM »
@Jack
Yes, even when it runs directly.

@Charles
Reply #22 --> it is OK. FRAC () works fine, as I had already seen in my program. At this point I think that the problem comes from INPUT.
Also interesting is the use of "tab" and "cr" ... ;)

With Oxide. CTRL-F5 or CTRL-SHIFT-F5
I take o2 from github
« Last Edit: September 10, 2020, 11:45:10 AM by Nicola »

JRS

  • Guest
Re: Is this a bug?
« Reply #26 on: September 10, 2020, 12:29:54 PM »
OT

I tried to setup my Xfinity Flex stream box which is connected to an older LCD monitor without speakers. (have a sound bar) The setup program died after trying to optimize surroundasound for the HDMI signal.

Resolve was putting a newer monitor on it temporarily that had speakers to get through the setup.

Somehow this problem Nicola is having rings a similar bell.


Nicola

  • Guest
Re: Is this a bug?
« Reply #27 on: September 10, 2020, 12:57:52 PM »
@John
... I didn't quite understand what you mean, explain yourself better ...
a) am I using an old thing on a new pc? ...
b) am I using a new thing on an old pc?
c) ....?

Charles Pegge

  • Guest
Re: Is this a bug?
« Reply #28 on: September 10, 2020, 01:29:48 PM »
Nicola,
You can try eliminating the ltrim rtrim.
Also try removing input() completely and set a to a fixed value. (ctrl-c will terminate)

JRS

  • Guest
Re: Is this a bug?
« Reply #29 on: September 10, 2020, 03:13:04 PM »
c) Something is missing with your environment?