Webview Issue - Android Back Button - Cocos Creator 1.4

Test environment:

-Cocos Creator 1.3.3
-NDK r10e
-Nexus 6P (Android 7.1.1)

Crash Scenario

Build “test” project attached to an Android devices. Open the test application and tap on webview to focus then click on the Android Back Button. Application will crash when you reopen the same application.

test.zip (477.8 KB)

Crash Log:

02-08 11:30:57.745 28558-28558/? I/art: Late-enabling -Xcheck:jni
02-08 11:30:57.858 28558-28558/org.cocos2d.helloworld D/JniHelper: JniHelper::setJavaVM(0xf40b20c0), pthread_self() = -154122956
02-08 11:30:57.858 28558-28558/org.cocos2d.helloworld D/main: cocos_android_app_init
02-08 11:30:57.860 28558-28558/org.cocos2d.helloworld D/Cocos2dxHelper: isSupportLowLatency:true
02-08 11:30:57.864 28558-28558/org.cocos2d.helloworld D/Cocos2dxHelper: sampleRate: 48000, framesPerBuffer: 192
02-08 11:30:57.864 28558-28558/org.cocos2d.helloworld D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp: nativeSetAudioDeviceInfo: sampleRate: 48000, bufferSizeInFrames: 192
02-08 11:30:57.905 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: model=Nexus 6P
02-08 11:30:57.905 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: product=angler
02-08 11:30:57.905 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: isEmulator=false
02-08 11:30:57.910 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: AgentManager: loadALLPlugin(), Get the supported plugins: NULL
02-08 11:30:57.910 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin UserDebug is : com/anysdk/framework/UserDebug
02-08 11:30:57.910 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/UserDebug----
02-08 11:30:57.911 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/UserDebug:32
02-08 11:30:57.911 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(UserDebug,32)
02-08 11:30:57.912 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin IAPDebug is : com/anysdk/framework/IAPDebug
02-08 11:30:57.913 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/IAPDebug----
02-08 11:30:57.913 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: IAPDebug: payResult : 5 msg : init success
02-08 11:30:57.914 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/IAPDebug:8
02-08 11:30:57.914 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(IAPDebug,8)
02-08 11:30:57.914 28558-28575/org.cocos2d.helloworld D/FLQG_LOG: Statistics: onActionResult(IAPDebug,5,init success)
02-08 11:30:57.914 28558-28575/org.cocos2d.helloworld W/FLQG_LOG: IAPObject: Listener of plugin IAPDebug not set correctly
02-08 11:30:57.915 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: IAPDebug: getPluginId() invoked!
02-08 11:30:57.915 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin AnalyticsDebug is : com/anysdk/framework/AnalyticsDebug
02-08 11:30:57.915 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AnalyticsDebug----
02-08 11:30:57.916 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AnalyticsDebug:1
02-08 11:30:57.916 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(AnalyticsDebug,1)
02-08 11:30:57.917 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin AdsDebug is : com/anysdk/framework/AdsDebug
02-08 11:30:57.917 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AdsDebug----
02-08 11:30:57.917 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AdsDebug:16
02-08 11:30:57.917 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(AdsDebug,16)
02-08 11:30:57.918 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin ShareDebug is : com/anysdk/framework/ShareDebug
02-08 11:30:57.918 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/ShareDebug----
02-08 11:30:57.918 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/ShareDebug:2
02-08 11:30:57.919 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(ShareDebug,2)
02-08 11:30:57.919 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin SocialDebug is : com/anysdk/framework/SocialDebug
02-08 11:30:57.920 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/SocialDebug----
02-08 11:30:57.920 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/SocialDebug:4
02-08 11:30:57.920 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(SocialDebug,4)
02-08 11:30:57.921 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin PushDebug is : com/anysdk/framework/PushDebug
02-08 11:30:57.921 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/PushDebug----
02-08 11:30:57.921 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/PushDebug:64
02-08 11:30:57.921 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(PushDebug,64)
02-08 11:30:57.922 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin CrashDebug is : com/anysdk/framework/CrashDebug
02-08 11:30:57.922 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/CrashDebug----
02-08 11:30:57.922 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: CrashDebug: configDeveloperInfo({})invoked!
02-08 11:30:57.923 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/CrashDebug:128
02-08 11:30:57.923 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(CrashDebug,128)
02-08 11:30:57.924 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin CustomDebug is : com/anysdk/framework/CustomDebug
02-08 11:30:57.924 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/CustomDebug----
02-08 11:30:57.924 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/CustomDebug:256
02-08 11:30:57.924 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(CustomDebug,256)
02-08 11:30:57.925 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin RECDebug is : com/anysdk/framework/RECDebug
02-08 11:30:57.925 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/RECDebug----
02-08 11:30:57.926 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/RECDebug:512
02-08 11:30:57.926 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(RECDebug,512)
02-08 11:30:57.927 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: Java class name of plugin AdTrackingDebug is : com/anysdk/framework/AdTrackingDebug
02-08 11:30:57.927 28558-28558/org.cocos2d.helloworld I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AdTrackingDebug----
02-08 11:30:57.927 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AdTrackingDebug:1024
02-08 11:30:57.927 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: createPlugin(AdTrackingDebug,1024)
02-08 11:30:57.929 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: initInfo
02-08 11:30:57.933 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onResume()
02-08 11:30:57.974 28558-28575/org.cocos2d.helloworld I/Adreno: QUALCOMM build                   : a5b4970, If5818605d9
                                                                Build Date                       : 10/12/16
                                                                OpenGL ES Shader Compiler Version: XE031.09.00.04
                                                                Local Branch                     : N24D
                                                                Remote Branch                    : 
                                                                Remote Branch                    : 
                                                                Reconstruct Branch               : 
