MathRegion Critical Error on DEL key action

MathRegion Critical Error on DEL key action - 消息

#1 已发布: 2022/1/13 14:39:53
Igor Skarine

Igor Skarine

14个赞,共97个帖子。

组: User

Eventually I have caught a bug that bothered me in a few latest versions of Smath.

critical_bug.sm (3.85 KiB)已下载 1712 次。


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".

显示剧透

1位用户喜欢此帖子
Davide Carpi 2022/1/14 04:08:00
#2 已发布: 2022/1/13 18:06:39
Igor Skarine

Igor Skarine

14个赞,共97个帖子。

组: User

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.
#3 已发布: 2022/1/13 19:31:57
churichuro

churichuro

29个赞,共79个帖子。

组: User

I confirm the error
#4 已发布: 2022/1/13 22:05:45
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Confirmed. I also came across it, but I didn't investigate it. SMath Studio 0.99.7921.69.
Russia ☭ forever, Viacheslav N. Mezentsev
#5 已发布: 2022/1/14 01:54:58
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

confirmed under linux.
same behavior.
#6 已发布: 2022/1/14 05:59:07
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Thank you, confirmed

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)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 已发布: 2022/1/14 10:59:14
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Wrote

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.
1位用户喜欢此帖子
Alvaro 2022/1/14 12:39:00
#8 已发布: 2022/1/14 11:32:56
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

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
6位用户喜欢此帖子
Oscar Campo 2022/5/17 12:41:00, churichuro 2022/1/14 14:38:00, sergio 2022/1/14 15:05:00, overlord 2022/1/14 11:57:00, Alvaro 2022/1/14 12:39:00, fedeghi 2022/1/14 16:43:00
#9 已发布: 2022/1/14 14:17:41
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

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
4位用户喜欢此帖子
NDTM Amarasekera 2022/1/14 22:41:00, fedeghi 2022/1/14 16:43:00, overlord 2022/1/14 14:23:00, Alvaro 2022/1/14 15:55:00
#10 已发布: 2022/1/14 16:04:25
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

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.
3位用户喜欢此帖子
fedeghi 2022/1/14 16:45:00, NDTM Amarasekera 2022/1/14 22:42:00, Oscar Campo 2022/5/17 12:40:00
#11 已发布: 2022/5/16 12:06:43
Igor Skarine

Igor Skarine

14个赞,共97个帖子。

组: User

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 (2.25 KiB)已下载 1698 次。
#12 已发布: 2022/5/17 20:38:34
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Ok, will check asap.
1位用户喜欢此帖子
Davide Carpi 2022/5/18 04:42:00
#13 已发布: 2022/6/16 20:29:35
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85个赞,共181个帖子。

组: User

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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
1位用户喜欢此帖子
#14 已发布: 2022/6/23 11:31:02
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85个赞,共181个帖子。

组: User

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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
1位用户喜欢此帖子
Davide Carpi 2022/6/23 14:21:00
#15 已发布: 2022/7/22 17:33:42
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Finally fixed in version 1.0.8238.
3位用户喜欢此帖子
⚜ Kenny Lemens, P.E. ᵂᴵ 2022/7/22 17:41:00, João Felipe Seráfico Melo 2022/7/22 18:02:00, sergio 2022/7/23 05:37:00
#16 已发布: 2023/4/13 10:40:14
salmawisoky

salmawisoky

0个赞,共2个帖子。

组: User

Wrote

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
  • 有新帖
  • 无新帖