J-P-Hanafin / mytracks

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

crash when saving a track #554

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start recording a track.
2. Stop recording.
3. Press Save. The crash does not always happen.

What version of MyTracks are you using? On what version of Android? On what
phone?

MyTracks 1.1.9, but I've seen the crash on 1.1.8 too. Android 2.1 on Sony 
Ericsson X8.

Original issue reported on code.google.com by ezerot...@gmail.com on 29 Aug 2011 at 6:59

GoogleCodeExporter commented 8 years ago
Happened to me too yesterday, each time i saved a track, version 1.1.9 too..

Original comment by ase...@gmail.com on 30 Aug 2011 at 6:37

GoogleCodeExporter commented 8 years ago
It still crashes in 1.1.10.

Original comment by ezerot...@gmail.com on 14 Oct 2011 at 6:37

GoogleCodeExporter commented 8 years ago
Unfortunately the crash always happens now in 1.1.10. (4 crashes out of 4 
tries). I'm downgrading. :-(

Original comment by ezerot...@gmail.com on 17 Oct 2011 at 2:56

GoogleCodeExporter commented 8 years ago
Jimmy do you mind looking into this?
Exerot... can you send a log from 1.1.10?

Original comment by sandordo...@google.com on 17 Oct 2011 at 4:08

GoogleCodeExporter commented 8 years ago
Logcat attached.

Original comment by ezerot...@gmail.com on 17 Oct 2011 at 6:24

GoogleCodeExporter commented 8 years ago
Here is the unobfuscated stack trace.

 com.dsi.ant.exception.AntServiceNotConnectedException: ANT Interface error, ANT Radio Service not connected.
    at com.dsi.ant.AntInterface.boolean releaseInterface()(MT:1199)
    at com.google.android.apps.mytracks.services.sensors.ant.AntSensorManager.void onDestroy()(MT:146)
    at com.google.android.apps.mytracks.services.sensors.SensorManager.void shutdown()(MT:100)
    at com.google.android.apps.mytracks.services.TrackRecordingService.void access$7(com.google.android.apps.mytracks.services.TrackRecordingService)(MT:1004)
    at com.google.android.apps.mytracks.services.TrackRecordingService$ServiceBinder.void endCurrentTrack()(MT:1261)
    at com.google.android.apps.mytracks.MyTracks.void stopRecording()(MT:430)
    at com.google.android.apps.mytracks.MenuManager.boolean onOptionsItemSelected(android.view.MenuItem)(MT:63)
    at com.google.android.apps.mytracks.MyTracks.boolean onOptionsItemSelected(android.view.MenuItem)(MT:271)
    at android.app.Activity.onOptionsItemSelected(Activity.java:2285)
    at com.google.android.apps.mytracks.MapActivity.boolean onOptionsItemSelected(android.view.MenuItem)(MT:475)
    at android.app.Activity.onMenuItemSelected(Activity.java:2173)
    at com.google.android.apps.mytracks.MapActivity.boolean onMenuItemSelected(int,android.view.MenuItem)(MT:436)
    at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
    at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:525)
    at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
    at android.view.View.onTouchEvent(View.java:4233)
    at android.widget.TextView.onTouchEvent(TextView.java:6645)
    at android.view.View.dispatchTouchEvent(View.java:3763)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:968)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:968)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
    at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4370)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    at dalvik.system.NativeStart.main(Native Method)
 Unable to stop recording.
 java.lang.NullPointerException
    at com.google.android.apps.mytracks.services.sensors.ant.AntSensorManager.void onDestroy()(MT:151)
    at com.google.android.apps.mytracks.services.sensors.SensorManager.void shutdown()(MT:100)
    at com.google.android.apps.mytracks.services.TrackRecordingService.void access$7(com.google.android.apps.mytracks.services.TrackRecordingService)(MT:1004)
    at com.google.android.apps.mytracks.services.TrackRecordingService$ServiceBinder.void endCurrentTrack()(MT:1261)
    at com.google.android.apps.mytracks.MyTracks.void stopRecording()(MT:430)
    at com.google.android.apps.mytracks.MenuManager.boolean onOptionsItemSelected(android.view.MenuItem)(MT:63)
    at com.google.android.apps.mytracks.MyTracks.boolean onOptionsItemSelected(android.view.MenuItem)(MT:271)
    at android.app.Activity.onOptionsItemSelected(Activity.java:2285)
    at com.google.android.apps.mytracks.MapActivity.boolean onOptionsItemSelected(android.view.MenuItem)(MT:475)
    at android.app.Activity.onMenuItemSelected(Activity.java:2173)
    at com.google.android.apps.mytracks.MapActivity.boolean onMenuItemSelected(int,android.view.MenuItem)(MT:436)
    at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
    at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:525)
    at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
    at android.view.View.onTouchEvent(View.java:4233)
    at android.widget.TextView.onTouchEvent(TextView.java:6645)
    at android.view.View.dispatchTouchEvent(View.java:3763)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:968)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:968)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
    at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4370)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    at dalvik.system.NativeStart.main(Native Method)

Original comment by jshih@google.com on 18 Oct 2011 at 1:05

GoogleCodeExporter commented 8 years ago
Can you tell me more about your ANT+ setup. Are you using a Sony Xperia? Which 
ANT+ devices are you connecting to MyTracks? Thanks.

Original comment by jshih@google.com on 18 Oct 2011 at 1:19

GoogleCodeExporter commented 8 years ago
I use MyTracks on an Xperia X8. My HRM belt is part of my VDO Z2 bike set 
(watch + cadence sensor + speed sensor). MyTracks only detects (or used to 
detect) the HRM belt.

The ANT+ Demo and Bike Display applications are running fine on the device with 
all the sensors detected and displayed.

Original comment by ezerot...@gmail.com on 18 Oct 2011 at 6:59

GoogleCodeExporter commented 8 years ago
Here is a fix for the crash. But my ANT+ sensor still has trouble establishing 
the connection.

http://code.google.com/r/jshih-mytracks4/source/detail?r=f2455ff5ccd9dfbc12b1408
093f3e24534d2d8ea

Original comment by jshih@google.com on 18 Oct 2011 at 8:20

GoogleCodeExporter commented 8 years ago
Issue 609 has been merged into this issue.

Original comment by jshih@google.com on 18 Oct 2011 at 8:22

GoogleCodeExporter commented 8 years ago
Change LGTM but the clone does not have comments turned on.

Original comment by sandordo...@google.com on 18 Oct 2011 at 8:25

GoogleCodeExporter commented 8 years ago
Fix more null pointer errors in AntSensorManager
http://code.google.com/r/jshih-mytracks3/source/detail?r=244a0542bf63a77c3c7428a
22a286195c6108dd5#

Original comment by jshih@google.com on 16 Nov 2011 at 1:31

GoogleCodeExporter commented 8 years ago

Original comment by jshih@google.com on 18 Nov 2011 at 1:36

GoogleCodeExporter commented 8 years ago
In which version will this fix be released?

Original comment by will.sid...@gmail.com on 18 Nov 2011 at 7:56

GoogleCodeExporter commented 8 years ago
We just released version 1.1.11 to the Android Market. It has all the fixes. 
Let us know if there are still issues.

Original comment by jshih@google.com on 18 Nov 2011 at 10:17