3 Replies Latest reply on Apr 17, 2015 2:06 PM by Jon Tara

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

    valiveti saikiran

      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 <1K, 5% free 4904K/5132K, paused 127ms, total 127ms

      D/dalvikvm( 1263): Trying to load lib /data/app-lib/com.rhomobile.rtg-1/libplugin.so 0xb4dabc08

      D/dalvikvm( 1263): Shared lib '/data/app-lib/com.rhomobile.rtg-1/libplugin.so' already loaded in same CL 0xb4dabc08

      D/com.motorolasolutions.rhoelements.Common( 1263): com.motorolasolutions.emdk.scanning.Scanner

      D/dalvikvm( 1263): GC_FOR_ALLOC freed 514K, 11% free 5130K/5708K, paused 18ms, total 20ms

      W/System.err( 1263): java.lang.NullPointerException

      W/System.err( 1263):  at java.net.URI.parseURI(URI.java:353)

      W/System.err( 1263):  at java.net.URI.<init>(URI.java:204)

      W/System.err( 1263):  at com.motorolasolutions.rhoelements.Logger.loadConfig(Logger.java:136)

      W/System.err( 1263):  at com.motorolasolutions.rhoelements.Logger.<init>(Logger.java:90)

      W/System.err( 1263):  at com.motorolasolutions.rhoelements.ElementsCore.startLogger(ElementsCore.java:774)

      W/System.err( 1263):  at com.motorolasolutions.rhoelements.ElementsCore.onCreate(ElementsCore.java:249)

      W/System.err( 1263):  at com.rhoelementsext.RhoElementsProxy.onCreate(RhoElementsProxy.java:50)

      W/System.err( 1263):  at com.rhomobile.rhodes.extmanager.RhoExtManagerImpl.onCreateActivity(RhoExtManagerImpl.java:787)

      W/System.err( 1263):  at com.rhomobile.rhodes.RhodesActivity.onCreate(RhodesActivity.java:197)

      W/System.err( 1263):  at android.app.Activity.performCreate(Activity.java:5231)

      W/System.err( 1263):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

      W/System.err( 1263):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)

      W/System.err( 1263):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)

      W/System.err( 1263):  at android.app.ActivityThread.access$800(ActivityThread.java:135)

      W/System.err( 1263):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)

      W/System.err( 1263):  at android.os.Handler.dispatchMessage(Handler.java:102)

      W/System.err( 1263):  at android.os.Looper.loop(Looper.java:136)

      W/System.err( 1263):  at android.app.ActivityThread.main(ActivityThread.java:5017)

      W/System.err( 1263):  at java.lang.reflect.Method.invokeNative(Native Method)

      W/System.err( 1263):  at java.lang.reflect.Method.invoke(Method.java:515)

      W/System.err( 1263):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

      W/System.err( 1263):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

      W/System.err( 1263):  at dalvik.system.NativeStart.main(Native Method)

      D/RhoElements( 1263): <1> Logger started

      D/dalvikvm( 1263): GC_FOR_ALLOC freed 126K, 9% free 5379K/5868K, paused 18ms, total 19ms

      V/PhoneStatusBar(  422): setLightsOn(true)

      V/WebViewChromium( 1263): Binding Chromium to the main looper Looper (main, tid 1) {b4da4f38}

      I/chromium( 1263): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0

      I/BrowserProcessMain( 1263): Initializing chromium process, renderers=0

      W/chromium( 1263): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation

      D/        ( 1263): HostConnection::get() New Host Connection established 0xb82c1580, tid 1263

      D/AndroidRuntime( 1263): Shutting down VM

      W/dalvikvm( 1263): threadid=1: thread exiting with uncaught exception (group=0xb4af9ba8)

      E/AndroidRuntime( 1263): FATAL EXCEPTION: main

      E/AndroidRuntime( 1263): Process: com.rhomobile.rtg, PID: 1263

      E/AndroidRuntime( 1263): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity}: java.lang.NullPointerException

      E/AndroidRuntime( 1263):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)

      E/AndroidRuntime( 1263):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)

      E/AndroidRuntime( 1263):  at android.app.ActivityThread.access$800(ActivityThread.java:135)

      E/AndroidRuntime( 1263):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)

      E/AndroidRuntime( 1263):  at android.os.Handler.dispatchMessage(Handler.java:102)

      E/AndroidRuntime( 1263):  at android.os.Looper.loop(Looper.java:136)

      E/AndroidRuntime( 1263):  at android.app.ActivityThread.main(ActivityThread.java:5017)

      E/AndroidRuntime( 1263):  at java.lang.reflect.Method.invokeNative(Native Method)

      E/AndroidRuntime( 1263):  at java.lang.reflect.Method.invoke(Method.java:515)

      E/AndroidRuntime( 1263):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

      E/AndroidRuntime( 1263):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

      E/AndroidRuntime( 1263):  at dalvik.system.NativeStart.main(Native Method)

      E/AndroidRuntime( 1263): Caused by: java.lang.NullPointerException

      E/AndroidRuntime( 1263):  at com.motorolasolutions.rhoelements.ElementsCore.configureWebKit(ElementsCore.java:435)

      E/AndroidRuntime( 1263):  at com.rhoelementsext.RhoElementsProxy.onStart(RhoElementsProxy.java:67)

      E/AndroidRuntime( 1263):  at com.rhomobile.rhodes.extmanager.RhoExtManagerImpl.onStartActivity(RhoExtManagerImpl.java:793)

      E/AndroidRuntime( 1263):  at com.rhomobile.rhodes.RhodesActivity.onStart(RhodesActivity.java:263)

      E/AndroidRuntime( 1263):  at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)

      E/AndroidRuntime( 1263):  at android.app.Activity.performStart(Activity.java:5241)

      E/AndroidRuntime( 1263):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)

      E/AndroidRuntime( 1263):  ... 11 more

      W/ActivityManager(  370):   Force finishing activity com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity

      I/WindowManager(  370): Screenshot max retries 4 of Token{b51c5130 ActivityRecord{b50eb450 u0 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity t6 f}} appWin=Window{b518ef90 u0 Starting com.rhomobile.rtg} drawState=4

      W/WindowManager(  370): Screenshot failure taking screenshot for (480x800) to layer 21010

      W/ActivityManager(  370): Activity pause timeout for ActivityRecord{b50eb450 u0 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity t6 f}

      D/dalvikvm(  370): GC_FOR_ALLOC freed 567K, 18% free 6453K/7788K, paused 55ms, total 56ms

      W/EGL_emulation(  535): eglSurfaceAttrib not implemented

      I/Process ( 1263): Sending signal. PID: 1263 SIG: 9

      W/InputDispatcher(  370): channel 'b5145938 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9

      E/InputDispatcher(  370): channel 'b5145938 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

      I/ActivityManager(  370): Process com.rhomobile.rtg (pid 1263) has died.

      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

      W/InputDispatcher(  370): Attempted to unregister already unregistered input channel 'b5145938 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity (server)'

      I/WindowState(  370): WIN DEATH: Window{b5145938 u0 com.rhomobile.rtg/com.rhomobile.rhodes.RhodesActivity}

      W/InputMethodManagerService(  370): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@b4fbd738 attribute=null, token = android.os.BinderProxy@b5078170

      I/ProcessStatsService(  370): Prepared write state in 19ms

      I/ProcessStatsService(  370): Prepared write state in 12ms

      D/ConnectivityService(  370): Sampling interval elapsed, updating statistics ..

      D/ConnectivityService(  370): Done.

      D/ConnectivityService(  370): Setting timer for 720seconds

      I/ProcessStatsService(  370): Pruning old procstats: /data/system/procstats/state-2015-01-26-06-58-00.bin