retrobits / son_of_hunkypunk

Automatically exported from code.google.com/p/hunkypunk
22 stars 8 forks source link

bookmark file is occasionally corrupted #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. tap BACK while playing a game
2.
3.

What is the expected output? What do you see instead?

Bookmark file is corrupted.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dtver...@gmail.com on 31 Aug 2011 at 11:15

GoogleCodeExporter commented 9 years ago
When reproducing this during debugging I was able to see that the Nitfol.onStop 
was called before onPause was complete and was killing the process (due to 
System.exit) before the file output was complete in onPause.  Apparently these 
activity events are called in order, but asynchronously.

Original comment by dtver...@gmail.com on 31 Aug 2011 at 11:17

GoogleCodeExporter commented 9 years ago
fixed in rev e6f6ad9575c2:
Cleanly exit interpreter always with ExitEvent & libdl unload.
Moved all file IO to native side to improve performance.

Original comment by dtver...@gmail.com on 2 Oct 2011 at 10:23