Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline tomtit  
#1 Posted : 13 January 2022 20:39:53(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Eventually I have caught a bug that bothered me in a few latest versions of Smath.

critical_bug.sm (4kb) downloaded 24 time(s).


Try to delete the first number "4" in front of the ratio.

Step 1: Select it with the cursor.




Step 2: Press "Del", the "4" turns into a black square.



Step 3: Press "Del" once again. SM pops on "Critical error".

Edited by moderator 17 June 2022 15:49:56(UTC)  | Reason: Not specified

thanks 1 user thanked tomtit for this useful post.
on 14/01/2022(UTC)
Offline tomtit  
#2 Posted : 14 January 2022 00:06:39(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Jean,
It can't be doctored, it is not a calculation issue.
Smath Studio crashes at the moment you push "DEL" key to delete this number "4" or whatever else there.
Offline churichuro  
#3 Posted : 14 January 2022 01:31:57(UTC)
churichuro


Rank: Advanced Member

Groups: Registered
Joined: 27/03/2019(UTC)
Posts: 77
Mexico
Location: coah

Was thanked: 28 time(s) in 23 post(s)
I confirm the error
Offline uni  
#4 Posted : 14 January 2022 04:05:45(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,546
Man
Russian Federation

Was thanked: 1307 time(s) in 766 post(s)
Confirmed. I also came across it, but I didn't investigate it. SMath Studio 0.99.7921.69.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline overlord  
#5 Posted : 14 January 2022 07:54:58(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,159
Turkey

Was thanked: 526 time(s) in 352 post(s)
confirmed under linux.
same behavior.
Offline Davide Carpi  
#6 Posted : 14 January 2022 11:59:07(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,690
Man
Italy
Location: Italy

Was thanked: 1368 time(s) in 895 post(s)
Thank you, confirmed

Code:
System.IndexOutOfRangeException: Index out of matrix bounds.
   in SMath.Controls.MathPainter.PrepareForPaint(MathRegion region, PaintContext ctx, Term[] input, MathAnswer answer, Term[] units, Boolean inputDataVisibility, Int32 currentTermIdx, FontInfo font, Boolean focused, Single& middleLine, Single& baseLine)
   in SMath.Controls.MathRegion.(IGraphics , PaintEventOptions )
   in SMath.Controls.MathRegion.OnCommandSend(String value)
   in SMath.Controls.WorksheetEditor.(RegionBase , String )
   in SMath.Controls.WorksheetEditor.InsertManager(String value)
   in SMath.Controls.Worksheet.Insert(String value)
   in SMath.Controls.WorksheetEditor.KeyDown(KeyEventOptions e)
   in SMath.UI.Accessories.DesktopWorksheet.OnKeyDown(KeyEventArgs e)
   in System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   in System.Windows.Forms.Control.WmKeyChar(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Edited by user 14 January 2022 12:03:05(UTC)  | Reason: Thread title

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline overlord  
#7 Posted : 14 January 2022 16:59:14(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,159
Turkey

Was thanked: 526 time(s) in 352 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: tomtit Go to Quoted Post
Eventually I have caught a bug that bothered me in a few latest versions of Smath.

... end of it !

It didn't surprise me that Jean couldn't understand what the bug is.
thanks 1 user thanked overlord for this useful post.
on 14/01/2022(UTC)
Offline uni  
#8 Posted : 14 January 2022 17:32:56(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,546
Man
Russian Federation

Was thanked: 1307 time(s) in 766 post(s)
Jean, what you're trying to do here is destructive. You prevent users from helping developers improve the program, that is, you bring harm. You don't have to do that. This is not good.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 6 users thanked uni for this useful post.
on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 17/05/2022(UTC)
Offline uni  
#9 Posted : 14 January 2022 20:17:41(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,546
Man
Russian Federation

Was thanked: 1307 time(s) in 766 post(s)
Jean, in the exUSSR there was such a norm as forced rest. People who worked hard were forced to rest in a sanatorium. And their leaders, who allowed this, were punished. I think you need to go to a sanatorium and temporarily stop working here. I don't want to be punished and I can give you a rest.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 4 users thanked uni for this useful post.
on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 14/01/2022(UTC),  on 15/01/2022(UTC)
Offline overlord  
#10 Posted : 14 January 2022 22:04:25(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,159
Turkey

Was thanked: 526 time(s) in 352 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Basically up to SS 6179, Smath is an equation editor
working similar to Mathcad 11 and earlier, including program.
AFAIK, an option for script style [typical Kalkulator ...]
will manage the critical error demo bug.
Is it possible to combine both: part script style & equation editor ?
As well as accommodate both styles in program ?
Cheers ... Jean.

And yet another useless not related post again.
Unbelievable. Wow, just wow.
Such ignorance, such obstinate, such thick head...
I am out of speech right now.
thanks 3 users thanked overlord for this useful post.
on 14/01/2022(UTC),  on 15/01/2022(UTC),  on 17/05/2022(UTC)
Offline tomtit  
#11 Posted : 16 May 2022 18:06:43(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Unfortunately,
The "Critical Error on Del key action" was not fixed yet in the latest stable version.
Try to delete "g" by using DEL key.
oldbug.sm (3kb) downloaded 15 time(s).

Edited by user 16 May 2022 18:09:12(UTC)  | Reason: Not specified

Offline Andrey Ivashov  
#12 Posted : 18 May 2022 02:38:34(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,617
Man
Russian Federation

Was thanked: 1981 time(s) in 667 post(s)
Ok, will check asap.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 18/05/2022(UTC)
Offline Kenny Lemens  
#13 Posted : 17 June 2022 02:29:35(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 144
Man
United States
Location: Wisconsin

Was thanked: 67 time(s) in 42 post(s)
Greetings!

I can also confirm the existence of this issue ( "v0.99.7921.69" ). Upon investigation, I have (2) items:

  1) The program does not actually 'crash', the program is still running. Thus: you can recover from this bug without losing all your work!
      a) To recover from this error:
            1) On the " Unhandled exception has occurred ... Index was outside the bounds of the array" popup error message, Click on the button: 「Continue」
            2) 'UNDO' your last action, either via the menu bar: 「Edit」 -> 「 Undo」 or via keypress 「Ctrl」 + 「Z」
            3) Repeat steps #1 and #2 until you achieve a successful 'undo'.

  2) The elements of this error seem to require a grouping operator (e.g., Absolute Value, Parenthesis, Determinant, Square Root, Matrix) that is paired with a fraction/division operation, prepend this with a multiplication statement and you can duplicate the error. See screen capture below:


