Fatal signal 11 (SIGSEGV) at 0x4e6e6000 (code=1)
Fatal connect socket fail in socket_abstract_client
大家遇到过这样的问题吗?
奇怪的是我根本没有开始调用网络,怎么会提示Fatal connect socket fail in socket_abstract_client
另外socket fail in socket_abstract_client这个是啥个意思呢
Fatal signal 11 (SIGSEGV) at 0x4e6e6000 (code=1)
Fatal connect socket fail in socket_abstract_client
大家遇到过这样的问题吗?
奇怪的是我根本没有开始调用网络,怎么会提示Fatal connect socket fail in socket_abstract_client
另外socket fail in socket_abstract_client这个是啥个意思呢
引擎版本,低端手机的型号是?重现方式和概率是怎么样的?
引擎版本3.10 手机型号是:联想A798t ,100%重现 谢谢
什么情况下崩溃?是一开始运行还是要什么条件?还有把log多贴点,android的日志很乱的,你以为的log有时并不是真正的原因
11-16 21:00:11.529: D/jdwp(7836): sendBufferedRequest : len=0x31
11-16 21:00:11.602: D/ActivityThread(7836): BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{417e6c08 com.SyGameXZZ}}
11-16 21:00:11.617: I/dalvikvm(7836): Could not find method android.os.StatFs.getBlockSizeLong, referenced from method com.SyGameXZZ.MainActivity.CheckDiskSize
11-16 21:00:11.617: W/dalvikvm(7836): VFY: unable to resolve virtual method 733: Landroid/os/StatFs;.getBlockSizeLong ()J
11-16 21:00:11.617: D/dalvikvm(7836): VFY: replacing opcode 0x6e at 0x0009
11-16 21:00:11.618: I/dalvikvm(7836): Could not find method android.os.StatFs.getBlockSizeLong, referenced from method com.SyGameXZZ.MainActivity.CheckDiskSizeForRun
11-16 21:00:11.618: W/dalvikvm(7836): VFY: unable to resolve virtual method 733: Landroid/os/StatFs;.getBlockSizeLong ()J
11-16 21:00:11.618: D/dalvikvm(7836): VFY: replacing opcode 0x6e at 0x0009
11-16 21:00:11.638: D/dalvikvm(7836): Trying to load lib /mnt/asec/com.SyGameXZZ-1/lib/libcocos2dcpp.so 0x417ea380
11-16 21:00:11.662: D/dalvikvm(7836): Added shared lib /mnt/asec/com.SyGameXZZ-1/lib/libcocos2dcpp.so 0x417ea380
11-16 21:00:11.662: D/JniHelper(7836): JniHelper::setJavaVM(0x2f60a0), pthread_self() = 1074668924
11-16 21:00:11.663: D/main(7836): cocos_android_app_init
11-16 21:00:11.686: D/dalvikvm(7836): threadid=11: interp stack at 0x4c0ea000
11-16 21:00:11.687: D/dalvikvm(7836): threadid=12: interp stack at 0x4c0f2000
11-16 21:00:11.706: D/dalvikvm(7836): threadid=13: interp stack at 0x4c0fa000
11-16 21:00:11.706: D/Cocos2dxActivity(7836): model=A798t
11-16 21:00:11.706: D/Cocos2dxActivity(7836): product=A798t
11-16 21:00:11.706: D/Cocos2dxActivity(7836): isEmulator=false
11-16 21:00:11.713: D/dalvikvm(7836): threadid=13: calling run()
11-16 21:00:11.716: D/dalvikvm(7836): threadid=14: interp stack at 0x4c102000
11-16 21:00:11.718: I/TestinAgent(7836): TestinAgent V2.1.0 Initializing…
11-16 21:00:11.719: D/dalvikvm(7836): threadid=14: calling run()
11-16 21:00:11.725: D/dalvikvm(7836): threadid=15: interp stack at 0x4c985000
11-16 21:00:11.725: D/dalvikvm(7836): threadid=15: calling run()
11-16 21:00:11.729: D/dalvikvm(7836): threadid=15: exiting
11-16 21:00:11.729: D/dalvikvm(7836): threadid=15: bye!
11-16 21:00:11.729: D/dalvikvm(7836): threadid=0: freeing
11-16 21:00:11.731: D/dalvikvm(7836): threadid=15: interp stack at 0x4c98d000
11-16 21:00:11.732: D/dalvikvm(7836): threadid=15: calling run()
11-16 21:00:11.733: D/dalvikvm(7836): threadid=16: interp stack at 0x4c995000
11-16 21:00:11.734: D/dalvikvm(7836): threadid=17: interp stack at 0x4c985000
11-16 21:00:11.734: W/SyGameXZZ(7836): onStart
11-16 21:00:11.734: D/Cocos2dxActivity(7836): onResume()
11-16 21:00:11.735: W/SyGameXZZ(7836): onResume
11-16 21:00:11.735: D/dalvikvm(7836): threadid=18: interp stack at 0x4c99d000
11-16 21:00:11.735: D/ActivityThread(7836): ACT-AM_ON_RESUME_CALLED ActivityRecord{417e8910 token=android.os.BinderProxy@417e81d8 {com.SyGameXZZ/com.SyGameXZZ.MainActivity}}
11-16 21:00:11.737: D/dalvikvm(7836): threadid=18: calling run()
11-16 21:00:11.738: D/dalvikvm(7836): threadid=19: interp stack at 0x4c9a5000
11-16 21:00:11.739: D/dalvikvm(7836): threadid=17: calling run()
11-16 21:00:11.740: D/dalvikvm(7836): threadid=19: calling run()
11-16 21:00:11.740: D/dalvikvm(7836): threadid=16: calling run()
11-16 21:00:11.741: D/ActivityThread(7836): ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{417e8910 token=android.os.BinderProxy@417e81d8 {com.SyGameXZZ/com.SyGameXZZ.MainActivity}}
11-16 21:00:11.745: D/dalvikvm(7836): threadid=20: interp stack at 0x4c9ad000
11-16 21:00:11.748: D/dalvikvm(7836): threadid=21: interp stack at 0x4c9c3000
11-16 21:00:11.748: D/dalvikvm(7836): threadid=21: calling run()
11-16 21:00:11.748: D/dalvikvm(7836): threadid=20: calling run()
11-16 21:00:11.752: D/dalvikvm(7836): threadid=21: exiting
11-16 21:00:11.752: D/dalvikvm(7836): threadid=21: bye!
11-16 21:00:11.752: D/dalvikvm(7836): threadid=0: freeing
11-16 21:00:11.756: D/libc-netbsd(7836): getaddrinfo: apm-config.qtestin.com return error = 0x8 >>
11-16 21:00:11.756: D/dalvikvm(7836): threadid=21: interp stack at 0x4c9bb000
11-16 21:00:11.757: D/dalvikvm(7836): threadid=21: calling run()
11-16 21:00:11.768: D/libEGL(7836): loaded /system/lib/egl/libGLES_android.so
11-16 21:00:11.768: D/libc-netbsd(7836): getaddrinfo: apm-config.qtestin.com get result from proxy >>
11-16 21:00:11.770: I/System.out(7836): [socket][0] connection apm-config.qtestin.com/115.29.226.34:80;LocalPort=49149(30000)
11-16 21:00:11.770: I/System.out(7836): [CDS]connect[apm-config.qtestin.com/115.29.226.34:80] tm:30
11-16 21:00:11.771: D/Posix(7836): [Posix_connect Debug]Process com.SyGameXZZ :80
11-16 21:00:11.772: D/libEGL(7836): loaded /vendor/lib/egl/libEGL_mtk.so
11-16 21:00:11.775: D/libEGL(7836): loaded /vendor/lib/egl/libGLESv1_CM_mtk.so
11-16 21:00:11.778: D/libEGL(7836): loaded /vendor/lib/egl/libGLESv2_mtk.so
11-16 21:00:11.817: D/OpenGLRenderer(7836): Enabling debug mode 0
11-16 21:00:11.819: I/SurfaceView(7836): Changes: creating=true format=true size=true visible=true left=true top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=false mRequestedVisible=true
11-16 21:00:11.821: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=-1)
11-16 21:00:11.827: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 0 - 812, 480)
11-16 21:00:11.828: I/SurfaceView(7836): visibleChanged – surfaceCreated
11-16 21:00:11.828: I/SurfaceView(7836): surfaceChanged – format=-3 w=812 h=480
11-16 21:00:11.832: I/SurfaceView(7836): surfaceRedrawNeeded
11-16 21:00:11.832: I/SurfaceView(7836): finishedDrawing
11-16 21:00:11.834: V/SurfaceView(7836): Layout: x=0 y=0 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:11.837: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=true redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:11.838: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:11.841: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 0 - 812, 480)
11-16 21:00:11.841: I/SurfaceView(7836): surfaceRedrawNeeded
11-16 21:00:11.841: I/SurfaceView(7836): finishedDrawing
11-16 21:00:11.842: V/SurfaceView(7836): Layout: x=0 y=0 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:11.871: D/cocos2d-x debug info(7836): {
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_vertex_array_object: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_BGRA8888: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_ATITC: false
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_S3TC: false
11-16 21:00:11.871: D/cocos2d-x debug info(7836): cocos2d.x.version: cocos2d-x-3.10
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_discard_framebuffer: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): cocos2d.x.compiled_with_profiler: false
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_PVRTC: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): cocos2d.x.build_type: DEBUG
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.renderer: PowerVR SGX 531
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_ETC1: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): cocos2d.x.compiled_with_gl_state_cache: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.version: OpenGL ES 2.0 build 1.8@905891
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.supports_NPOT: true
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.max_texture_units: 8
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.vendor: Imagination Technologies
11-16 21:00:11.871: D/cocos2d-x debug info(7836): gl.max_texture_size: 2048
11-16 21:00:11.871: D/cocos2d-x debug info(7836): }
11-16 21:00:11.871: D/cocos2d-x debug info(7836): setViewPortInPoints x=0.000000,y=0.000000,w=812.000000,h=480.000000
11-16 21:00:11.882: D/Cocos2dxActivity(7836): onWindowFocusChanged() hasFocus=true
11-16 21:00:11.907: E/cocos2d-x debug info(7836): ScreenW:812.000000,H=480.000000
11-16 21:00:11.907: D/cocos2d-x debug info(7836): setViewPortInPoints x=0.000000,y=0.000000,w=812.000000,h=480.000000
11-16 21:00:11.909: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:11.909: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:11.913: D/dalvikvm(7836): threadid=22: interp stack at 0x4dda9000
11-16 21:00:11.915: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 6 - 812, 486)
11-16 21:00:11.916: V/SurfaceView(7836): Layout: x=0 y=6 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:11.918: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:11.926: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:11.931: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.017: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.017: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:12.021: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 38 - 812, 518)
11-16 21:00:12.022: V/SurfaceView(7836): Layout: x=0 y=38 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.033: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.033: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:12.038: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 4 - 812, 484)
11-16 21:00:12.039: V/SurfaceView(7836): Layout: x=0 y=4 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.053: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.053: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:12.057: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 2 - 812, 482)
11-16 21:00:12.058: V/SurfaceView(7836): Layout: x=0 y=2 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.075: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.075: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:12.078: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 1 - 812, 481)
11-16 21:00:12.079: V/SurfaceView(7836): Layout: x=0 y=1 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.090: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.109: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.110: I/SurfaceView(7836): Cur surface: Surface(name=null, identity=685)
11-16 21:00:12.113: I/SurfaceView(7836): New surface: Surface(name=null, identity=685), vis=true, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.114: V/SurfaceView(7836): Layout: x=0 y=0 w=812 h=480, frame=Rect(0, 0 - 812, 480)
11-16 21:00:12.129: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.145: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.158: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.173: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.192: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:12.224: I/SurfaceView(7836): Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceVisibilityChanged=false mVisible=true mRequestedVisible=true
11-16 21:00:13.441: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.442: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.442: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.442: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.459: D/cocos2d-x debug info(7836): FBO is 70001 _fbo 70001 color, 0 ds
11-16 21:00:13.611: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.612: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.612: E/cocos2d-x debug info(7836): label In
11-16 21:00:13.616: E/cocos2d-x debug info(7836): label2 In
11-16 21:00:13.616: E/cocos2d-x debug info(7836): nDefaultFontWidth=20,nDefaultFontHeight=24,nDefFontWidth_InMap=25,nDefFontHeight_InMap=32
11-16 21:00:13.639: D/cocos2d-x debug info(7836): create rendererRecreatedListener for GLProgramState
11-16 21:00:13.668: A/libc(7836): Fatal signal 11 (SIGSEGV) at 0x4e6e6000 (code=1)
11-16 21:00:13.668: A/libc(7836): Fatal connect socket fail in socket_abstract_client
启动就这样
还没开始显示第一张图就崩溃了。谢谢
能否定位到具体是哪一行代码引擎的崩溃?
定位不了,跳出了引擎的代码。
手机系统太低??内存太小,我发现是512M内存?或者是用了这个手机不支持的音乐格式?等等。。。。
还没有启动呢,在启动过程中崩溃了,我在加载纹理的地方加了日志输出。没有看到我的日志。
还没有到播放音乐呢
查到了,是CCRenderer.cpp这一行直接崩溃了
glDrawElements(GL_TRIANGLES, (GLsizei) indexToDraw, GL_UNSIGNED_SHORT, (GLvoid*) (startIndex*sizeof(_indices[0])) );
跟踪到的变量。indexToDraw=6,startIndex=0。
感觉是好像VBO
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _quadbuffersVBO[1]);
没有起到作用,好像直接从(GLvoid*) (startIndex*sizeof(_indices[0]))这个地址拷贝数据一样
因为这个地址=0,而memcpy错误的前一个地址是0x0.
512内存应该是完全足够的。不至于导致crash
只在这台设备上会出现么?可惜我这里没有这台设备,不好重现就不知道如何帮助你解决此问题啊。
谢谢,我找到问题了,是图片大小的问题,我们使用的ETC1格式图片,经测试,这个手机只支持2的n次幂尺寸的ETC1格式,虽然打印的GL_EXTENSIONS字符串中
GL_EXTENSIONS=GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_multisampled_render_to_texture
包含了GL_IMG_texture_npot,但是它对于ETC1的非2N次幂图片,还是粗暴的闪退掉了。似乎也目前无法准确判断是否支持非2N次幂的ETC1格式图片。另外图片改成2N次幂,对于包体和内存占用大小牺牲太大了。所以不鸟这个手机了。据你们了解,这类的手机多吗?
最后还是非常感谢支持。
OpenGLES 2 标准是支持非2次方的图片格式的。你这台手机比较奇葩。
我们这里没有碰到过这样的手机。