Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Performing a particular mathematical operation caused the app to initially freeze and then crash #49

Open
kodeblacc opened this issue May 15, 2018 · 1 comment

Comments

@kodeblacc
Copy link

Expected behavior

The calculator should be able to perform calculating operations within it's limit without any hassle.

Actual behavior

When I tried to perform the operation 10^3 three times, the calculator initially froze and then eventually crashed when I tried pressing other inputs to abort the operation.

How to reproduce

  • launch the calculator
  • turn on fraction mode which is indicated by A/B on the top right of the calculator
  • try to perform the operation 10^3 three times and the app freezes on the third time.

PS: For single unit number eg 1-9, the app freezes the fourth time. Also this is only reproducible when the fraction mode is switched on.


  • Browser/App version: Ncalc+|| v 3.4.0
  • Operating system: Android 7.0

Recording Of The Bug

https://youtu.be/S5A8QxukLgw

@axkr
Copy link
Collaborator

axkr commented May 15, 2018

Maybe some time restricted operations like TimeConstrained used in the Symja console may help?

In this example the calculation is restricted to run max. 10 seconds:

>> TimeConstrained(1^3^3^3^3, 10)
$Aborted

1^3^3^3^3 is parsed as Power(1, Power(3,Power(3,Power(3,3)))) so the intermediate result of 3^3^3^3 gets to big.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants