I used cocos2djs version 3.10, when I call show it crashed here are screenshot.
Hello @jokerx86
May we know what version of SDKBOX and Admob plugin you are using.
Could we have the full stack trace for this issue.
It would be better if you could also post your logs here.
In the mean time, please check whether our sample works for you -
https://github.com/sdkbox/sdkbox-admob-sample
Best,
Pabitra
@pabitrapadhy sdkbox version 1.0.0.7 and admob 2.1.1.2. How to get full stack trace?
Banner working but interstitial will crash. Should I update admob sdk to 7.7.0?
- thread #1: tid = 0x68bee0, 0x000000010479211b, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=50, address=0x103fa63ec)
frame #0: 0x000000010479211b
frame #1: 0x0000000104789a8e
frame #2: 0x000000010995974a libdyld.dylibdladdr + 72 frame #3: 0x0000000105a23d9f UIKit_addBackgroundTask + 128
frame #4: 0x0000000105a23cf4 UIKit-[UIApplication _beginBackgroundTaskWithExpirationHandler:] + 18 frame #5: 0x000000010336edc8 BotJump-mobile-[GADClickTracker beginBackgroundTask] + 133
frame #6: 0x000000010336ea7b BotJump-mobile-[GADClickTracker trackURL:] + 71 frame #7: 0x00000001033ab070 BotJump-mobile-[GADClickTrackerCollection trackURL:cacheEnabled:] + 129
frame #8: 0x00000001033aaf6a BotJump-mobile-[GADClickTrackerCollection trackURLs:cacheEnabled:] + 376 frame #9: 0x000000010338f342 BotJump-mobile-[GADSlot pingImpressionURLs] + 162
frame #10: 0x00000001033d256a BotJump-mobile-[GADSlot(State) didMakeAdImpression] + 130 frame #11: 0x0000000103388bc2 BotJump-mobile-[GADInterstitial presentFromRootViewController:] + 416- frame #12: 0x0000000103358338 BotJump-mobile
sdkbox::AdMobWrapperEnabled::show(this=<unavailable>, name=<unavailable>) + 244 at AdMobWrapper.mm:294 [opt] frame #13: 0x00000001013b8773 BotJump-mobilejs_PluginAdMobJS_PluginAdMob_show(cx=0x00007fac20631690, argc=1, vp=0x00007fac220c0e78) + 611 at PluginAdMobJS.cpp:216
frame #14: 0x00000001030c1067 BotJump-mobilejs::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 487 frame #15: 0x00000001030bbad5 BotJump-mobileInterpret(JSContext*, js::RunState&) + 39445
frame #16: 0x00000001030b2099 BotJump-mobilejs::RunScript(JSContext*, js::RunState&) + 249 frame #17: 0x00000001030c117c BotJump-mobilejs::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 764
frame #18: 0x0000000102fdd383 BotJump-mobilejs_fun_apply(JSContext*, unsigned int, JS::Value*) + 1043 frame #19: 0x00000001030c1067 BotJump-mobilejs::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 487
frame #20: 0x00000001030bbad5 BotJump-mobileInterpret(JSContext*, js::RunState&) + 39445 frame #21: 0x00000001030b2099 BotJump-mobilejs::RunScript(JSContext*, js::RunState&) + 249
frame #22: 0x00000001030c117c BotJump-mobilejs::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 764 frame #23: 0x0000000102fddda6 BotJump-mobilejs::CallOrConstructBoundFunction(JSContext*, unsigned int, JS::Value*) + 646
frame #24: 0x00000001030c1067 BotJump-mobilejs::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) + 487 frame #25: 0x00000001030c1525 BotJump-mobilejs::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandleJS::Value) + 485
frame #26: 0x0000000102fad295 BotJump-mobileJS_CallFunctionValue(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) + 69 frame #27: 0x0000000102e2a569 BotJump-mobileJSFunctionWrapper::invoke(unsigned int, JS::Value*, JS::MutableHandleJS::Value) + 313
frame #28: 0x0000000102c9bdbf BotJump-mobilejs_cocos2dx_MenuItemFont_initWithString(JSContext*, unsigned int, JS::Value*)::$_19::operator()(cocos2d::Ref*) const + 335 frame #29: 0x0000000102c9bc60 BotJump-mobilevoid std::__1::__invoke_void_return_wrapper::__call<js_cocos2dx_MenuItemFont_initWithString(JSContext*, unsigned int, JS::Value*)::$_19&, cocos2d::Ref*>(js_cocos2dx_MenuItemFont_initWithString(JSContext*, unsigned int, JS::Value*)::$_19&&&, cocos2d::Ref*&&) + 80
frame #30: 0x0000000102c9b9ec BotJump-mobilestd::__1::__function::__func<js_cocos2dx_MenuItemFont_initWithString(JSContext*, unsigned int, JS::Value*)::$_19, std::__1::allocator<js_cocos2dx_MenuItemFont_initWithString(JSContext*, unsigned int, JS::Value*)::$_19>, void (cocos2d::Ref*)>::operator()(cocos2d::Ref*&&) + 60 frame #31: 0x000000010147b8f2 BotJump-mobilestd::__1::function<void (cocos2d::Ref*)>::operator()(cocos2d::Ref*) const + 162
frame #32: 0x0000000101d2eafb BotJump-mobilecocos2d::MenuItem::activate() + 91 frame #33: 0x0000000101d2fbf8 BotJump-mobilecocos2d::MenuItemLabel::activate() + 88
frame #34: 0x0000000101d25bb8 BotJump-mobilecocos2d::Menu::onTouchEnded(cocos2d::Touch*, cocos2d::Event*) + 248 frame #35: 0x0000000101d2be85 BotJump-mobilevoid std::__1::__invoke_void_return_wrapper::__call<std::__1::__bind<void (cocos2d::Menu::)(cocos2d::Touch, cocos2d::Event*), cocos2d::Menu*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&, cocos2d::Touch*, cocos2d::Event*>(std::__1::__bind<void (cocos2d::Menu::)(cocos2d::Touch, cocos2d::Event*), cocos2d::Menu*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>&&&, cocos2d::Touch*&&, cocos2d::Event*&&) + 885
frame #36: 0x0000000101d2ba3c BotJump-mobilestd::__1::__function::__func<std::__1::__bind<void (cocos2d::Menu::*)(cocos2d::Touch*, cocos2d::Event*), cocos2d::Menu*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&>, std::__1::allocator<std::__1::__bind<void (cocos2d::Menu::*)(cocos2d::Touch*, cocos2d::Event*), cocos2d::Menu*, std::__1::placeholders::__ph<1>&, std::__1::placeholders::__ph<2>&> >, void (cocos2d::Touch*, cocos2d::Event*)>::operator()(cocos2d::Touch*&&, cocos2d::Event*&&) + 76 frame #37: 0x00000001022545c2 BotJump-mobilestd::__1::function<void (cocos2d::Touch*, cocos2d::Event*)>::operator()(cocos2d::Touch*, cocos2d::Event*) const + 178
frame #38: 0x0000000102237280 BotJump-mobilecocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3::operator()(cocos2d::EventListener*) const + 2064 frame #39: 0x0000000102236a60 BotJump-mobilebool std::__1::__invoke_void_return_wrapper::__call<cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3&, cocos2d::EventListener*>(cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3&&&, cocos2d::EventListener*&&) + 80
frame #40: 0x000000010223693c BotJump-mobilestd::__1::__function::__func<cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3, std::__1::allocator<cocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*)::$_3>, bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*&&) + 60 frame #41: 0x000000010223ecc2 BotJump-mobilestd::__1::function<bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*) const + 162
frame #42: 0x0000000102229ee9 BotJump-mobilecocos2d::EventDispatcher::dispatchTouchEventToListeners(cocos2d::EventDispatcher::EventListenerVector*, std::__1::function<bool (cocos2d::EventListener*)> const&) + 2809 frame #43: 0x000000010222b66f BotJump-mobilecocos2d::EventDispatcher::dispatchTouchEvent(cocos2d::EventTouch*) + 2191
frame #44: 0x000000010222a19b BotJump-mobilecocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*) + 187 frame #45: 0x00000001024d98fd BotJump-mobilecocos2d::GLView::handleTouchesOfEndOrCancel(cocos2d::EventTouch::EventCode, int, long*, float*, float*) + 2157
frame #46: 0x00000001024d9bba BotJump-mobilecocos2d::GLView::handleTouchesEnd(int, long*, float*, float*) + 58 frame #47: 0x000000010230e4a7 BotJump-mobile-[CCEAGLView touchesEnded:withEvent:] + 1079
frame #48: 0x0000000105a7049b UIKit-[UIWindow _sendTouchesForEvent:] + 835 frame #49: 0x0000000105a711d0 UIKit-[UIWindow sendEvent:] + 865
frame #50: 0x0000000105a1fb66 UIKit-[UIApplication sendEvent:] + 263 frame #51: 0x00000001059f9d97 UIKit_UIApplicationHandleEventQueue + 6844
frame #52: 0x000000010939aa31 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 frame #53: 0x000000010939095c CoreFoundation__CFRunLoopDoSources0 + 556
frame #54: 0x000000010938fe13 CoreFoundation__CFRunLoopRun + 867 frame #55: 0x000000010938f828 CoreFoundationCFRunLoopRunSpecific + 488
frame #56: 0x000000010a359ad2 GraphicsServicesGSEventRunModal + 161 frame #57: 0x00000001059ff610 UIKitUIApplicationMain + 171
frame #58: 0x0000000101364ee4 BotJump-mobilemain(argc=1, argv=0x00007fff5e89c680) + 100 at main.m:13 frame #59: 0x000000010995a92d libdyld.dylibstart + 1
- frame #12: 0x0000000103358338 BotJump-mobile
After update admob sdk to 7.7.0 it working now 
