Results 1 to 12 of 12

Thread: RT3DApp Crashes on Android

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Peasant
    Join Date
    Apr 2011
    Posts
    6

    Post RT3DApp Crashes on Android

    I have compiled and build RT3DApp.apk file but when i install the apk to the device and run it the application crashes.
    Device which i am using is Sony Xperia Arc
    The error in the Logcat shown is :-

    04-24 21:35:13.501: DEBUG/com.rtsoft.rt3dapp(14591): SDK version: 9
    04-24 21:35:13.521: DEBUG/AndroidRuntime(14591): Shutting down VM
    04-24 21:35:13.521: WARN/dalvikvm(14591): threadid=1: thread exiting with uncaught exception (group=0x2aac8560)
    04-24 21:35:13.531: ERROR/kernel(118): [64213.300384] msm_i2c msm_i2c.0: (0076) Error during data xfer (-5)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): FATAL EXCEPTION: main
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): java.lang.UnsatisfiedLinkError: Couldn't load rt3dapp: findLibrary returned null
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at java.lang.Runtime.loadLibrary(Runtime.java:429)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at java.lang.System.loadLibrary(System.java:554)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at com.rtsoft.shared.SharedActivity.onCreate(SharedAc tivity.java:232)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at com.rtsoft.rt3dapp.Main.onCreate(Main.java:21)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1594)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1646)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.ActivityThread.access$1500(ActivityThr ead.java:121)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:936)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.os.Handler.dispatchMessage(Handler.java:99 )
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.os.Looper.loop(Looper.java:123)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at android.app.ActivityThread.main(ActivityThread.jav a:3652)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at java.lang.reflect.Method.invokeNative(Native Method)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at java.lang.reflect.Method.invoke(Method.java:507)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:862)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:620)
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): at dalvik.system.NativeStart.main(Native Method)
    04-24 21:35:13.551: WARN/ActivityManager(237): Force finishing activity com.rtsoft.rt3dapp/.Main
    04-24 21:35:13.611: INFO/WindowManager(237): Setting rotation to 0, animFlags=1
    04-24 21:35:13.631: INFO/ActivityManager(237): Config changed: { scale=1.0 imsi=404/49 loc=en_IN touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=116}
    04-24 21:35:13.711: DEBUG/GestureDetector(309): touchSlop:31 doubleTapSlop:195
    04-24 21:35:13.821: DEBUG/dalvikvm(309): GC_EXTERNAL_ALLOC freed 630K, 61% free 3011K/7559K, external 2664K/2671K, paused 97ms
    04-24 21:35:13.861: INFO/CustomizationProvider(1067): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
    04-24 21:35:14.061: WARN/ActivityManager(237): Activity pause timeout for HistoryRecord{2b015988 com.rtsoft.rt3dapp/.Main}


    Please reply as soon as possible..
    Please ask if any more detail is required.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Code:
    04-24 21:35:13.531: ERROR/AndroidRuntime(14591): java.lang.UnsatisfiedLinkError: Couldn't load rt3dapp: findLibrary returned null
    Hmm. It looks like it's running the .java part ok, but it isn't finding the arm binary for it. It might not have been built?

    When you run build.bat from the android directory, carefully watch the output.

    You should see something like:

    Code:
    SharedLibrary  : librt3dapp.so
    Install        : librt3dapp.so => /cygdrive/o/projects/proton/rt3dapp/android/libs/armeabi
    Then you should see the .so file in the android/libs/armeabi dir.

    If it *is* there, maybe try opening the final .apk with winzip and making sure that it's in the zip too.

    If this is your first Android build with Proton, I would try to get RTBareBones working first as it's a lot simpler, just as a sanity check that all the tools are working right.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Peasant
    Join Date
    Apr 2011
    Posts
    6

    Default Code is not compiling properly

    I have looked into the part as you mentioned and found that the compiling was not happening properly. During compiling following error is displayed:-

    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CParticleSphereEmitter.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CAnimatedMeshSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CBillboardSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CCubeSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneCollisionManager.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneManager.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorCameraMaya.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorCollisionResponse.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorDelete.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorFlyCircle.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorFlyStraight.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorFollowSpline.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorRotation.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSceneNodeAnimatorTexture.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CShadowVolumeSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSkyBoxSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSkyDomeSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CSphereSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CTerrainSceneNode.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/CTerrainTriangleSelector.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESDriver.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESExtensionHandler.cpp
    Compile++ arm : rt3dapp <= /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESTexture.cpp
    /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESTexture.cpp: In member function 'virtual void irr::video::COGLES1Texture::Reload()':
    /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESTexture.cpp:468: error: 'BuiltInFontData' is not a member of 'irr::gui'
    /cygdrive/c/proton/RT3DApp/android/jni/../../../shared/Irrlicht/source/Irrlicht/COGLESTexture.cpp:468: error: 'BuiltInFontDataSize' is not a member of 'irr::gui'
    make: *** [/cygdrive/c/proton/RT3DApp/android/obj/local/armeabi/objs/rt3dapp/../../../shared/Irrlicht/source/Irrlicht/COGLESTexture.o] Error 1


    C:\Proton\RT3DApp\android>if not exist libs/armeabi/librt3dapp.so beeper.exe /p
    'beeper.exe' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Proton\RT3DApp\android>rmdir assets /S /Q

    Since i have not changed the code so can you tell me that why i am getting this error ?

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Oops, my bad. I broke it last week I think, sorry about that.

    Fixed, update from svn and try again.
    Seth A. Robinson
    Robinson Technologies

  5. #5
    Peasant
    Join Date
    Apr 2011
    Posts
    6

    Default Texture is not binding with the 3d model

    Hey, thanks for your reply the code is working now.
    But i have changed the squirrel.x 3d file to dwarf.x and same for loading the texture.

    This is working perfectly fine in windows application. but when i run the apk after
    compiling on Android i am not able to see the texture binded there.

    Device i am testing on is Sony Xperia Arc Android version 2.3.2

    The logcat is showing following Log when i am running the application

    04-25 23:30:25.950: VERBOSE/AudioService(237): HDMI disconnected
    04-25 23:30:25.950: WARN/AudioPolicyManager(111): setDeviceConnectionState() device not connected: 800
    04-25 23:30:26.980: ERROR/RT3DApp(20223): Clicked Mesh3D entity at An entity
    04-25 23:30:26.990: DEBUG/AudioHardwareMSM7X30(111): value of device and enable is 6 1
    04-25 23:30:27.000: DEBUG/kernel(118): [108882.129180] [msm7x30.c:msm_device_put] device speaker_stereo_rx set 1
    04-25 23:30:27.000: ERROR/kernel(118): [108882.129211] [msm7x30.c:msm_device_put] device freq =48000
    04-25 23:30:27.010: DEBUG/kernel(118): [108882.135131] [adsp.c:msm_adsp_get] module AFETASK has been registered
    04-25 23:30:27.010: DEBUG/kernel(118): [108882.135162] [adsp.c:msm_adsp_enable] enable 'AFETASK'state[0] id[17227119]
    04-25 23:30:27.010: DEBUG/kernel(118): [108882.141845] [adsp.c:adsp_rtos_mtoa_cb] rpc event=0, proc_id=2, module=17227119, image=0
    04-25 23:30:27.010: DEBUG/kernel(118): [108882.141845] [adsp.c:adsp_rtos_mtoa_cb] module AFETASK: READY
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.194519] msm_snddev_poweramp_on: power on amplifier
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.194610] [adsp.c:msm_adsp_get] module AUDPPTASK has been registered
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.194610] [adsp.c:msm_adsp_enable] enable 'AUDPPTASK'state[0] id[17227122]
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.198211] [adsp.c:adsp_rtos_mtoa_cb] rpc event=0, proc_id=2, module=17227122, image=0
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.198242] [adsp.c:adsp_rtos_mtoa_cb] module AUDPPTASK: READY
    04-25 23:30:27.070: DEBUG/kernel(118): [108882.202209] [audpp.c:audpp_dsp_event] ENABLE
    04-25 23:30:27.080: DEBUG/kernel(118): [108882.206359] [adsp.c:msm_adsp_write] AUDPPTASK command took 67 attempts: rc 0
    04-25 23:30:27.080: ERROR/kernel(118): [108882.206390] [audio_acdb.c:acdb_fill_audpp_cal_gain] unable to find audpp calibration gain block returning
    04-25 23:30:27.220: ERROR/RT3DApp(20223): Setting fov to 1.78
    04-25 23:30:27.450: VERBOSE/AudioService(237): HDMI disconnected
    04-25 23:30:27.450: WARN/AudioPolicyManager(111): setDeviceConnectionState() device not connected: 800
    04-25 23:30:28.950: VERBOSE/AudioService(237): HDMI disconnected
    04-25 23:30:28.950: WARN/AudioPolicyManager(111): setDeviceConnectionState() device not connected: 800
    04-25 23:30:30.090: DEBUG/AudioHardwareMSM7X30(111): AudioStreamOutMSM72xx::standby()
    04-25 23:30:30.090: DEBUG/AudioHardwareMSM7X30(111): updateDeviceInfo: E rx_device 6 and tx_device 12
    04-25 23:30:30.090: DEBUG/AudioHardwareMSM7X30(111): No active voicecall/playback, disabling cur_rx 6
    04-25 23:30:30.090: DEBUG/AudioHardwareMSM7X30(111): value of device and enable is 6 0
    04-25 23:30:30.100: DEBUG/AudioHardwareMSM7X30(111): No active voicecall/recording, disabling cur_tx 12
    04-25 23:30:30.100: DEBUG/AudioHardwareMSM7X30(111): value of device and enable is 12 0
    04-25 23:30:30.100: DEBUG/AudioHardwareMSM7X30(111): updateDeviceInfo: X cur_rx 6 cur_tx 12
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.231445] [msm7x30.c:msm_device_put] device speaker_stereo_rx set 0
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.234344] msm_snddev_poweramp_off: power off amplifier
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.236968] [adsp.c:msm_adsp_put] closing module AFETASK
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.237365] [msm7x30.c:msm_device_put] device speaker_mono_tx set 0
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.237426] [audpp.c:audpp_dsp_event] DISABLE
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.237457] [audpp.c:audpp_disable] Received CFG_MSG_DISABLE from ADSP
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.237457] [adsp.c:msm_adsp_disable] disable interrupt
    04-25 23:30:30.120: DEBUG/kernel(118): [108885.237487] [adsp.c:msm_adsp_put] closing module AUDPPTASK
    04-25 23:30:30.450: VERBOSE/AudioService(237): HDMI disconnected


    Please let me know where i am making the mistake because the same code is working fine on windows or do i have to add something to make it working....

    Please reply as soon as possible...

  6. #6
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    It should work fine on all platforms the way you did it.

    For a test, I did the same thing and ran it on Windows and my Nexus 1. The dwarf and texture worked fine. (Although because of where the camera is, I could only see his boots..)

    Keep in mind Android filenames are case sensitive, while Windows isn't. (Although you should see errors in the log if the wasn't found... so, that shouldn't be it..)

    I used this in Mesh3DMenu for my test:

    Code:
    //to load the dwarf:
    mesh = pScene->getMesh( (GetBaseAppPath() + "game/dwarf.x").c_str());
    
    //and later...
    node->setMaterialTexture( 0,GetIrrlichtManager()->GetDriver()->getTexture( (GetBaseAppPath() + "game/dwarf.rttex").c_str() ));
    So the squirrel and other demos work fine? Strange.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Android compilation is so slow
    By KWilk in forum Proton SDK
    Replies: 1
    Last Post: 03-17-2011, 12:47 AM
  2. Replies: 1
    Last Post: 01-30-2011, 10:58 PM
  3. FliteTTS Errors in RT3DApp
    By BigBMan in forum Proton SDK
    Replies: 4
    Last Post: 11-24-2010, 09:34 AM
  4. adding FPS Key and mouse controls to RT3DApp
    By BigBMan in forum Proton SDK
    Replies: 2
    Last Post: 11-11-2010, 06:49 AM
  5. Issues with RT3DApp Windows & Visual C++ 2010 Express
    By Bryan C Dickson in forum Proton SDK
    Replies: 8
    Last Post: 11-08-2010, 08:13 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •