[GH-ISSUE #45] RPN bug that resets the calculator (+ hypothesis on cause) #13

Closed
opened 2026-05-06 13:14:27 +02:00 by BreizhHardware · 9 comments

Originally created by @Overengined on GitHub (Oct 9, 2021).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/45

The bug in itself and how to reproduce it:

1.Enter numbers until you fill the memory.
2. Using the arrow keys, select the last entered number.
3. Using the erase key, delete all the numbers in the list, but do not go back to the input box at any time during this phase.
4. Once you've erased all the numbers in the list, check that no cursor can be found in the input box, if there is one, you must start again.
5. Press once the down arrow key so that the cursor appears on the input box.
6. Enter a number and press + , if you've done everything correctly, the calculator crashes and resets.

My hypothesis on why this happens and how it might be fixed:
I've observed that during the steps 4,5, and 6, a realy thin grey box appears on the top of the screen, as if the calculator would be trying to select a "ghost" item (the gray used is the same to highlight selected elements). I think that what happens, is that the calculator tries to do an operation on a selected element that doesn't exist, or at least doesn't have a value, and that causes the crash.
Another element that tends to show that my theory might be right is that, if you do step 6 but without doing an operation and instead simply pressing ok to add the number to the list, nothing abnormal happens.

small note : a similar issue was made by someone else on Omega (apoleon33) , he kindly allowed me t use the gif he made , it can be found here (be aware, it's a big file).

Originally created by @Overengined on GitHub (Oct 9, 2021). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/45 **The bug in itself and how to reproduce it:** 1.Enter numbers until you fill the memory. 2. Using the arrow keys, select the last entered number. 3. Using the erase key, delete all the numbers in the list, but do not go back to the input box at any time during this phase. 4. Once you've erased all the numbers in the list, check that no cursor can be found in the input box, if there is one, you must start again. 5. Press once the down arrow key so that the cursor appears on the input box. 6. Enter a number and press + , if you've done everything correctly, the calculator crashes and resets. **My hypothesis on why this happens and how it might be fixed:** I've observed that during the steps 4,5, and 6, a realy thin grey box appears on the top of the screen, as if the calculator would be trying to select a "ghost" item (the gray used is the same to highlight selected elements). I think that what happens, is that the calculator tries to do an operation on a selected element that doesn't exist, or at least doesn't have a value, and that causes the crash. Another element that tends to show that my theory might be right is that, if you do step 6 but without doing an operation and instead simply pressing ok to add the number to the list, nothing abnormal happens. small note : a similar issue was made by someone else on Omega (apoleon33) , he kindly allowed me t use the gif he made , it can be found [here](https://drive.google.com/file/d/1mjJ8CcKCCbunCUu42Pn9CC4DONb3mp6u/view?usp=sharing) (be aware, it's a big file).
BreizhHardware 2026-05-06 13:14:27 +02:00
  • closed this issue
  • added the
    fixed
    bug
    labels
Author
Owner

@Syycorax commented on GitHub (Oct 9, 2021):

Fmmpeg-ed the gif to mp4, the video is now way smaller

<!-- gh-comment-id:939281920 --> @Syycorax commented on GitHub (Oct 9, 2021): Fmmpeg-ed the gif to [mp4](https://user-images.githubusercontent.com/54723548/136656500-bef8e33b-1a55-41a3-aab4-933e3e854af0.mp4), the video is now way smaller
Author
Owner

@RedGl0w commented on GitHub (Oct 31, 2021):

image

<!-- gh-comment-id:955644430 --> @RedGl0w commented on GitHub (Oct 31, 2021): ![image](https://user-images.githubusercontent.com/43498612/139570884-a39d98e2-a5a9-42bd-9e7d-a185e18e6a9f.png)
Author
Owner

@Lauryy06 commented on GitHub (Oct 31, 2021):

Can I close this issue ?

<!-- gh-comment-id:955788992 --> @Lauryy06 commented on GitHub (Oct 31, 2021): Can I close this issue ?
Author
Owner

@Overengined commented on GitHub (Oct 31, 2021):

Can I close this issue ?

I don't think, since I don't have seen any hanges been done to the Upsilon repo yet, I think we shall wait.

<!-- gh-comment-id:955799803 --> @Overengined commented on GitHub (Oct 31, 2021): > Can I close this issue ? I don't think, since I don't have seen any hanges been done to the Upsilon repo yet, I think we shall wait.
Author
Owner

@Lauryy06 commented on GitHub (Nov 1, 2021):

It's done

<!-- gh-comment-id:956589910 --> @Lauryy06 commented on GitHub (Nov 1, 2021): It's done
Author
Owner

@shaunsingh commented on GitHub (Nov 2, 2021):

@Lauryy06 can you pull the changes into your fork (https://github.com/Lauryy06/Upsilon-RPN), its what's used for the submodule

<!-- gh-comment-id:957881819 --> @shaunsingh commented on GitHub (Nov 2, 2021): @Lauryy06 can you pull the changes into your fork (https://github.com/Lauryy06/Upsilon-RPN), its what's used for the submodule
Author
Owner

@Lauryy06 commented on GitHub (Nov 2, 2021):

Oh sorry, I modified the submodule but I forgot to push the changes. I'll do it as soon as possible, thanks for reminding me!

<!-- gh-comment-id:957887400 --> @Lauryy06 commented on GitHub (Nov 2, 2021): Oh sorry, I modified the submodule but I forgot to push the changes. I'll do it as soon as possible, thanks for reminding me!
Author
Owner

@Lauryy06 commented on GitHub (Nov 2, 2021):

This time it's really done.

<!-- gh-comment-id:958154040 --> @Lauryy06 commented on GitHub (Nov 2, 2021): This time it's really done.
Author
Owner

@apoleon33 commented on GitHub (Nov 3, 2021):

wait that was my issue lol

https://github.com/Omega-Numworks/Omega/issues/432

cool its finally solved ^^

<!-- gh-comment-id:959783481 --> @apoleon33 commented on GitHub (Nov 3, 2021): wait that was my issue lol https://github.com/Omega-Numworks/Omega/issues/432 cool its finally solved ^^
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#13
No description provided.