We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5199

Summary: [PATCH][KMSDRM] Fix KMSDRM_CreateWindow() segfault when starting LÖVE2D engine.
Product: SDL Reporter: Manuel Alfayate Corchete <redwindwanderer>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Linux   
Attachments: Small patch that fixes KMSDRM_CreateWindow to avoid segfaults

Description Manuel Alfayate Corchete 2020-06-18 21:06:46 UTC
Created attachment 4389 [details]
Small patch that fixes KMSDRM_CreateWindow to avoid segfaults

Hi,

This small patch fixes the KMSDRM_CreateSurfaces() call in KMSDRM_CreateWindow(), that was segfaulting deeper into SDL internals because the windata->viddata pointer wasn't set before the KMSDRM_CreateSurfaces() call.
So that's what this small patch does.

Now, LÖVE2D works perfectly well on the Raspberry Pi 3, instead of just segfaulting.

Please merge.
Comment 1 Sam Lantinga 2020-06-19 17:38:09 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/fb6395c49ce9