Working on One But Not the Other

Monkey Targets Forums/Android/Working on One But Not the Other

c.k.(Posted 2013) [#1]
I've got a Galaxy S2 and Nexus 4. I have an Ignition program (Tony, the list swipe example you sent me) that works on the GS2 but not the N4. What would I do to go about diagnosing the problem?

My versions.txt says

***** V66 *****

Modules

brl - added filestream module.

psm/xna - tweaked update rate logic, should be a bit 'cleaner' now esp. on PSM. Added XNA_VSYNC_ENABLED config var (defaults to false) to XNA. Use this + 60FPS update rate to get 60FPS on WP7.

xna/psm mojo - changed SaveState/LoadState filename to '.mojostate'.



MikeHart(Posted 2013) [#2]
start the Android debug monitor, select your device and watch the errors it reports. It will give you an indication what might be wrong. Or use the old Print method in the monkey code.


slenkar(Posted 2013) [#3]
connect the device to your pc and use 'adb logcat' on the commandline
it will give you the error to the exact line

BUT you will have to look through a bunch of text to find the error report


c.k.(Posted 2013) [#4]
Thanks, guys! I will try this when I get home tonight.


c.k.(Posted 2013) [#5]
LOL. WUT?!?! I hooked up my N4 and did "adb logcat" and got several screens of GreekToMe! :-D

This could help, I bet. Is this where debug printing will go?!

Thanks!!!


c.k.(Posted 2013) [#6]
I'm using Android 4.2.1 on my Nexus 4. Anybody else have any success running their monkey-generated program on 4.2.1?

Here's part of the output to "adb logcat":

D/dalvikvm( 7088): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 7088): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 7088): Calling main entry com.android.commands.pm.Pm
I/ActivityManager(  575): Start proc com.android.defcontainer for service com.an
droid.defcontainer/.DefaultContainerService: pid=7099 uid=10013 gids={50013, 101
5, 2001, 1028}
W/ActivityManager(  575): No content provider found for permission revoke: file:
///data/local/tmp/MonkeyGame-debug.apk
D/Finsky  ( 3714): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 24
D/Finsky  ( 3714): [1] WorkerTask.onPreExecute: Verification Requested for id =
24, data=file:///data/local/tmp/MonkeyGame-debug.apk flags=114
D/dalvikvm( 3714): GC_CONCURRENT freed 293K, 4% free 10263K/10600K, paused 8ms+2
ms, total 50ms
D/Finsky  ( 3714): [1] 2.onResponse: Verification id=24 response=0
D/Finsky  ( 3714): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 24
W/ActivityManager(  575): No content provider found for permission revoke: file:
///data/local/tmp/MonkeyGame-debug.apk
I/PackageManager(  575): Copying native libraries to /data/app-lib/vmdl564773457

I/PackageManager(  575): Removing non-system package:com.monkey
I/ActivityManager(  575): Force stopping package com.monkey appid=10110 user=-1
D/dalvikvm(13632): GC_CONCURRENT freed 499K, 5% free 10671K/11208K, paused 4ms+3
ms, total 46ms
I/PackageManager(  575): Package com.monkey codePath changed from /data/app/com.
monkey-1.apk to /data/app/com.monkey-2.apk; Retaining data and using new
I/PackageManager(  575): Linking native library dir for /data/app/com.monkey-2.a
pk
I/PackageManager(  575): Running dexopt on: com.monkey
D/dalvikvm( 7120): DexOpt: 'Landroid/annotation/SuppressLint;' has an earlier de
finition; blocking out
D/dalvikvm( 7120): DexOpt: 'Landroid/annotation/TargetApi;' has an earlier defin
ition; blocking out
D/dalvikvm( 7120): DexOpt: not verifying/optimizing 'Landroid/annotation/Suppres
sLint;': multiple definitions
D/dalvikvm( 7120): DexOpt: not verifying/optimizing 'Landroid/annotation/TargetA
pi;': multiple definitions


The "No content provider found" looks suspicious. I no longer have my Galaxy S2, so I can't find the difference... :-/


pantson(Posted 2013) [#7]
there is a fix in v66 for latest Android OS version.
(re)download that version and try again


Midimaster(Posted 2013) [#8]
where can I find out, which V66 I use?

Shouldn't there be an info in the TED or in the build protocoll about current subversion of monkey?


Ironstorm(Posted 2013) [#9]
You can look into the VERSIONS.TXT file. There should be the info about the current version and their changes.


Midimaster(Posted 2013) [#10]
I thought so, but there is only a info "V66".


Nobuyuki(Posted 2013) [#11]
You need v66b