fjlopezs / mytracks

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

mytracks not recording after being in the background #346

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I start to record a track. 
I leave the program in the background. 
2.After a few km I try to access mytracks but the program takes too long to 
resume the program and in many times craches

What is the expected output? What do you see instead?
I see a black screen for to long, and my fone says that the program is taking 
too time to responde and ask me if i whant to terminate the program.

What version of MyTracks are you using? On what version of Android? On what
phone?
I use mytracks v1.1.1 ou a Samsung Galaxy S on Android 2.2

Log Collector version: 1.1.0
Device model: GT-I9000
Firmware version: 2.2
Kernel version: 2.6.32.9
root@SE-S611 )
#1 Tue Oct 26 12:27:52 KST 2010
Build number: FROYO.BUJP7
Image()
02-19 17:26:42.078 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.098 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.114 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.133 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.168 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.475 V/InputDevice( 2462): ID[0]=0(0) Dn(0=>1)
02-19 17:26:42.477 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:42.492 I/Launcher( 2571): onWindowFocusChanged(false)
02-19 17:26:42.527 D/Launcher.Workspace( 2571): WorkspaceDraw: Workspace 
drawWallpaperImage()
02-19 17:26:42.684 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:42.684 V/InputDevice( 2462): ID[0]=0(0) Up(1=>0)
02-19 17:26:43.609 D/MyTracks(11926): TrackRecordingService.onLocationChanged
02-19 17:26:43.609 I/MyTracks(11926): Build query: SELECT * FROM tracks WHERE 
(_id=24) ORDER BY _id
02-19 17:26:43.633 I/ActivityManager( 2462): Start proc com.wssyncmldm for 
service com.wssyncmldm/.wssStartService: pid=13338 uid=1000 gids={3003, 1006, 
3002, 3001, 1015}
02-19 17:26:43.641 I/MyTracks(11926): Build query: SELECT * FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints)) ORDER BY _id
02-19 17:26:43.676 I/MyTracks(11926): Build query: SELECT _id FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints WHERE trackid=24)) ORDER BY _id
02-19 17:26:43.691 D/MyTracksLib(11926): 
MyTracksProviderUtilsImpl.insertTrackPoint
02-19 17:26:43.691 D/MyTracksProvider(11926): MyTracksProvider.insert
02-19 17:26:43.742 I/Zygote  (13338): Zygote: pid 13338 has INTERNET 
permission, then set capability for CAP_NET_RAW
02-19 17:26:43.742 I/Zygote  (13338): Zygote: pid 13338 has CALL PRIVILEGED 
permission, then set capability for CAP_SYS_ADMIN (21)
02-19 17:26:43.797 I/global  ( 2462): Default buffer size used in 
BufferedInputStream constructor. It would be better to be explicit if an 8k 
buffer is required.
02-19 17:26:43.816 I/DBG_WSS_DM(13338): [wssdmTask.java Line:128] 
smlTaskHandler SMLMSG_OS_INITIALIZED
02-19 17:26:43.832 I/DBG_WSS_DM(13338): [wssdmdb.java Line:2636] 
smldbDMffs_Init smldbDMffs_Init
02-19 17:26:43.862 I/DBG_WSS_DM(13338): [wssTelephonyData.java Line:131] 
getInstance PHONE_TYPE_GSM
02-19 17:26:43.863 I/DBG_WSS_DM(13338): [wssTelephonyData.java Line:131] 
getInstance PHONE_TYPE_GSM
02-19 17:26:43.867 I/DBG_WSS_TP(13338): [wssHttpAdapter.java Line:1722] 
getIsConnected connect status is false
02-19 17:26:43.867 I/DBG_WSS_DM(13338): [wssStartService.java Line:341] 
onCallStateChanged >>>>>>>>>>> CALL_STATE_IDLE
02-19 17:26:43.871 I/DBG_WSS_DM(13338): [wssTelephonyData.java Line:131] 
getInstance PHONE_TYPE_GSM
02-19 17:26:43.871 I/DBG_WSS_TP(13338): [wssHttpAdapter.java Line:1722] 
getIsConnected connect status is false
02-19 17:26:43.875 V/WifiProgressStore(13338): WifiProgressStore Created
02-19 17:26:43.879 I/DBG_WSS_DM(13338): [wssStartService.java Line:1413] 
ProtoIsWIFIConnected WiFi DisConnected
02-19 17:26:43.906 I/DBG_WSS_DM(13338): [wssdmTask.java Line:144] 
smlTaskHandler SMLMSG_PHONEBOOK_INITIALIZED
02-19 17:26:43.906 I/DBG_WSS_DM(13338): [wssdmTask.java Line:166] 
smlTaskHandler SMLMSG_DM_SYNCML_INIT
02-19 17:26:43.910 I/DBG_WSS_DM(13338): [wssStartService.java Line:1413] 
ProtoIsWIFIConnected WiFi DisConnected
02-19 17:26:43.910 I/DBG_WSS_DM(13338): [wssTargetAdapter.java Line:148] 
wssSystemApiGetIMSIFromSIM pszBuff: 268013100282902
02-19 17:26:43.914 I/DBG_WSS_DM(13338): [wssdmdevinfadapter.java Line:260] 
smldmSimInfoVerifyIMSI pNewIMSI=268013100282902, pOldIMSI=268013100282902
02-19 17:26:43.969 I/DBG_WSS_DM(13338): [wsLawmoDb.java Line:475] 
wsLawmoDbGetSimChangeAlert SIM Change Alert = false
02-19 17:26:43.969 I/DBG_WSS_DM(13338): [wssdminitadapter.java Line:379] 
_smldmInitAdpEXTInit Previous state is false
02-19 17:26:43.973 I/DBG_WSS_DM(13338): [wsLawmoDb.java Line:447] 
wsLawmoDbGetLawmoRegistration wsLawmoDbGetLawmoRegistration false
02-19 17:26:43.977 I/DBG_WSS_DM(13338): [wssdminitadapter.java Line:386] 
_smldmInitAdpEXTInit Device registration wasn't registered or MobileTracker is 
off
02-19 17:26:43.981 I/DBG_WSS_DM(13338): [wssdminitadapter.java Line:405] 
_smldmInitAdpEXTInit nStatus [0]
02-19 17:26:43.981 I/DBG_WSS_DM(13338): [wssdmUITask.java Line:358] 
smldmUIEvent SML_DM_EVENT_UI_IDLE_STATE :true
02-19 17:26:43.984 I/DBG_WSS_DM(13338): [wssStartService.java Line:1413] 
ProtoIsWIFIConnected WiFi DisConnected
02-19 17:26:43.984 I/DBG_WSS_DM(13338): [wssdminitadapter.java Line:235] 
_smldmInitAdpCheckNetworkReady NETWORK SERVICE is READY!!![0]
02-19 17:26:43.988 I/DBG_WSS_DM(13338): [wssdmpushAdapter.java Line:273] 
__smldmPushAdpExcuteResumeNoti nSessionSaveState:0, nNotiUiEvent:0, 
nNotiRetryCount0
02-19 17:26:43.988 I/DBG_WSS_DM(13338): [wssdmTask.java Line:190] 
smlTaskHandler SMLMSG_DM_SYNCML_INIT : Initialized
02-19 17:26:43.988 I/DBG_WSS_DM(13338): [wssdmpushAdapter.java Line:301] 
__smldmPushAdpExcuteResumeNoti Current NOTI NOT SAVED State. EXIT. EXIT.
02-19 17:26:45.685 W/PowerManagerService( 2462): Timer 0x3->0x3|0x0
02-19 17:26:46.625 D/MyTracks(11926): TrackRecordingService.onLocationChanged
02-19 17:26:46.625 I/MyTracks(11926): Build query: SELECT * FROM tracks WHERE 
(_id=24) ORDER BY _id
02-19 17:26:46.648 I/MyTracks(11926): Build query: SELECT * FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints)) ORDER BY _id
02-19 17:26:46.676 I/MyTracks(11926): Build query: SELECT _id FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints WHERE trackid=24)) ORDER BY _id
02-19 17:26:46.695 D/MyTracksLib(11926): 
MyTracksProviderUtilsImpl.insertTrackPoint
02-19 17:26:46.695 D/MyTracksProvider(11926): MyTracksProvider.insert
02-19 17:26:48.613 D/MyTracks(11926): TrackRecordingService.onLocationChanged
02-19 17:26:48.613 I/MyTracks(11926): Build query: SELECT * FROM tracks WHERE 
(_id=24) ORDER BY _id
02-19 17:26:48.645 I/MyTracks(11926): Build query: SELECT * FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints)) ORDER BY _id
02-19 17:26:48.664 I/MyTracks(11926): Build query: SELECT _id FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints WHERE trackid=24)) ORDER BY _id
02-19 17:26:48.680 D/MyTracksLib(11926): 
MyTracksProviderUtilsImpl.insertTrackPoint
02-19 17:26:48.680 D/MyTracksProvider(11926): MyTracksProvider.insert
02-19 17:26:50.773 D/MyTracks(11926): TrackRecordingService.onLocationChanged
02-19 17:26:50.773 I/MyTracks(11926): Build query: SELECT * FROM tracks WHERE 
(_id=24) ORDER BY _id
02-19 17:26:50.805 I/MyTracks(11926): Build query: SELECT * FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints)) ORDER BY _id
02-19 17:26:50.817 I/MyTracks(11926): Build query: SELECT _id FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints WHERE trackid=24)) ORDER BY _id
02-19 17:26:50.824 D/MyTracksLib(11926): 
MyTracksProviderUtilsImpl.insertTrackPoint
02-19 17:26:50.824 D/MyTracksProvider(11926): MyTracksProvider.insert
02-19 17:26:51.637 V/InputDevice( 2462): ID[0]=0(0) Dn(0=>1)
02-19 17:26:51.641 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:51.879 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:51.879 V/InputDevice( 2462): ID[0]=0(0) Up(1=>0)
02-19 17:26:52.481 V/InputDevice( 2462): ID[0]=0(0) Dn(0=>1)
02-19 17:26:52.484 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:52.664 V/WindowManager( 2462): Dsptch > Window{4810b7f8 StatusBar 
paused=false}
02-19 17:26:52.664 V/InputDevice( 2462): ID[0]=0(0) Up(1=>0)
02-19 17:26:52.809 D/MyTracks(11926): TrackRecordingService.onLocationChanged
02-19 17:26:52.809 I/MyTracks(11926): Build query: SELECT * FROM tracks WHERE 
(_id=24) ORDER BY _id
02-19 17:26:52.820 I/MyTracks(11926): Build query: SELECT * FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints)) ORDER BY _id
02-19 17:26:52.828 I/MyTracks(11926): Build query: SELECT _id FROM trackpoints 
WHERE (_id=(select max(_id) from trackpoints WHERE trackid=24)) ORDER BY _id
02-19 17:26:52.840 D/MyTracksLib(11926): 
MyTracksProviderUtilsImpl.insertTrackPoint
02-19 17:26:52.844 D/MyTracksProvider(11926): MyTracksProvider.insert
02-19 17:26:52.961 V/WindowManager( 2462): Dsptch > Window{481887a8 
StatusBarExpanded paused=false}
02-19 17:26:52.961 V/InputDevice( 2462): ID[0]=0(0) Dn(0=>1)
02-19 17:26:53.098 V/WindowManager( 2462): Dsptch > Window{481887a8 
StatusBarExpanded paused=false}
02-19 17:26:53.098 V/InputDevice( 2462): ID[0]=0(0) Up(1=>0)
02-19 17:26:53.902 V/InputDevice( 2462): ID[0]=0(0) Dn(0=>1)
02-19 17:26:53.906 V/WindowManager( 2462): Dsptch > Window{481887a8 Statu

This problem often occurs

Original issue reported on code.google.com by mail.to....@gmail.com on 19 Feb 2011 at 8:20

GoogleCodeExporter commented 9 years ago
I had similar problems on the Galaxy S. I updated to Froyo on the phone and to 
MyTracks Ver 1.1.2 Pre updates functionality was so bad I could not use the 
program. With these updates functionality is now vastly improved.

Still seems to be bugs in that:  you go to stop recording - the program is 
responding OK and you can stop the recording process - all seems normal. 
However on examination it has only recorded the first part of the route 
complete with finalised statistics, etc. It's as if the program was just 
stopped manually sometime previous without you telling the program to stop.. 

Original comment by bigya...@gmail.com on 11 Mar 2011 at 2:58

GoogleCodeExporter commented 9 years ago
This log looks fine.  Are you still seeing crashes?  If so please include the 
full log.

Original comment by sandordo...@google.com on 11 Apr 2011 at 4:07

GoogleCodeExporter commented 9 years ago
I still have trouble with a Galaxy S using Froyo and MyTracks 1.1.4  As 
mentioned above: you stop the recording process - however you find the last 
section of the route has not been recorded. It's like it's been stopped 
automatically sometime earlier. I can't prove it but it appears that the GPS 
lock and battery were OK when the route was terminated early. I would love to 
offer a log file but there is no way to know when this occurs.

How does the minimum accuracy setting work? If the accuracy is poor, does 
recording stop or does it just pause. Does it restart if the location accuracy 
improves? How does the user know the current status? 

If the program stops recording for some reason - could this be mentioned in the 
end marker or a message put on screen to the user till OK'ed. Eg "Recording 
stopped: by user", "Recording stopped: position accuracy unacceptable", 
"Recording stopped: battery almost empty" plus any other reasons the recording 
might be terminated.

I also notice if I try to record a track by walking around inside a building, 
where the GPS accuracy is hopeless but an acceptable wifi/tower position is 
detected and then stop the recording, the program will save a file for that 
track but it will contain no points. I can walk outside the building and still 
have an empty file as the GPS is yet to acquire a lock.

I assume the program thinks it can record a track (positional accuracy is OK) 
but fails too detect any positional change. In this case the user should be 
told the file is empty and that no positional change has been detected.

To complicate the issue further, I found on one occasion the GPS was not 
finding any satellites as demonstrated by running the Android app "GPS test". 
Rebooting the phone resolved this immediately. Is it possible for MyTracks to 
detect a crashed GPS driver??

I know this is all a bit vague but I'm trying to narrow it down. A bit more 
feedback to the user on whether the program is recording or paused and why 
would be helpful.

Original comment by bigya...@gmail.com on 12 Apr 2011 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 22 Jun 2012 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 23 Jun 2012 at 5:30

GoogleCodeExporter commented 9 years ago
Please reopen the bug if it is still happening in My Tracks 2.0.

If My Tracks is not recording, the My Tracks icon on the notification bar 
should disappear. Do you see the My Tracks notification bar icon when you 
suspect it has stopped recording?

min accuracy just ignores locations that do not meet its requirement.

My Tracks doesn't record wifi signal, only gps signal.

Original comment by jshih@google.com on 10 Sep 2012 at 7:28