I am developing an App for windows and android using Rho With UDP Protocol

v valiveti saikiran 3 years 8 months ago
25 1 0

I am developing an app which is based on UDP Protocol it will communicate to server and get response in string format and able to do this when i run this app in Rho Simulator but when i run this App with android native simulator i am getting following issues.

Can any one please guide me to run with an Android Simulator

E/gralloc_goldfish(   50): gralloc_alloc: Mismatched usage flags: 164 x 273, usage 333
W/GraphicBufferAllocator(   50): alloc(164, 273, 1, 00000333, ...) failed -22 (Invalid argument)
E/        (   50): GraphicBufferAlloc::createGraphicBuffer(w=164, h=273) failed (Invalid argument), handle=0x0
E/BufferQueue(  370): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
W/WindowManager(  370): Screenshot failure taking screenshot for (164x273) to layer 21005
E/SoundPool(  370): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool(  370): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService(  370): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService(  370): onLoadSoundEffects(), Error -1 while loading samples
I/ActivityManager(  370): Start proc com.rhomobile.rtg for activity com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity: pid=1263 uid=10057 gids={50057, 3003, 1028, 1015, 3002, 3001}
I/dalvikvm( 1263): CheckJNI enabled: not enabling JNI app bug workarounds.
D/dalvikvm( 1263): Trying to load lib /data/app-lib/com.rhomobile.rtg-1/librhodes.so 0xb4dabc08
D/dalvikvm( 1263): Added shared lib /data/app-lib/com.rhomobile.rtg-1/librhodes.so 0xb4dabc08
D/dalvikvm( 1263): Trying to load lib /data/app-lib/com.rhomobile.rtg-1/libplugin.so 0xb4dabc08
W/linker  ( 1263): libplugin.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/dalvikvm( 1263): Added shared lib /data/app-lib/com.rhomobile.rtg-1/libplugin.so 0xb4dabc08
D/dalvikvm( 1263): No JNI_OnLoad found in /data/app-lib/com.rhomobile.rtg-1/libplugin.so 0xb4dabc08, skipping init
I/RhodesApplication( 1263): Initializing...
D/RhoFileApi( 1263): App root path: /data/data/com.rhomobile.rtg/rhodata/
D/RhoFileApi( 1263): Sqlite journals path: /data/data/com.rhomobile.rtg/sqlite_stmt_journals/
D/RhoFileApi( 1263): Shared path: /data/data/com.rhomobile.rtg/rhodata/
D/RhodesApplication( 1263): Root path: /data/data/com.rhomobile.rtg/rhodata/
I/RhoFileApi( 1263): Opening stat table from package assets
D/dalvikvm( 1263): GC_FOR_ALLOC freed 296K, 12% free 2908K/3272K, paused 20ms, total 22ms
D/dalvikvm( 1263): GC_FOR_ALLOC freed 21K, 7% free 3166K/3392K, paused 14ms, total 15ms
I/dalvikvm-heap( 1263): Grow heap (frag case) to 4.851MB for 1780864-byte allocation
D/dalvikvm( 1263): GC_FOR_ALLOC freed

Please Register or Login to post a reply

1 Replies

J Jon Tara

Which part of this output is related to your UDP code? You seem to have multiple unrelated problems.

Did you try to use a Ruby thread? Ruby threads do not work in Rhodes for Android. (They do for iOS and Windows.)

CONTACT
Can’t find what you’re looking for?