@AlexGreen wrote:
Hi,
I have a error using sdkbox facebook plugin. I installed it as described on documentation page : http://docs.sdkbox.com/en/plugins/facebook/v3-cpp/
It was successfully installed automatically. But I also checked it according to instruction for manual installation. all steps are OK. Building is also OK. cocos version is cocos2d-x-3.13 . target android version is 23. minSdkVersion is 11. Android version on device is 5.0.While calling sdkbox::PluginFacebook::init(); there is "JNI DETECTED ERROR IN APPLICATION: JNI GetObjectClass called with pending exception 'com.facebook.FacebookException' thrown in unknown throw location" error.
Could somebody help me please with this isuue ?
Thank you.Following is a error trace :
I/SDKBOX_CORE( 1876): Initialization request for plugin: 'com/sdkbox/plugin/PluginFacebook'
D/StatusBar.NetworkControllerImplSprd( 591): hasService: mServiceState=0 0 home MTS RUS@ MTS RUS@ 25001 HSPA HSPA CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false retVal=true
D/StatusBar.NetworkControllerImplSprd( 591): refreshViews[0] connected={ wifi } level=3 combinedSignalIconId=0x7f0201a1/com.android.systemui:drawable/stat_sys_wifi_signal_4_fully mobileLabel=MTS RUS wifiLabel="xxx"xxxxXXXXxxxxXXXX emergencyOnly=false combinedLabel="xxx"xxxxXXXXxxxxXXXX mAirplaneMode=false mDataActivity=3 mDataRoamIconId=(null) mPhoneSignalIconId=0x7f0200d5 mQSPhoneSignalIconId=0x7f020091 mDataDirectionIconId=0x0 mDataSignalIconId=0x7f0200d5 mDataTypeIconId=0x7f020187 mQSDataTypeIconId=0x7f020094 mWifiIconId=0x7f0201a1 mQSWifiIconId=0x7f0200a8 mBluetoothTetherIconId=0x10806bb isModemAlive=true
D/StatusBar.NetworkControllerImplSprd( 591): refreshSignalCluster mDataRoamIconId=(null)
D/SignalClusterView( 591): mRoaming:false
D/StatusBar.NetworkControllerImplSprd( 591): refreshSignalCluster mDataRoamIconId=(null)
D/SignalClusterView( 591): mRoaming:false
D/SignalClusterView( 591): mRoaming:false
D/SignalClusterView( 591): mRoaming:false
D/StatusBar.NetworkControllerImplSprd( 591): refreshSignalCluster mDataRoamIconId=(null)
D/StatusBar.NetworkControllerImplSprd( 591): refreshSignalCluster mDataRoamIconId=(null)
D/NetworkControllerUtils( 591): updateNetworkNameView : networkName = MTS RUS
W/Environment( 497): === curr internal type is == 1
I/ActivityManager( 497): Start proc com.google.android.partnersetup for broadcast com.google.android.partnersetup/.RlzPingBroadcastReceiver: pid=1940 uid=10051 gids={50051, 9997, 3003} abi=armeabi-v7a
I/Environment( 1940): rawExternalStorage=/storage/emulated/legacy
W/Environment( 1940): === curr internal type is == 1
I/Environment( 1940): rawSecondaryStorage=/storage/sdcard0
W/Environment( 1940): === curr storage type is == 2
W/Environment( 1940): === curr internal type is == 1
I/Environment( 1940): mExternalDirsForApp_0 = /storage/emulated/0
I/Environment( 1940): mExternalDirsForApp_1 = /storage/sdcard0
D/BatteryMeterView( 591): TimerTask :run --level = 59
D/BatteryMeterView( 591): handleMessage
D/BatteryMeterView( 591): TimerTask :run --level = 59
D/BatteryMeterView( 591): handleMessage
D/BatteryMeterView( 591): draw : level = 59
D/BatteryMeterView( 591): TimerTask :run --level = 59
D/BatteryMeterView( 591): handleMessage
D/gralloc.sc8830( 156): fb_post fps = 6.164033
D/GPSenseEngine(13674): EPH sow 117671: 1 3 8 10 11 14 18 22 24 27 28 32--AS:
D/GPSenseEngine(13674): SendNavResult [TRACE:1]
D/GPSenseEngine(13674): CheckState[status:2][bOff:0][Used:0]
D/GPSenseEngine(13674): SendNavResult [gbPreFix:0] [gbRMCState:0][gModeState:5]
D/GPSenseEngine(13674): SendSatInfoResult [gbPreFix:0] [gbRMCState:0][gModeState:5]
D/AlarmManager( 497): setImpl() action = com.android.server.task.controllers.BatteryController.ACTION_CHARGING_STABLE, component = null, type = 2, standalone=false, operation = PendingIntent{687f9aa: PendingIntentRecord{3973499b android broadcastIntent}} tElapsed=140936242, maxElapsed=141026242, interval=0, when = 1481532176267, triggerTime = 2016-12-12 11:42:56
V/PowerManagerService( 497): releaseDvfs remove Callbacks
V/PowerManagerService( 497): setUserSpaceDvfsLocal miSReleaseDvfs = false
D/WorkerThread( 2102): Return handler = Handler (android.os.Handler) {1fb2ff9}
I/keyPushLog( 2102): LSF_DEVICE_PUSH:Engine=com.lenovo.lsf.device, start com.lenovo.lsf.device
W/Environment( 497): === curr internal type is == 1
I/ActivityManager( 497): Start proc com.android.gallery3d for broadcast com.android.gallery3d/.app.PackagesMonitor: pid=1960 uid=10047 gids={50047, 9997, 3003, 1028, 1015, 1051, 1052} abi=armeabi-v7a
I/ActivityManager( 497): Killing 1464:com.google.android.apps.docs/u0a32 (adj 15): empty #17
I/Environment( 1960): rawExternalStorage=/storage/emulated/legacy
W/Environment( 1960): === curr internal type is == 1
I/Environment( 1960): rawSecondaryStorage=/storage/sdcard0
W/Environment( 1960): === curr storage type is == 2
W/Environment( 1960): === curr internal type is == 1
I/Environment( 1960): mExternalDirsForApp_0 = /storage/emulated/0
I/Environment( 1960): mExternalDirsForApp_1 = /storage/sdcard0
F/art ( 1876): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI GetObjectClass called with pending exception 'com.facebook.FacebookException' thrown in unknown throw location
F/art ( 1876): art/runtime/check_jni.cc:65] in call to GetObjectClass
F/art ( 1876): art/runtime/check_jni.cc:65] from void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)
F/art ( 1876): art/runtime/check_jni.cc:65] "GLThread 3604" prio=5 tid=16 Runnable
F/art ( 1876): art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12c93900 self=0xad12a000
F/art ( 1876): art/runtime/check_jni.cc:65] | sysTid=1903 nice=0 cgrp=apps sched=0/0 handle=0xb0261780
F/art ( 1876): art/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=20 stm=7 core=1 HZ=100
F/art ( 1876): art/runtime/check_jni.cc:65] | stack=0xa26fe000-0xa2700000 stackSize=1036KB
F/art ( 1876): art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #00 pc 00004c58 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #02 pc 00240e01 /system/lib/libart.so (art::DumpNativeStack(std::1::basic_ostream<char, std::1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #03 pc 002260a9 /system/lib/libart.so (art::Thread::Dump(std::1::basic_ostream<char, std::1::char_traits >&) const+152)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #04 pc 000b00ef /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #05 pc 000b081f /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+58)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #06 pc 000b38c3 /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1270)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #07 pc 000b599d /system/lib/libart.so (art::CheckJNI::GetObjectClass(_JNIEnv*, _jobject*)+20)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #08 pc 0050b1c1 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::JNIUtils::GetClassObjectFromObject(_jobject*, _JNIEnv*)+24)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #09 pc 0050b929 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::JNIUtils::GetJNIMethodInfo(_jobject*, char const*, char const*, _JNIEnv*)+28)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #10 pc 004fe335 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::FacebookProxy::enableDebug(bool)+32)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #11 pc 004ff839 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::FacebookWrapperEnabled::nativeInit(bool)+32)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #12 pc 004ffeaf /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::FacebookWrapperEnabled::init()+150)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #13 pc 00500137 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (sdkbox::PluginFacebook::init()+10)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #14 pc 00421728 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (FacebookManager::base_init()+16)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #15 pc 00421d74 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (GameFacebookManager::init()+24)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #16 pc 00421cc0 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (GameFacebookManager::create()+280)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #17 pc 004233b0 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (AppDelegate::applicationDidFinishLaunching()+1712)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #18 pc 0050c8f8 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (cocos2d::Application::run()+40)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #19 pc 00510ea0 /data/app/com.xxx.xxx/lib/arm/libMyGame.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+224)
F/art ( 1876): art/runtime/check_jni.cc:65] native: #20 pc 000e4d01 /data/dalvik-cache/arm/data@app@xxx.xxx@base.apk@classes.dex (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit__II+88)
F/art ( 1876): art/runtime/check_jni.cc:65] at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native method)
F/art ( 1876): art/runtime/check_jni.cc:65] at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:72)
F/art ( 1876): art/runtime/check_jni.cc:65] at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500)
F/art ( 1876): art/runtime/check_jni.cc:65] at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
F/art ( 1876): art/runtime/check_jni.cc:65]
W/libprocessgroup( 497): failed to open /acct/uid_10032/pid_1464/cgroup.procs: No such file or directory
W/ResourcesManager( 1960): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
Posts: 1
Participants: 1