gpslogger icon indicating copy to clipboard operation
gpslogger copied to clipboard

Logger stops responding while in background

Open yrtimiD opened this issue 15 years ago • 11 comments

Steps: 1 Start logger 2 Switch to another app which uses GPS (gps navigator for example) 3 After while try to switch back to the logger by selecting it from notification area

In my case only black screen appears and after about minute android prompts me to force close non responding app. But, in notification area I still see GPS coordinated changes. Also, at some point logging to the file stops, so after killing app I see only partial file.

yrtimiD avatar Nov 25 '11 19:11 yrtimiD

I am having the exact same issue.

cmcoffman avatar Nov 29 '11 00:11 cmcoffman

I have exactly same issue but with some other circumstances. I run gpslogger, press home and lock device. After that I can't enter gpslogger, only black screen and not responding screen popup (force close, wait and report). My device is huawei U8650, Cyanogenmod 7.1.0

sipe avatar Jan 01 '12 21:01 sipe

What time and distance are you using for the updates? Is it something like 0 seconds (as frequently as possible)? If that's the case, try upping the frequency a bit to 1 or 3 or 5 seconds.

mendhak avatar Jan 08 '12 09:01 mendhak

Thank you will try. I was using 0 seconds, then reinstalled and left default value. For now it is working.

sipe avatar Jan 08 '12 10:01 sipe

Well this raises a good point too. I am going to disallow 0 second intervals :D

mendhak avatar Jan 08 '12 10:01 mendhak

The method in which I have rewritten logging should now still allow 0, so I have reinstated 0 seconds and will test this. I might still set it back to a minimum of 1 second before deploying to market.

mendhak avatar Jan 18 '12 21:01 mendhak

For me setting interval to 1 sec worked too, but one point each 1 sec isn't enough sometimes. Can you consider some milliseconds intervals?

yrtimiD avatar Jan 19 '12 09:01 yrtimiD

I spent today testing 0 seconds and the test was unsuccessful - using 0 second frequencies will still lock the app's UI. I will try 500 milliseconds next. It will be an experiment to see how low I can go. At some point you reach hardware/OS limitations on how fast the processing of the point can occur.

mendhak avatar Jan 19 '12 09:01 mendhak

If so, may be buffering and automatic raising and lowering intervals may help?

yrtimiD avatar Jan 19 '12 09:01 yrtimiD

I believe the culprit for the non-responsiveness was the way in which the files were being written. I had changed the file to be written using DOM which loads the entire file into memory. I have changed it back to the way it used to be - writing directly to disk. It is messy but it is faster.

I am now testing with 0,0 and it seems to be responsive. I am reasonably confident that the issue you were experiencing will go away with this commit. I will test this over the course of the day tomorrow to simulate real world scenarios.

Part of the problem is not knowing the full impact of changes being made, integration testing is not easy on GPSLogger.

mendhak avatar Jan 24 '12 21:01 mendhak

Addressed in 61d7fa810deda6782eb49fca030a69e1af6307ae and 1ad231e54e670ba9d983f35c77d748476317ada1

mendhak avatar Jan 24 '12 21:01 mendhak