Author Topic: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX  (Read 17387 times)

0 Members and 1 Guest are viewing this topic.

Offline Zeklandia

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +0/-0
    • View Profile
Apparently, when running the CAS OS on ANY NON-CAS CALCULATOR (regardless of CX) certain things do not work. For example, I made a simple Lua program to print 2+2. It prints 5.XXXXXXXXXXe-226 (or any other number similar to it) regardless of settings like Float number, angle unit (degree, radian), or auto vs. approximate answers. Which also explains why when I was playing CubeField, the highscore was also similar to 1.132458768087e+45 and Bloxorz was naming the levels in a similar manner (2.98721408137e-67 instead of 13). However, the Scratchpad and Math documents work fine. I do not know if the problem is caused by hardware differences between the CX and the CX CAS (I am using nLaunch to boot the CAS OS on my CX) or some ndless/Lua bug. This issue does not occur when using the CX OS 3.1 with ndless on the same calculator and seems to only effect Lua programs (and possibly nClock).
Zeklandia
Linux, Android, Java, C/C++ Developer.

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #1 on: May 21, 2013, 05:01:44 pm »
Lua does not care about the document settings in 3.1. Can you please paste the whole buggy lua code?
« Last Edit: May 21, 2013, 05:02:49 pm by excale »

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #2 on: May 21, 2013, 05:18:41 pm »
This only happened when I installed Ndless r7xx on my Touchpad noncas with nlaunch.
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #3 on: May 21, 2013, 06:30:42 pm »
Lua does not care about the document settings in 3.1. Can you please paste the whole buggy lua code?
Every single Lua script using numbers, it seems.
At first I thought it was a coincidence - or bad installed OS, but he is not alone : https://tiplanet.org/forum/viewtopic.php?f=16&t=11855
« Last Edit: May 21, 2013, 06:32:04 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #4 on: May 22, 2013, 01:49:00 am »
I guess we need more experimental data, to try and understand what's happening. At least:
* CX CAS calculator running the CAS OS normally (not through nLaunch), without Ndless;
* CX CAS calculator running the CAS OS through nLaunch, with Ndless;
* CX CAS calculator running the CAS OS normally, with Ndless;
* CX CAS calculator running the non-CAS OS through nLaunch, without Ndless;
* CX CAS calculator running the non-CAS OS through nLaunch, with Ndless.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #5 on: May 22, 2013, 03:01:39 am »
I experienced this exact problem too, though I didn't really realize that nlaunch caused this. I ran nSpaint and the coordinates were totally haywire. I hope this can be fixed :D
EDIT: FYI, I used a noncas calc running a CAS os, with ndless.
« Last Edit: May 22, 2013, 03:03:07 am by aeTIos »
I'm not a nerd but I pretend:

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #6 on: May 22, 2013, 09:08:49 am »
I have the same problem (nlaunched CAS OS on CAS Nspire, with the latest ndless).
Uninstalling ndless make the bug disappear.

So, this somewhat means this have nothing to do with the nspire itself (i'm not speaking about the OS here) being CAS or not. It seems to be either Ndless r7xx or a combinations of nLaunch and Ndless r7xx.
« Last Edit: May 22, 2013, 09:19:20 am by excale »

Offline Zeklandia

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 14
  • Rating: +0/-0
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #7 on: May 22, 2013, 09:08:59 pm »
It must be caused by nLaunch. Here is the code I was using:

Code: [Select]
function on.paint(gc)
        gc:drawString((2+2),0,20)
end

Result:
Code: [Select]
5.0##########e-226
This only happened when using nLaunch to load ANY OS (not just CAS ones) on my CX non-CAS calculator.
« Last Edit: May 22, 2013, 09:09:44 pm by Zeklandia »
Zeklandia
Linux, Android, Java, C/C++ Developer.

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #8 on: May 23, 2013, 12:50:48 am »
Result:
Code: [Select]
5.0##########e-226
This only happened when using nLaunch to load ANY OS (not just CAS ones) on my CX non-CAS calculator.

Aren't you using ndless (and possibly a recent version) too?

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #9 on: May 23, 2013, 04:21:16 pm »
To all people experiencing this bug:

Try to replace your ndless_resources.tns with this one (attached below), and tell me if lua knows how to do 2+2 again.
 :) (don't forget to reboot)

(if it still does not work, tell me where (and when) you got you nLaunch version)
« Last Edit: May 23, 2013, 04:26:43 pm by excale »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #10 on: May 29, 2013, 08:57:51 am »
Bumping the topic. I know that Excale did extra testing on his side, but still, we all need to understand the situation and fix the problem :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline AlexisVieira

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #11 on: May 29, 2013, 02:13:19 pm »
this happens with me too... and i think that is simple... the problem is the ndless r7xxx, i talked with Extended when it happened... i've also the nlaunch to have the CAS oS and the switcher and it worked fine when i have a ndless r6xxx on it... this is a problem that extended will fix he have time, as he said to me...
on http://ourl.ca/18757/345621 we can see "Lua programs with timers or scores may display absurd numbers" and that's the case... if we switch to other oS that not uses that ndless r7xxx the problem disappears...
« Last Edit: May 29, 2013, 02:24:21 pm by AlexisVieira »
I'm Portuguese, sorry bad English

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #12 on: May 30, 2013, 03:31:30 pm »
Did anyone tried the ndless_resources I have attached to my previous post?

(PS: The problems exists with ndless r6xx)
« Last Edit: May 30, 2013, 03:32:18 pm by excale »

Offline AlexisVieira

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #13 on: May 30, 2013, 03:37:16 pm »
Did anyone tried the ndless_resources I have attached to my previous post?

(PS: The problems exists with ndless r6xx)

I'm using the latest ndless r7xxx, should i try it or it's only to the ones that uses ndless r6xx?
well, i didn't know about that...
I'm Portuguese, sorry bad English

Offline excale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 103
  • Rating: +19/-1
    • View Profile
Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
« Reply #14 on: May 30, 2013, 03:46:54 pm »
If you have the problem, then try it. If you don't have the problem, and you are using nLaunch, tell me your exact config.