Trouble with LockTexture & TextureStreaming

Sergi Pasoev <s.pasoev at gmail.com> writes:

Hi

I found suspicious errors while debugging the program which uses SDL to
display images as SDL_Texture-s as I was trying to make the valgrind
output clean. Namely, SDL_dynapi_procs.h: No such file or directory. And
SDL_render.c: No such file or directory.

A fuller view on error as I got while running the program on gdb:

SDL_RenderCopyEx (a=0x8074f88, b=0x84f7308, c=0xbfffed70,
d=0xbfffed60, e=0, f=0x0, g=SDL_FLIP_NONE)
     at
/build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/dynapi/SDL_dynapi_procs.h:379
379
/build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/dynapi/SDL_dynapi_procs.h:
No such file or directory.
(gdb) step
SDL_RenderCopyEx_REAL (renderer=0x8074f88, texture=0x84f7308,
srcrect=0xbfffed70, dstrect=0xbfffed60, angle=0, center=0x0,
     flip=SDL_FLIP_NONE) at
/build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/render/SDL_render.c:1694
1694
/build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/render/SDL_render.c:
No such file or directory.

Also, even though I get these errors, all the textures are correctly
loaded and displayed, so it seems to work. Any ideas on why that can be?
Of course, there might be errors in my code that calls SDL_RenderCopyEx,
but still.

I am using SDL 2.0.2 on Debian Gnu/Linux.

Thanks

I assume you only get those errors when you stop the program in gdb?

These error messages means that gdb can’t find the mentioned file, so it
can not show the line from the source code. These errors do not affect
the program itself in any way whatsoever.

eirik

Thanks very much, that absolutely answers my problem, I seem to have
confused the errors coming from gdb not finding files and errors (or
warnings) from SDL itself.On 02/06/15 19:19, Eirik Byrkjeflot Anonsen wrote:

Sergi Pasoev <@Sergi_Pasoev> writes:

Hi

I found suspicious errors while debugging the program which uses SDL to
display images as SDL_Texture-s as I was trying to make the valgrind
output clean. Namely, SDL_dynapi_procs.h: No such file or directory. And
SDL_render.c: No such file or directory.

A fuller view on error as I got while running the program on gdb:

 SDL_RenderCopyEx (a=0x8074f88, b=0x84f7308, c=0xbfffed70,
 d=0xbfffed60, e=0, f=0x0, g=SDL_FLIP_NONE)
      at
 /build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/dynapi/SDL_dynapi_procs.h:379
 379
 /build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/dynapi/SDL_dynapi_procs.h:
 No such file or directory.
 (gdb) step
 SDL_RenderCopyEx_REAL (renderer=0x8074f88, texture=0x84f7308,
 srcrect=0xbfffed70, dstrect=0xbfffed60, angle=0, center=0x0,
      flip=SDL_FLIP_NONE) at
 /build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/render/SDL_render.c:1694
 1694
 /build/libsdl2-eCW0Dr/libsdl2-2.0.2+dfsg1/src/render/SDL_render.c:
 No such file or directory.

Also, even though I get these errors, all the textures are correctly
loaded and displayed, so it seems to work. Any ideas on why that can be?
Of course, there might be errors in my code that calls SDL_RenderCopyEx,
but still.

I am using SDL 2.0.2 on Debian Gnu/Linux.

Thanks
I assume you only get those errors when you stop the program in gdb?

These error messages means that gdb can’t find the mentioned file, so it
can not show the line from the source code. These errors do not affect
the program itself in any way whatsoever.

eirik


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org