Calculator freezes when attempting to evaluate many nested parentheses
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Reproduce the reported expression on Windows 10 with Calculator 11.2411.1.0, comparing 11 nested levels with 12 and a 13th parenthesis. Trace the calculator's expression-evaluation path from that reproduction; done means the nested expression evaluates without freezing when submitted with = or Enter.
Written by the indexing model from the issue text.
Description
Describe the bug
When evaluating an expression with 12 levels of nested parentheses, each level with two operators, if you have tried to add a 13th level of parentheses, the calculator freezes. With 11 levels, it works fine. (The number of levels of nested parentheses can be seen on the left parenthesis button)
Steps To Reproduce
- Enter in 1 + 1 / (2 + 1 / (1 + 1 / (2 + 1 / (1 + 1 / (2 + 1 / (1 + 1 / (2 + 1 / (1 + 1 / (2 + 1 / (1 + 1 / (2 + 1 / (1 + 1 / 1
- Try to add a 13th level of parenthesis
- Hit = or Enter
- Calculator freezes
Expected behavior
The expression would be evaluated without any issues.
Screenshots
Device and Application Information
- OS Build: Windows 10 Home build 19045.5427
- Architecture: 64-bit
- Application Version: 11.2411.1.0
- Region: en-US
- Dev Version Installed: None
Additional context
Requested Assignment
I'm just reporting this problem. I don't want to fix it.
- Dominant language
- C#
- Stars
- 31.1k
- Forks
- 5.8k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/calculator
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/calculator#2500 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
microsoft/calculator#2360 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
microsoft/calculator#2501 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/calculator#2498 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/calculator#2487 · 7 comments ·
All issues in microsoft/calculator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100