Below are a few statements I compiled; performing the double-delete on the integer '6' will throw the same error:
  doubleDEL_error.jpg


-Kenny Lemens, P.E.
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 17/06/2022(UTC)
Offline Kenny Lemens  
#14 Posted : 23 June 2022 17:31:02(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 144
Man
United States
Location: Wisconsin

Was thanked: 67 time(s) in 42 post(s)
Greetings,

I found another configuration that can trigger this error; if you declare/evaluate a variable, and then try to multiply that entire set: you get a syntax error. Now if you attempt to correct the statement by using the [DEL] to remove the evaluation, the error gets thrown (as shown below):

   [SMath]Critical_Error_Occured.jpg

The work around would be to use the [Backspace] to delete/correct the equation, or to copy/paste the terms into a new statement without syntax errors.


-Kenny Lemens, P.E.
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 23/06/2022(UTC)
Offline Andrey Ivashov  
#15 Posted : 22 July 2022 23:33:42(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,617
Man
Russian Federation

Was thanked: 1981 time(s) in 667 post(s)
Finally fixed in version 1.0.8238.
thanks 3 users thanked Andrey Ivashov for this useful post.
on 22/07/2022(UTC),  on 23/07/2022(UTC),  on 23/07/2022(UTC)
Offline salmawisoky  
#16 Posted : 13 April 2023 16:40:14(UTC)
salmawisoky

Rank: Newbie

Groups: Registered
Joined: 13/04/2023(UTC)
Posts: 2
Location: New York

Originally Posted by: Kenny Lemens Go to Quoted Post
Greetings,

I found another configuration that can trigger this error; if you declare/evaluate a variable, and then try to multiply that entire set: you get a syntax error. Now if you attempt to correct the Candy Crush statement by using the [DEL] to remove the evaluation, the error gets thrown (as shown below):

   [SMath]Critical_Error_Occured.jpg

The work around would be to use the [Backspace] to delete/correct the equation, or to copy/paste the terms into a new statement without syntax errors.


-Kenny Lemens, P.E.


I tried that .... still get the error
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.