Sdl_seterror: Not Enough Video Memory


efegea

Active Member
Joined
Aug 8, 2005
Messages
636
Age
39
Location
GP32Spain, Spain
Hi,

I compiled paeryn's SDL with official GPH SDK. I had to put all the .so files on my working dir. Now it runs, but I'm getting a weird error..

Code:
[root@gp2x kurayagi]$SDL_DEBUG=true ./kurayagi.gpe
SDL_GP2X: CreateDevice
SDL_GP2X: VideoInit
SDL_GP2X: Physical screen = 320x240 (ilace = 0)
SDL_GP2X: Looking for a mouse
SDL_GP2X: No mice found
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x58b70 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_SetError: Not enough video memory				  <--------------------------
SDL_SYS_JoystickInit
SDL init OK
Joystick open OK
TTF init OK
SDL_GP2X: ListModes
SDL_GP2X: Setting video mode 320x240 16 bpp, flags=40000001
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: InitHWSurfaces 0x40647000, 4931584
SDL_GP2X: Screen bucket 0x580f4
SDL_GP2X: First free bucket 0x5fe30 (size = 4931584)
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x72740 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4931328 bytes @ 0x72758
SDL_GP2X: SurfaceManager allocated 256 bytes at 0x40647000
video mem: 5116 kb						<--------------------------

The "video mem" bit it's code I added (accesing to a SDL_VideoInfo struct video_mem member)

I have 14MB of RAM free when running the app. After loading a few surfaces into ram (5MB, I think) the app segfaults (SDL Parachute Deployed)
 
Hi,

I compiled paeryn's SDL with official GPH SDK. I had to put all the .so files on my working dir. Now it runs, but I'm getting a weird error..

Code:
[root@gp2x kurayagi]$SDL_DEBUG=true ./kurayagi.gpe
SDL_GP2X: CreateDevice
SDL_GP2X: VideoInit
SDL_GP2X: Physical screen = 320x240 (ilace = 0)
SDL_GP2X: Looking for a mouse
SDL_GP2X: No mice found
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x58b70 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_SetError: Not enough video memory				  <--------------------------
SDL_SYS_JoystickInit
SDL init OK
Joystick open OK
TTF init OK
SDL_GP2X: ListModes
SDL_GP2X: Setting video mode 320x240 16 bpp, flags=40000001
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: InitHWSurfaces 0x40647000, 4931584
SDL_GP2X: Screen bucket 0x580f4
SDL_GP2X: First free bucket 0x5fe30 (size = 4931584)
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x72740 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4931328 bytes @ 0x72758
SDL_GP2X: SurfaceManager allocated 256 bytes at 0x40647000
video mem: 5116 kb						<--------------------------

The "video mem" bit it's code I added (accesing to a SDL_VideoInfo struct video_mem member)

I have 14MB of RAM free when running the app. After loading a few surfaces into ram (5MB, I think) the app segfaults (SDL Parachute Deployed)

His libs only support upto 5mb of memory for HardWare Surfaces. He is working on getting at least 21mb but for now you have to keep it at 5mb or use all software.
 
Last edited by a moderator:
Back
Top