weijiang8410 / mathdoku

Automatically exported from code.google.com/p/mathdoku
0 stars 0 forks source link

Crash when application left open on Saved Game list #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tested Revision 227:
I was playing with Mathdoku and had the saved game list open. I then switched 
to another application, did some other things on the phone for around 10 
minutes and then tried to go back to MathDoku, but it crashed.

I was able to reproduce shortly afterwards by repeating the steps.

I tried on another phone and was able to reproduce it. I tried on my HP 
Touchpad and wasn't able to reproduce it (but I didn't try that hard!)

Attached is an annotated log from the phone during this period

Original issue reported on code.google.com by em...@srlee.com on 9 Apr 2013 at 10:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by em...@srlee.com on 9 Apr 2013 at 10:34

GoogleCodeExporter commented 9 years ago
Good testing and good description of what is happening.

The log contains following message which is crucial:
    Unable to resume activity {net.cactii.mathdoku/net.cactii.mathdoku.GameFileList}: java.lang.NullPointerException: UsageLogging can not be retrieved if not instantiated before

The onResume of the GameFileList:
    protected void onResume() {
        UsageLog.getInstance();
        super.onResume();
    }

while in MainActivity:
    public void onResume() {
        UsageLog.getInstance(this);
                ...

I am not sure if I can reproduce your problem but I will fix the onResume 
method of the GameFileList anyway.

Original comment by paul.din...@gmail.com on 10 Apr 2013 at 6:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r231.

Original comment by paul.din...@gmail.com on 10 Apr 2013 at 8:11

GoogleCodeExporter commented 9 years ago
Tested Revision 231: Tested using same scenario as above - unable to reproduce 
crash

Original comment by em...@srlee.com on 11 Apr 2013 at 7:19