mkulesh / microMathematics

microMathematics Plus - Extended visual calculator
GNU General Public License v3.0
566 stars 68 forks source link

Content of opened document fully removed if close app without saving results #62

Closed ghost closed 5 years ago

ghost commented 6 years ago

Its look like critical bug found on replacing source file if nothing saved on exit or closing app.

REPRODUCING:

  1. Download units_overview.mmt and save on device, check its file size (I just save it in /sdcard/documents folder)
  2. Run μMath+
  3. Open document /sdcard/documents/units_overview.mmt
  4. Run calculating and wait for completing
  5. Close app
  6. RESULT: File /sdcard/documents/units_overview.mmt rewrited by zero-bytes file!

μMath+ Version: latest autobuild (2.17.x)

mkulesh commented 6 years ago

Hi @Symbian9, many-many thanks for the problem report.

Unfortunately, I can not reproduce the problem on a real device (Xiaomi RN4, Android 6). Later, I will try it on different emulators. Could you give me more details that can help me to identify the problem:

I ask since the auto-save on exit is implemented synchronously (not a background job) and has no changes in this release. I think this problem is ether system-dependent or happens due to some bug in the new units calculation feature that prevents the successful auto-save.

mkulesh commented 6 years ago

Hi @Symbian9, I tryed to reproduce this case on different devices (Lenovo, Xiaomy, Nokia) and on emulators for all supported Adroid version. However, I still not be able to reproduce it. Still the problem reproducable on your device?

mkulesh commented 5 years ago

Closed since can not be reproduced.