Comments (5)
I think the issue here is non-intuitive struct padding caused by the change of SDL_bool to a 1-byte type. I'll look into this.
from sdl.
from sdl.
I can relate to this issue using Odin Language, in my case the attachmentInfo
becames invalid in the SDL side, acctually everything after depthStencilState
turn invalid.
Using an AddressSanitizer I got this information:
==13132==ERROR: AddressSanitizer: access-violation on unknown address 0x000000000000 (pc 0x7ffb35e7459d bp 0x0036f86ff020 sp 0x0036f86fede0 T0)
==13132==The signal is caused by a READ memory access.
==13132==Hint: address points to the zero page.
#0 0x7ffb35e7459c in SDL_CreateGPUGraphicsPipeline_REAL \cpp\SDL\src\gpu\SDL_gpu.c:650
#1 0x7ffb35e376ae in SDL_CreateGPUGraphicsPipeline \cpp\SDL\src\dynapi\SDL_dynapi_procs.h:135
#2 0x7ff70260a691 in sdl3.create_gpu_graphics_pipeline \odin\sdl3-odin\sdl3\sdl_gpu.odin:1118:14
#3 0x7ff70259c6b1 in gpu_basic_triangle.init \basic_triangle.odin:59:22
#4 0x7ff70259ce69 in gpu_basic_triangle.main \basic_triangle.odin:80:2
#5 0x7ff7025f3c4e in main \base\runtime\entry_windows.odin:46:4
#6 0x7ff70265b03b in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
#7 0x7ff70265b03b in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
#8 0x7ffb85ac257c (C:\Windows\System32\KERNEL32.DLL+0x18001257c)
#9 0x7ffb8708af27 (C:\Windows\SYSTEM32\ntdll.dll+0x18005af27)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: access-violation \cpp\SDL\src\gpu\SDL_gpu.c:650 in SDL_CreateGPUGraphicsPipeline_REAL
==13132==ABORTING
Line to the breakpoint:
After more debugging on my side using raddbg, I see a padding before attachmentInfo
, not sure if its a compiler optimization or ui bug:
from sdl.
It works when I specify the bool fields as 1-byte:
from sdl.
PR: #10701
from sdl.
Related Issues (20)
- Move gendynapi? HOT 2
- SDL3: Crash when calling SDL_RenderPresent() HOT 4
- [GPU] Feature request: Clear API HOT 1
- Clarify expected behavior of `SDL_strtol` and friends HOT 4
- Guitar button not working (Rock Band)
- Request for more information on using SDL2 with Xcode HOT 2
- GPU: Cubemap arrays?
- SDL3: Mutex seems to be broken HOT 2
- SDL3: Since recently it seems that a newly created texture is not initialised anymore HOT 7
- SDL3: SDL_assert should have optional error message HOT 4
- GPU: D3D12 backend log spam when clearing depth buffer to nonzero value HOT 5
- Error creating SDL window, Emulationstation fails to launch on RK3399 hardware HOT 2
- SDL2 Window not appearing on RockyLinux9 HOT 7
- Enum inconsistencies
- SDL_hidapi.h doesn't conform to standard SDL naming scheme HOT 1
- Omitting multisample_state in SDL_GPUGraphicsPipelineCreateInfo will mask with 0x00 HOT 3
- [Feature Request] SDL3 GPU Backend for WebGPU Target HOT 9
- testautomation_surface.c: SDLTest_AssertCheck() is always true HOT 1
- SDL3 SDL_malloc.c #define FORCEINLINE problem HOT 7
- -Wcast-function-type warnings HOT 8
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.