02-08 11:30:57.988 28558-28575/org.cocos2d.helloworld D/cocos2d-x: {
                                                                   	gl.supports_OES_packed_depth_stencil: true
                                                                   	gl.supports_vertex_array_object: true
                                                                   	gl.supports_BGRA8888: false
                                                                   	cocos2d.x.version: 1.3.3-lite
                                                                   	gl.supports_discard_framebuffer: true
                                                                   	cocos2d.x.compiled_with_profiler: false
                                                                   	gl.supports_PVRTC: false
                                                                   	cocos2d.x.build_type: DEBUG
                                                                   	gl.renderer: Adreno (TM) 430
                                                                   	gl.supports_OES_depth24: true
                                                                   	gl.supports_ETC1: true
                                                                   	gl.supports_OES_map_buffer: false
                                                                   	cocos2d.x.compiled_with_gl_state_cache: true
                                                                   	gl.version: OpenGL ES 3.2 V@145.0 (GIT@If5818605d9)
                                                                   	gl.supports_NPOT: true
                                                                   	gl.max_texture_units: 96
                                                                   	gl.vendor: Qualcomm
                                                                   	gl.max_texture_size: 16384
                                                                   }
02-08 11:30:57.988 28558-28575/org.cocos2d.helloworld E/cocos2d-x: cocos2d: warning, Director::setProjection() failed because size is 0
02-08 11:30:58.024 28558-28575/org.cocos2d.helloworld D/cocos2d-x: cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
02-08 11:30:58.059 28558-28575/org.cocos2d.helloworld D/cocos2d-x: cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
02-08 11:30:58.066 28558-28575/org.cocos2d.helloworld D/cocos2d: android SDK version:25
02-08 11:30:58.437 28558-28575/org.cocos2d.helloworld D/cocos2d-x debug info: Cocos2d-JS v3.13
02-08 11:30:58.559 28558-28575/org.cocos2d.helloworld D/cocos2d-x: create rendererRecreatedListener for GLProgramState
02-08 11:30:58.560 28558-28575/org.cocos2d.helloworld D/cocos2d-x: cocos2d: QuadCommand: resizing index size from [-1] to [2560]
02-08 11:30:58.590 28558-28575/org.cocos2d.helloworld D/cocos2d-x debug info: Success to load scene: db://assets/Scene/test.fire
02-08 11:30:58.604 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
02-08 11:30:58.616 28558-28558/org.cocos2d.helloworld D/ApplicationLoaders: ignored Vulkan layer search path /data/app/com.android.chrome-1/lib/arm:/data/app/com.android.chrome-1/base.apk!/lib/armeabi-v7a for namespace 0xf6a84090
02-08 11:30:58.619 28558-28558/org.cocos2d.helloworld I/WebViewFactory: Loading com.android.chrome version 55.0.2883.91 (code 288309152)
02-08 11:30:58.648 28558-28558/org.cocos2d.helloworld I/cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 2985-2988)
02-08 11:30:58.648 28558-28558/org.cocos2d.helloworld I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
02-08 11:30:58.657 28558-28558/org.cocos2d.helloworld I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
02-08 11:30:58.658 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0
02-08 11:30:58.671 28558-28558/org.cocos2d.helloworld I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
02-08 11:30:58.758 28558-28558/org.cocos2d.helloworld I/cr_Ime: ImeThread is enabled.
02-08 11:30:58.763 28558-28589/org.cocos2d.helloworld W/cr_media: Requires BLUETOOTH permission
02-08 11:30:58.818 28558-28601/org.cocos2d.helloworld E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
02-08 11:30:58.820 28558-28558/org.cocos2d.helloworld E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-08 11:30:58.844 28558-28601/org.cocos2d.helloworld W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
02-08 11:30:58.863 28558-28601/org.cocos2d.helloworld I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
02-08 11:30:58.917 28558-28575/org.cocos2d.helloworld D/FLQG_LOG: Statistics: onActionResult(UserDebug,0,init success)
02-08 11:30:58.918 28558-28575/org.cocos2d.helloworld W/FLQG_LOG: UserObject: callback of plugin UserDebug not set correctly 
02-08 11:30:58.924 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: CustomDebug: CustomResult result : 80000 msg : CUSTOMRESULT_CUSTOMREXTENSION
02-08 11:30:58.934 28558-28575/org.cocos2d.helloworld D/FLQG_LOG: Statistics: onActionResult(CustomDebug,80000,CUSTOMRESULT_CUSTOMREXTENSION)
02-08 11:30:58.934 28558-28575/org.cocos2d.helloworld W/FLQG_LOG: CustomObject: Listener of plugin CustomDebug not set correctly
02-08 11:30:58.934 28558-28575/org.cocos2d.helloworld D/FLQG_LOG: Statistics: onActionResult(RECDebug,0,init  success)
02-08 11:30:58.935 28558-28575/org.cocos2d.helloworld W/FLQG_LOG: RECObject: Listener of plugin RECDebug not set correctly
02-08 11:30:59.349 28558-28558/org.cocos2d.helloworld W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 28558
02-08 11:30:59.674 28558-28607/org.cocos2d.helloworld D/NetworkSecurityConfig: No Network Security Config specified, using platform default
02-08 11:31:00.857 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://hm.baidu.com/h.js?dc2a1a0f208fdb13266eebc8b6278cb3, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:00.857 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://hm.baidu.com/h.js?dc2a1a0f208fdb13266eebc8b6278cb3, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:01.105 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(513)] "A Parser-blocking, cross-origin script, http://hm.baidu.com/h.js?dc2a1a0f208fdb13266eebc8b6278cb3, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://www.cocos.com/ (513)
02-08 11:31:01.106 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(513)] "A Parser-blocking, cross-origin script, http://hm.baidu.com/h.js?dc2a1a0f208fdb13266eebc8b6278cb3, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://www.cocos.com/ (513)
02-08 11:31:01.347 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:01.348 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:01.384 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://c.cnzz.com/core.php?web_id=1255078670&show=pic&t=z, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:01.385 28558-28594/org.cocos2d.helloworld W/WebKit: A Parser-blocking, cross-origin script, http://c.cnzz.com/core.php?web_id=1255078670&show=pic&t=z, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.
02-08 11:31:01.387 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(526)] "A Parser-blocking, cross-origin script, http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://www.cocos.com/ (526)
02-08 11:31:01.387 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(526)] "A Parser-blocking, cross-origin script, http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://www.cocos.com/ (526)
02-08 11:31:01.388 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(16)] "A Parser-blocking, cross-origin script, http://c.cnzz.com/core.php?web_id=1255078670&show=pic&t=z, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic (16)
02-08 11:31:01.388 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(16)] "A Parser-blocking, cross-origin script, http://c.cnzz.com/core.php?web_id=1255078670&show=pic&t=z, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: http://s11.cnzz.com/z_stat.php?id=1255078670&show=pic (16)
02-08 11:31:02.255 28558-28575/org.cocos2d.helloworld D/cocos2d-x debug info: [object Object]
02-08 11:31:02.434 28558-28558/org.cocos2d.helloworld I/chromium: [INFO:CONSOLE(256)] "Uncaught TypeError: Cannot read property 'trigger' of undefined", source: http://www.cocos.com/wp-content/themes/cocos/js/zepto.js (256)
02-08 11:31:05.564 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=false
02-08 11:31:05.564 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onPause()
02-08 11:31:05.943 28558-28575/org.cocos2d.helloworld D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -322963168
02-08 11:31:08.010 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: model=Nexus 6P
02-08 11:31:08.010 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: product=angler
02-08 11:31:08.010 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: isEmulator=false
02-08 11:31:08.014 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: AgentManager: loadALLPlugin(), Get the supported plugins: NULL
02-08 11:31:08.014 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: IAPDebug: getPluginId() invoked!
02-08 11:31:08.014 28558-28558/org.cocos2d.helloworld D/FLQG_LOG: Statistics: initInfo
02-08 11:31:08.019 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onResume()
02-08 11:31:08.083 28558-28701/org.cocos2d.helloworld D/cocos2d-x: reload all texture
02-08 11:31:08.083 28558-28701/org.cocos2d.helloworld D/cocos2d-x: Dirty Uniform and Attributes of GLProgramState
02-08 11:31:08.141 28558-28558/org.cocos2d.helloworld D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
02-08 11:31:08.150 28558-28701/org.cocos2d.helloworld E/cocos js error:: <no filename="filename"> line:0 msg:too much recursion
...
02-08 11:31:08.167 28558-28701/org.cocos2d.helloworld E/cocos js error:: <no filename="filename"> line:0 msg:too much recursion
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld W/google-breakpad: Chrome build fingerprint:
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld W/google-breakpad: 1.0
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld W/google-breakpad: 1
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
02-08 11:31:08.241 28558-28701/org.cocos2d.helloworld A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xd74fcf6c in tid 28701 (GLThread 203)
                                                              
                                                              [ 02-08 11:31:08.241   375:  375 W/         ]
                                                              debuggerd: handling request: pid=28558 uid=10425 gid=10425 tid=28701

I’m using Creator 1.10
Is the webview able to goBack() when tapping on Android back button?
Currently the app close on pressing back button.
@slackmoehrle

Hmm good question. I don’t know. @jare

I pull a request to fix this case.

Any solution to this yet?

How do you override the back button listener when webview is a node of canvas?

I am trying to listen to the back button with the code below, but no luck till now.

onLoad: function() {
cc.eventManager.addListener({
event: cc.EventListener.KEYBOARD,
onKeyPressed: function(keyCode, event) {
if (keyCode === cc.KEY.back) {
// the back button of Android Device is pressed
// maybe it’s not work in Web environment
cc.director.loadScene(‘lobby’);
}
}
}, this.node);
},