Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squad Leader app freezes when it's been running for some period of time #84

Open
dfoll opened this issue Feb 27, 2014 · 17 comments
Open

Comments

@dfoll
Copy link

dfoll commented Feb 27, 2014

noticed this at FedUC, i was told that kerry had an issue in on this as well, but i was looking for it and didn't see the issue.not sure if there may be some sort of memory leak, or what might be causing this weird behavior, but it seems that after letting the app run for some period of time it will just freeze. i will need to try to come up with more of a repro case on this one, as it seems that currently the period fluctuates and actually seems to be caused more by inactivity, than by how long the app was running... may want to change the label from "low" once there is a good repro case for this.

@csmoore
Copy link
Member

csmoore commented Feb 28, 2014

+1 - I noticed this intermittently after a few minutes of running with the emulator as well,

@csmoore
Copy link
Member

csmoore commented Feb 28, 2014

@kerryrobinson feel free to add to this issue if you have any more info

@csmoore csmoore added normal and removed low labels Feb 28, 2014
@joebayles
Copy link

@csmoore , @kerryrobinson , @dfoll Please continue to run SL and see if you can establish a pattern. Does it kill the tablet or the program? Could it also be network latency, number of layers or messages, device type, etc.?

@joebayles joebayles assigned dfoll and unassigned garysheppardjr Mar 7, 2014
@kerryrobinson
Copy link
Contributor

i'll try this some more when i'm back in the office next week and provide more detail on my environment, etc. from what i remember, inactivity may be the key... it's when i have it running and leave it for a few minutes, when i come back to the app it is frozen. i have to then force stop the app. i'm using an Asus Transformer Infinity (TF700T).

@garysheppardjr
Copy link
Contributor

I'm not sure this should be labeled "known issue." Yes, we know it's an issue, but "known issue" connotes that we have thrown up our hands and decided we can't fix or implement it.

@csmoore
Copy link
Member

csmoore commented Mar 31, 2014

Feel free to label (and change with impunity) these however you want that best captures how you want to categorize and filter these. Add a note if you like, but also label how you like.

@kerryrobinson
Copy link
Contributor

To summarize my findings today: i tested this on my phone (HTC One) and tablet (Asus TF700T). So far the app doesn't freeze on the phone. It does seem to freeze on the tablet after about 5 minutes. This occurs with labels on or off. Specifically, it's the map that freezes. Once this happens, i can still click on some of the buttons in the app and see them depressed. I can also see the heading, position and time elements updating at the bottom of the app, and i can see the position still being reported in other apps listening on the UDP port (vehicle commander). After i click a number of times, the screen goes black and i need to force stop the app.

@garysheppardjr
Copy link
Contributor

@kerryrobinson how consistently does it freeze on your tablet? Occasionally, most of the time, or all the time?

I saw this issue once, late last week on a Samsung Galaxy Tab 7 tablet. I have successfully run it for several minutes and several hours a few times since then without the map freezing, so I don't know how to reproduce it. The map does not freeze on my Samsung Galaxy S III phone.

@garysheppardjr garysheppardjr added high and removed high labels Mar 31, 2014
@csmoore
Copy link
Member

csmoore commented Mar 31, 2014

We might also need/want to know if you are using a web map or local (ex. TPK) maybe even the sample mapconfig.xml file used when it "goes pear-shaped." And if web, then maybe try with a local TPK. (Note: just throwing out ideas, since I know next-to-nothing about this)

@kerryrobinson
Copy link
Contributor

@csmoore , good point. It happens consistently. I use local data (TPKs of topo, imagery and scanned which i've kept from the previous released version of SL). My mapconfig.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<mapconfig name="test map">
     <layers>
        <layer name="Topographic" visible="true" type="TiledCacheLayer" basemap="true">
            <datasetpath>file:///mnt/sdcard/SquadLeader/Data/Topographic.tpk</datasetpath>
        </layer>
        <layer name="Imagery" visible="false" type="TiledCacheLayer" basemap="true">
            <datasetpath>file:///mnt/sdcard/SquadLeader/Data/Imagery.tpk</datasetpath>
        </layer>
        <layer name="Topographic" visible="false" type="TiledCacheLayer" basemap="true">
            <datasetpath>file:///mnt/sdcard/SquadLeader/Data/ScannedMaps.tpk</datasetpath>
        </layer>
     </layers>
    <initialextent>
        <anchor>
            <x>7842690</x>
            <y>4086500</y>
        </anchor>
        <scale>288895.277144</scale>
        <rotation>0</rotation>
    </initialextent>
     <extensions>
    </extensions>
</mapconfig>

@kerryrobinson
Copy link
Contributor

i'll try changing the basemap to one of the others (i'm usually using the topo basemap), and i'll try using online services to see if it still freezes.

@kerryrobinson
Copy link
Contributor

I can confirm it still freezes with other local basemaps, and when using online services. Also, my tablet is running Android 4.2.1.

@csmoore
Copy link
Member

csmoore commented Mar 31, 2014

One more debugging type question (that may have already been answered, but just to make sure) for folks who have seen this: does this only happen when Military Symbols are being shown & pumped into the MessageProcessor, or does it just happen anytime scrolling around the background map?

I'm not sure if there is even any way (like an UI option) to not have the MessageProcessor message loop running to even test removing this to see if it is related to the problem.

@garysheppardjr
Copy link
Contributor

Here is the "releasable" description of this issue that I will put in the README (thanks to @kerryrobinson for crafting most of it):

On some devices, we have noticed that the Squad Leader application will freeze after a few minutes of inactivity. In this situation, the application should be stopped and then started again. This issue will be addressed in a future release.

kerryrobinson added a commit that referenced this issue Apr 14, 2014
@garysheppardjr
Copy link
Contributor

I thought I'd mention that I now get this issue consistently on a Samsung Galaxy Tab 7. The amount of time needed to freeze the app varies--from less than five minutes to almost an hour--but it always freezes eventually. I will see if I can track down the cause.

@kerryrobinson
Copy link
Contributor

Glad it can be reproduced consistently on another device.

@jrweakland
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants