CompanyGateways / mytracks

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

DataHub causing android.view.ViewRoot$CalledFromWrongThreadException #424

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Not quite sure ...
2. Start my tracks
3. Start recording
4. Go to stats screen
--> Crash

Restarting the phone seems to temporarily solve the issue.

P04-15 14:53:44.679 E/AndroidRuntime(24633): FATAL EXCEPTION: 
trackDataContentThread
04-15 14:53:44.679 E/AndroidRuntime(24633): 
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread 
that created a view hierarchy can touch its views.
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.view.ViewRoot.checkThread(ViewRoot.java:2932)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.view.ViewRoot.invalidateChild(ViewRoot.java:642)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:668)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.view.ViewGroup.invalidateChild(ViewGroup.java:2511)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.view.View.invalidate(View.java:5279)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.widget.TextView.checkForRelayout(TextView.java:5528)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.widget.TextView.setText(TextView.java:2730)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.widget.TextView.setText(TextView.java:2598)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.widget.TextView.setText(TextView.java:2573)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.StatsUtilities.setText(StatsUtilities.java:94)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.StatsUtilities.setText(StatsUtilities.java:85)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.StatsUtilities.setAltitude(StatsUtilities.java:
103)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.StatsActivity.showLocation(StatsActivity.java:2
19)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.StatsActivity.onCurrentLocationChanged(StatsAct
ivity.java:265)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
com.google.android.apps.mytracks.TrackDataHub$6.run(TrackDataHub.java:912)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.os.Handler.handleCallback(Handler.java:587)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.os.Handler.dispatchMessage(Handler.java:92)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.os.Looper.loop(Looper.java:130)
04-15 14:53:44.679 E/AndroidRuntime(24633): at 
android.os.HandlerThread.run(HandlerThread.java:60)
04-15 14:53:44.687 W/ActivityManager(  123):   Force finishing activity 
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks

Original issue reported on code.google.com by sandordo...@google.com on 19 Apr 2011 at 10:26

GoogleCodeExporter commented 9 years ago

Original comment by rdama...@google.com on 30 Apr 2011 at 5:58

GoogleCodeExporter commented 9 years ago
Please review:
http://code.google.com/r/rdamazio-mytracks-staging1/source/detail?r=a8a113bfe5b9
3bd89ba42da71b8654cbb584c9fc

Original comment by rdama...@google.com on 30 Apr 2011 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by rdama...@google.com on 30 Apr 2011 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by rdama...@google.com on 30 Apr 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Merging.

Original comment by rdama...@google.com on 2 May 2011 at 8:42