GNOME Bugzilla – Bug 762414
Wrong result
Last modified: 2018-05-22 11:57:08 UTC
Created attachment 321793 [details] wrong result if keynumber and enter are pressed at the same time Forwarding from Debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811503 --------------------------- Dear Maintainer, Doing a simple integer multiplication gave wrong result. I was trying to multiply 364*2 using arithmetic keyboard (at the righ side of a normal keyboard). Accidentally, after the "2", I have pressed "3" and "Enter" almost concurently. So the multiplication was 364*23 and the result was 728 (which is wrong). Later trying 364*2 gave 728 (correct). Also later, 364*23 resulted to 8372 (correct). I can not reproduce the error. Probably a timing bug. A screenshot was taken, which you probably do not need. I consider this bug important, because it affects the core functionality, which is to make correct calculations. --------------------------- by Evangelos Skarmoutsos <skarmoutsosv@gmail.com> I am adding a screencast here to show the issue. When I pressed the "enter" key for the result, I "accidentally" pressed "3+enter" at the same time. thanks regards Pedro Beja
I can confirm the problem on my end. I guess the code relies on the assumption that the formula didn't change after the calculation was done and is about to be displayed. Thanks a lot for reporting, I need to find the time to fix this but it is on the top of my TODO now.
Created attachment 371094 [details] [review] [PATCH] Prevent expression change between solve & history display
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-calculator/issues/47.