| Problem in android after latest SDL2 update |
|
Giorgos Sarris
Guest
|
Hi,
I have been using SDL2 for android with my apps/games. It runs perfectly until 2 weeks ago when I had the latest build. Today I updated the SDL from the 'http://hg.libsdl.org' and I build it. It compiles fine but as soon as I run my app on my tablet I get this weird problem: 1) The app does not crash but shows a black screen when it should show the app. 2) There is no error in the logs. What is it? Can you imaging? Which change ij the last 2-3 weeks could have triggered this? Thanks Giorgos |
|||||||||||
|
|
||||||||||||
| Problem in android after latest SDL2 update |
|
Scott Percival
Guest
|
Difficult to say... however there's a tool built into hg to troubleshoot this very problem.
http://www.selenic.com/mercurial/hg.1.html#bisect All you need to do is pick a revision from 2 weeks ago which works and set that as the "good" revision, set the current head as the "bad" revision, and keep building/testing until you isolate which revision introduced the problem. If you can tell us this revision, we'd have a much better chance at suggesting a course of action. On 14 May 2013 23:46, Giorgos Sarris wrote:
|
|||||||||||||
|
|
||||||||||||||
| Problem in android after latest SDL2 update |
|
Sam Lantinga
|
I'm getting a crash at startup. Does anyone with more Android-foo know what broke?
V/SDL (26767): surfaceCreated() V/SDL (26767): surfaceChanged() V/SDL (26767): pixel format RGB_565 V/SDL (26767): Window size:800x1205 I/SDL (26767): SDL_Android_Init() I/SDL (26767): SDL_Android_Init() finished! D/SDL (26767): Falling back to legacy InputStream method for opening file D/SDL (26767): Falling back to legacy InputStream method for opening file V/SDL (26767): Starting up OpenGL ES -1.2 D/libEGL (26767): loaded /system/lib/egl/libEGL_tegra.so D/libEGL (26767): loaded /system/lib/egl/libGLESv1_CM_tegra.so I/ActivityManager( 478): Displayed com.conceptualmathmedia.Equate/.Equate: +508ms D/libEGL (26767): loaded /system/lib/egl/libGLESv2_tegra.so V/SDL (26767): Creating new EGL Surface I/SDL (26767): [STUB] GL_SetSwapInterval I/SDL (26767): [STUB] GL_GetSwapInterval I/SDL (26767): [STUB] GL_DeleteContext V/SDL (26767): Creating new EGL Surface E/BufferQueue( 125): [SurfaceView] connect: already connected (cur=1, req=1) E/libEGL (26767): EGLNativeWindowType 0x40b2db50 already connected to another API E/libEGL (26767): eglCreateWindowSurface:298 error 300b (EGL_BAD_NATIVE_WINDOW) E/SDL (26767): Couldn't create surface V/SDL (26767): Creating new EGL Surface E/BufferQueue( 125): [SurfaceView] connect: already connected (cur=1, req=1) E/libEGL (26767): EGLNativeWindowType 0x40b2db50 already connected to another API E/libEGL (26767): eglCreateWindowSurface:298 error 300b (EGL_BAD_NATIVE_WINDOW) E/SDL (26767): Couldn't create surface F/libc (26767): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 26781 (SDLThread) I/DEBUG ( 124): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 124): Build fingerprint: 'google/nakasi/grouper:4.2.2/JDQ39/573038:user/release-keys' I/DEBUG ( 124): Revision: '0' I/DEBUG ( 124): pid: 26767, tid: 26781, name: SDLThread >>> com.conceptualmathmedia.Equate <<< I/DEBUG ( 124): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 I/DEBUG ( 124): r0 00000000 r1 00000000 r2 00000000 r3 00000000 I/DEBUG ( 124): r4 00000000 r5 635e9d70 r6 00000000 r7 40b31fc0 I/DEBUG ( 124): r8 69304c50 r9 40b31fb8 sl 68918318 fp 69304c64 I/DEBUG ( 124): ip 690fed1c sp 69304820 lr 690965af pc 00000000 cpsr 20000010 I/DEBUG ( 124): d0 497ffff83f800000 d1 3f000000497ffff0 I/DEBUG ( 124): d2 0000001c0000001b d3 0001000100010001 I/DEBUG ( 124): d4 99001f001f001f00 d5 000f000f000f000f I/DEBUG ( 124): d6 00000000001f001f d7 3f0000003f000000 I/DEBUG ( 124): d8 0000000000000000 d9 0000000000000000 I/DEBUG ( 124): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 124): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 124): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 124): d16 0000000000000001 d17 0000000000000000 I/DEBUG ( 124): d18 0000000000000156 d19 0000000000000000 I/DEBUG ( 124): d20 991f1f1f991f1f1f d21 991f1f1f991f1f1f I/DEBUG ( 124): d22 0707070703030303 d23 0000002300000022 I/DEBUG ( 124): d24 0067006700670067 d25 0067006700670067 I/DEBUG ( 124): d26 0067006700670067 d27 0067006700670067 I/DEBUG ( 124): d28 0100010001000100 d29 0100010001000100 I/DEBUG ( 124): d30 0000000100000001 d31 0000000100000001 I/DEBUG ( 124): scr 80000090 I/DEBUG ( 124): I/DEBUG ( 124): backtrace: I/DEBUG ( 124): #00 pc 00000000 <unknown> I/DEBUG ( 124): #01 pc 000625ad /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #02 pc 00062511 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #03 pc 00062673 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #04 pc 00064f01 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #05 pc 0005a4d5 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so (SDL_CreateRenderer+376) I/DEBUG ( 124): #06 pc 000b3cf1 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #07 pc 000b6d9f /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #08 pc 000b6e73 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so (SDL_GetWindowSurface+106) I/DEBUG ( 124): #09 pc 0007a875 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so I/DEBUG ( 124): #10 pc 0005a469 /data/app-lib/com.conceptualmathmedia.Equate-2/libSDL2.so (SDL_CreateRenderer+268) I/DEBUG ( 124): #11 pc 0008be03 /data/app-lib/com.conceptualmathmedia.Equate-2/libmain.so (FrameBuf::Init(int, int, unsigned int, unsigned int, SDL_Surface*)+118) I/DEBUG ( 124): #12 pc 0006f955 /data/app-lib/com.conceptualmathmedia.Equate-2/libmain.so I/DEBUG ( 124): #13 pc 00070075 /data/app-lib/com.conceptualmathmedia.Equate-2/libmain.so (EquateMain(int, char**)+432) I/DEBUG ( 124): #14 pc 0004bf47 /data/app-lib/com.conceptualmathmedia.Equate-2/libmain.so (SDL_main+26) I/DEBUG ( 124): #15 pc 0004bf1d /data/app-lib/com.conceptualmathmedia.Equate-2/libmain.so (Java_org_libsdl_app_SDLActivity_nativeInit+52) I/DEBUG ( 124): #16 pc 0001e290 /system/lib/libdvm.so (dvmPlatformInvoke+112) On Tue, May 14, 2013 at 8:46 AM, Giorgos Sarris wrote:
|
|||||||||||||
|
|
||||||||||||||
| Problem in android after latest SDL2 update |
|
Sam Lantinga
|
It looks like I had old object files laying around. With a clean build everything works correctly.
On Wed, May 15, 2013 at 11:55 PM, Sam Lantinga wrote:
|
|||||||||||||||
|
|
||||||||||||||||

