MathRegion Critical Error on DEL key action

MathRegion Critical Error on DEL key action - Сообщения

#1 Опубликовано: 3 года назад
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 КиБ) скачан 123 раз(а).


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 3 года назад
#2 Опубликовано: 3 года назад
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 Опубликовано: 3 года назад
churichuro

churichuro

28 сообщений из 79 понравились пользователям.

Группа: User

I confirm the error
#4 Опубликовано: 3 года назад
Вячеслав Мезенцев

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

1 408 сообщений из 1 710 понравились пользователям.

Группа: 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 Опубликовано: 3 года назад
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: Moderator

confirmed under linux.
same behavior.
#6 Опубликовано: 3 года назад
Davide Carpi

Davide Carpi

1 418 сообщений из 2 874 понравились пользователям.

Группа: 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 Опубликовано: 3 года назад
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: 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 Diaz Falconi 3 года назад
#8 Опубликовано: 3 года назад
Вячеслав Мезенцев

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

1 408 сообщений из 1 710 понравились пользователям.

Группа: 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 3 года назад, churichuro 3 года назад, sergio 3 года назад, overlord 3 года назад, Alvaro Diaz Falconi 3 года назад, fedeghi 3 года назад
#9 Опубликовано: 3 года назад
Вячеслав Мезенцев

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

1 408 сообщений из 1 710 понравились пользователям.

Группа: 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 3 года назад, fedeghi 3 года назад, overlord 3 года назад, Alvaro Diaz Falconi 3 года назад
#10 Опубликовано: 3 года назад
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: 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 3 года назад, NDTM Amarasekera 3 года назад, Oscar Campo 3 года назад
#11 Опубликовано: 3 года назад
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 КиБ) скачан 119 раз(а).
#12 Опубликовано: 3 года назад
Andrey Ivashov

Andrey Ivashov

2 276 сообщений из 3 769 понравились пользователям.

Группа: Super Administrator

Ok, will check asap.
1 пользователям понравился этот пост
Davide Carpi 3 года назад
#13 Опубликовано: 3 года назад
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Вячеслав Мезенцев 3 года назад
#14 Опубликовано: 3 года назад
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 3 года назад
#15 Опубликовано: 3 года назад
Andrey Ivashov

Andrey Ivashov

2 276 сообщений из 3 769 понравились пользователям.

Группа: Super Administrator

Finally fixed in version 1.0.8238.
3 пользователям понравился этот пост
⚜ Kenny Lemens, P.E. ᵂᴵ 3 года назад, João Felipe Seráfico Melo 3 года назад, sergio 3 года назад
#16 Опубликовано: 2 года назад
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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений