Closed GoogleCodeExporter closed 9 years ago
can you make sure your android avd targets the google apis, and not just the
android api?
http://code.google.com/android/add-ons/google-apis/maps-overview.html has tips.
Original comment by yanokwa
on 6 Jul 2011 at 6:20
i can't reproduce this bug (mac os x with collect 1.1.7 beta 2) with both kinds
of geopoint widgets.
if you are still having the problem, please copy and paste the log (at the
bottom of the ddms eclipse window) the actual crash. until we get that
crashlog, i'm marking this low priority.
Original comment by yanokwa
on 7 Jul 2011 at 3:18
Ok, i still haven't been able to fix this.
I'm running this on Windows 7 x64, ODK Collect 1.1.7 Beta 2
The emulator is using "Google APIs (Google Inc.) - API Level 12".
I've updated the SDK, the latest is "Android SDK Tools, revision 12"
I even went so far as to get my Google Maps signature and change the
android:APIkey in geopoint_layout.xml.
As much as I'm inclined to believe the error is based on my own inexperience
with the Eclipse/Mercurial/Android setup, I can't seem to find the problem.
I am able to start up the Google Maps application and push GPS coordinates into
the emulator. I am also able to successfully run other forms, save them, etc
without a problem. However, when the GeoPoint widget is launched, ODK crashes.
I've attached a copy of the XML form that causes the crash.
When not in debug mode, the emulator produces an alert that says:
"Sorry!
The application ODK Collect (process org.odk.collect.android) has stopped unexpectedly. Please try again.
Force close"
################################################
and finally, the DDMS log output from the moment the 'Record Location' button
is pressed:
07-07 17:29:08.591: INFO/ActivityManager(85): Starting: Intent {
cmp=org.odk.collect.android/.activities.GeoPointMapActivity } from pid 984
07-07 17:29:08.591: WARN/WindowManager(85): Failure taking screenshot for
(230x143) to layer 21015
07-07 17:29:12.330: DEBUG/dalvikvm(984): GC_CONCURRENT freed 2346K, 25% free
7681K/10183K, paused 4ms+4ms
07-07 17:29:14.893: DEBUG/dalvikvm(984): GC_CONCURRENT freed 263K, 24% free
7813K/10183K, paused 4ms+3ms
07-07 17:29:16.960: DEBUG/dalvikvm(984): GC_CONCURRENT freed 597K, 25% free
7675K/10183K, paused 4ms+4ms
07-07 17:29:16.960: WARN/CursorWrapperInner(984): Cursor finalized without
prior close()
07-07 17:29:16.980: WARN/CursorWrapperInner(984): Cursor finalized without
prior close()
07-07 17:29:18.610: WARN/ActivityManager(85): Launch timeout has expired,
giving up wake lock!
07-07 17:29:18.630: WARN/ActivityManager(85): Activity idle timeout for
ActivityRecord{409e47e0 org.odk.collect.android/.activities.GeoPointMapActivity}
07-07 17:29:19.110: DEBUG/dalvikvm(984): GC_CONCURRENT freed 208K, 23% free
7863K/10183K, paused 4ms+4ms
07-07 17:29:21.409: DEBUG/dalvikvm(984): GC_CONCURRENT freed 458K, 23% free
7878K/10183K, paused 4ms+4ms
07-07 17:29:23.379: DEBUG/dalvikvm(984): GC_CONCURRENT freed 224K, 21% free
8088K/10183K, paused 4ms+3ms
07-07 17:29:26.122: DEBUG/dalvikvm(984): GC_CONCURRENT freed 323K, 19% free
8269K/10183K, paused 4ms+3ms
07-07 17:29:28.500: DEBUG/dalvikvm(984): GC_CONCURRENT freed 652K, 20% free
8177K/10183K, paused 4ms+3ms
07-07 17:29:28.520: WARN/GpsLocationProvider(85): Duplicate add listener for
uid 10040
07-07 17:29:28.530: INFO/Maps.MyLocationOverlay(984): Request updates from gps
Original comment by mite...@gmail.com
on 7 Jul 2011 at 5:47
Attachments:
your log still doesn't have the information we need. when the application
crashes, your ddms logs will have bits of the stack trace that is red. it's the
parts before and after the red that we need.
Original comment by yanokwa
on 7 Jul 2011 at 5:57
sorry bout that:
07-07 18:09:28.776: INFO/Maps.MyLocationOverlay(679): Request updates from gps
07-07 18:09:33.917: DEBUG/dalvikvm(218): GC_EXPLICIT freed 176K, 6% free
6776K/7175K, paused 3ms+3ms
07-07 18:09:38.967: DEBUG/dalvikvm(281): GC_EXPLICIT freed 22K, 6% free
6325K/6663K, paused 3ms+3ms
07-07 18:09:44.057: DEBUG/dalvikvm(322): GC_EXPLICIT freed 45K, 6% free
6864K/7239K, paused 4ms+3ms
07-07 18:10:30.330: DEBUG/AndroidRuntime(679): Shutting down VM
07-07 18:10:30.330: WARN/dalvikvm(679): threadid=1: thread exiting with
uncaught exception (group=0x40014760)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): FATAL EXCEPTION: main
07-07 18:10:30.646: ERROR/AndroidRuntime(679): java.lang.RuntimeException:
Unable to resume activity
{org.odk.collect.android/org.odk.collect.android.activities.GeoPointMapActivity}
: java.lang.IllegalArgumentException: provider=network
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2227)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2255)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1769)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.access$1500(ActivityThread.java:122)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1002)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.os.Looper.loop(Looper.java:132)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.main(ActivityThread.java:4025)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
java.lang.reflect.Method.invokeNative(Native Method)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
java.lang.reflect.Method.invoke(Method.java:491)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
dalvik.system.NativeStart.main(Native Method)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): Caused by:
java.lang.IllegalArgumentException: provider=network
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.os.Parcel.readException(Parcel.java:1325)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.os.Parcel.readException(Parcel.java:1275)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationMan
ager.java:646)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.location.LocationManager._requestLocationUpdates(LocationManager.java:58
2)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.location.LocationManager.requestLocationUpdates(LocationManager.java:446
)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
org.odk.collect.android.activities.GeoPointMapActivity.onResume(GeoPointMapActiv
ity.java:171)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1153)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.Activity.performResume(Activity.java:4428)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2217)
07-07 18:10:30.646: ERROR/AndroidRuntime(679): ... 12 more
07-07 18:10:30.659: DEBUG/dalvikvm(679): GC_CONCURRENT freed 668K, 20% free
8207K/10183K, paused 4ms+3ms
07-07 18:10:30.749: WARN/ActivityManager(83): Force finishing activity
org.odk.collect.android/.activities.GeoPointMapActivity
07-07 18:10:31.266: WARN/ActivityManager(83): Activity pause timeout for
ActivityRecord{40cef580 org.odk.collect.android/.activities.GeoPointMapActivity}
07-07 18:10:40.782: WARN/ActivityManager(83): Launch timeout has expired,
giving up wake lock!
07-07 18:10:41.332: WARN/ActivityManager(83): Activity idle timeout for
ActivityRecord{40cbbbf0 org.odk.collect.android/.activities.FormEntryActivity}
07-07 18:10:47.509: INFO/Process(679): Sending signal. PID: 679 SIG: 9
07-07 18:10:47.557: INFO/WindowManager(83): WIN DEATH: Window{40d33f40
org.odk.collect.android/org.odk.collect.android.activities.FormEntryActivity
paused=false}
07-07 18:10:47.557: INFO/ActivityManager(83): Process org.odk.collect.android
(pid 679) has died.
07-07 18:10:47.567: WARN/GpsLocationProvider(83): Unneeded remove listener for
uid 1000
07-07 18:10:47.587: ERROR/InputDispatcher(83): channel '409ffe70
org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
07-07 18:10:47.587: ERROR/InputDispatcher(83): channel '409ffe70
org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
07-07 18:10:47.620: WARN/GpsLocationProvider(83): Unneeded remove listener for
uid 1000
07-07 18:10:47.667: INFO/WindowManager(83): WIN DEATH: Window{409ffe70
org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity
paused=false}
07-07 18:10:47.687: INFO/ActivityManager(83): Start proc
org.odk.collect.android for activity
org.odk.collect.android/.activities.MainMenuActivity: pid=742 uid=10040
gids={3003, 1015}
07-07 18:10:47.687: INFO/WindowManager(83): WINDOW DIED Window{409ffe70
org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity
paused=false}
07-07 18:10:48.120: DEBUG/dalvikvm(33): GC_EXPLICIT freed 12K, 6% free
6239K/6595K, paused 3ms+31ms
07-07 18:10:48.217: INFO/ActivityThread(742): Pub
org.odk.collect.android.provider.odk.instances:
org.odk.collect.android.provider.InstanceProvider
07-07 18:10:48.228: INFO/ActivityThread(742): Pub
org.odk.collect.android.provider.odk.forms:
org.odk.collect.android.provider.FormsProvider
07-07 18:10:48.287: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 6% free
6239K/6595K, paused 2ms+14ms
07-07 18:10:48.300: INFO/MainMenuActivity(742): Starting up, creating
directories
07-07 18:10:48.446: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 6% free
6239K/6595K, paused 2ms+3ms
07-07 18:10:48.487: DEBUG/dalvikvm(742): GC_FOR_ALLOC freed 64K, 4% free
6352K/6595K, paused 81ms
07-07 18:10:48.487: INFO/dalvikvm-heap(742): Grow heap (frag case) to 6.801MB
for 513744-byte allocation
07-07 18:10:48.627: DEBUG/dalvikvm(742): GC_FOR_ALLOC freed 8K, 4% free
6846K/7111K, paused 46ms
07-07 18:10:48.756: DEBUG/dalvikvm(742): GC_CONCURRENT freed <1K, 4% free
6846K/7111K, paused 3ms+2ms
07-07 18:10:48.816: VERBOSE/TLINE(742): new: android.text.TextLine@406476b8
07-07 18:10:48.887: WARN/InputManagerService(83): Got RemoteException sending
setActive(false) notification to pid 679 uid 10040
07-07 18:10:49.046: VERBOSE/TLINE(742): new: android.text.TextLine@4063b380
07-07 18:10:49.446: INFO/ActivityManager(83): Displayed
org.odk.collect.android/.activities.MainMenuActivity: +1s792ms (total
+1m39s967ms)
07-07 18:10:51.394: WARN/ActivityManager(83): Activity destroy timeout for
ActivityRecord{40cef580 org.odk.collect.android/.activities.GeoPointMapActivity}
07-07 18:10:58.762: DEBUG/SntpClient(83): request time failed:
java.net.SocketException: Address family not supported by protocol
Original comment by mite...@gmail.com
on 7 Jul 2011 at 6:13
i still can't reproduce, but the bug report helped some.
can you update your code from the repo and try the fix i pushed
(http://code.google.com/p/opendatakit/source/detail?r=e2d3155c835f2166243fffc6a8
2e9f4411473df5&repo=collect)
Original comment by yanokwa
on 7 Jul 2011 at 8:01
yep. that worked. thanks for the help.
(that was the stoic response- in truth i danced around the room cheering,
stripped to my underwear and cracked open a beer of victory. thanks so much!)
Original comment by mite...@gmail.com
on 7 Jul 2011 at 10:56
Original comment by yanokwa
on 8 Jul 2011 at 12:44
Please Help me
Actually,I m using eclipse and doing android programing.I m doing webView
programming but i m getting three type of problem.
Problem 1.
LocationTest [Android Application]
DalvikVM[localhost:8695]
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThrea d$ActivityRecord, Intent)
line: 2663
ActivityThread.handleLaunchActivity(ActivityThread $ActivityRecord, Intent)
line: 2679
ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord,
Intent) line: 125
ActivityThread$H.handleMessage(Message) line: 2033
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4627
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean)
line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 868
ZygoteInit.main(String[]) line: 626
NativeStart.main(String[]) line: not available [native method]
Thread [<6> Binder Thread #2] (Running)
Thread [<5> Binder Thread #1] (Running)
Original comment by mahendra...@gmail.com
on 22 Aug 2011 at 6:05
Attachments:
Original issue reported on code.google.com by
mite...@gmail.com
on 5 Jul 2011 at 8:46