Comments (5)
Memory allocations:
21: Allocation 0: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 1: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 2: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 3: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 4: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 5: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 6: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 7: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 8: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 9: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 10: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Allocation 11: 400 bytes
21: 0x7eff9a74b146: SDL_calloc_REAL+0x16
21: 0x7eff9a71c3ff: GPU_CreateRenderer+0x3f
21: 0x7eff9a70f905: SDL_CreateRendererWithProperties_REAL+0x495
21: 0x7eff9a70fabf: SDL_CreateRenderer_REAL+0x3f
21: 0x55f7ad7ca40f: InitCreateRenderer+0x6f
21: 0x55f7ad7e7919: SDLTest_RunSuites+0x739
21: 0x55f7ad7afa04: main+0x314
21: 0x7eff9a483083: __libc_start_main+0xf3
21: 0x55f7ad7afb5e: _start+0x2e
21: Total: 4.69 Kb in 12 allocations
from sdl.
These leaks were introduced in 40d8510
GPU_DestroyRenderer()
was supposed to take care of freeing all the sub-allocations, but for some reason the call was removed.
from sdl.
The higher level code will clean up the renderer if initialization fails.
This isn't happening because some failure conditions are checked before renderer->DestroyRenderer
is initialized.
from sdl.
The higher level code will clean up the renderer if initialization fails.
This isn't happening because some failure conditions are checked before
renderer->DestroyRenderer
is initialized.
Ah, yes, the renderer needs to be updated to match the pattern of the others. I can do that.
from sdl.
from sdl.
Related Issues (20)
- Direct3d12 renderer backend only renders black windows HOT 1
- Names of gpu backends don't match those of the 2d renderer backend HOT 3
- GPU Metal: Remove calloc usages HOT 1
- Nintendo NSO N64 Controller Mapping in Linux
- GPU: API does not follow the SDL3 naming conventions HOT 2
- Metal shader compilation issues with the SDL_Renderer GPU backend HOT 2
- Coding c++ HOT 1
- GPU: {Begin,End}GPURenderPass is a bit stinky HOT 8
- Binary representation of `SDL_bool` is not clear HOT 2
- `SDL_gpu.h` flags enums don't follow convention HOT 1
- KMSDRM fails to load libdrm HOT 5
- SDL_HINT_X11_XCB_LIBRARY should default to libX11-xcb.so.1 on most platforms HOT 1
- SDL3/android: "Return" software key press no longer synthesises a `SDL_EVENT_KEY_DOWN` with `SDL_SCANCODE_RETURN` + `SDLK_RETURN`
- No way to set function to use for aligned allocations, and arguments for free HOT 3
- SDL_GetGPUDriver should return a string HOT 3
- GPU: Reference stencil should be dynamic
- SDL3: Add float versions of the alpha opaque/transparent constants
- GPU Vulkan: using `R11G11B10_UFLOAT` for a colour target or storage texture causes validation errors HOT 3
- Parameter 'window' is invalid when using SDL_CreateRendererWithProperties() HOT 1
- SDL3: SDL_ConvertEventToRenderCoordinates doesn't work with SDL_AppEvent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.