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 4402 - Window not updated after first frame
Summary: Window not updated after first frame
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Windows 10
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-29 18:06 UTC by Michel Rouzic
Modified: 2018-12-03 14:27 UTC (History)
1 user (show)

See Also:


Attachments
Program with source that reproduces the problem described depending on the DLL (1.91 MB, application/zip)
2018-11-29 18:06 UTC, Michel Rouzic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Rouzic 2018-11-29 18:06:32 UTC
Created attachment 3512 [details]
Program with source that reproduces the problem described depending on the DLL

Another day another bug, but this time I didn't come empty-handed. Since these two November 1st commits by Ryan C. Gordon:
https://hg.libsdl.org/SDL/rev/dc9108cd43403628a5f747b8ce18443c5459ff93
https://hg.libsdl.org/SDL/rev/03d0bddca61b8a6bcbbc7c7f1382dfa97756a7a4

my program's display fails to update after the first frame. The good news is that I was able to produce a test program with a very simple and beautiful code that reproduces the problem, with DLLs included that either work (those from before those commits) or don't. If I enlarge the window (not included in the test program, I wanted to keep it to the point) then SDL_LockTexture() returns a bogus pointer that can't be written to.

I marked it as major because well for me it's pretty major, I can't ship my program any version of SDL made after November 1st. I've only checked on Windows 10, it's probably a Windows-only thing. Please read instructions.txt to test it with different DLLs.
Comment 1 Ryan C. Gordon 2018-12-03 06:59:11 UTC
This is now fixed in https://hg.libsdl.org/SDL/rev/3da9ecf40a13, thanks!

--ryan.
Comment 2 Michel Rouzic 2018-12-03 10:24:18 UTC
Thank you, that mostly solves it, however now when resizing the window in any direction the window turns permanently white. I updated my code to handle resizing properly but then I realised that the bug appears regardless, so the test program you have should give you that issue with the latest DLL.
Comment 3 Ryan C. Gordon 2018-12-03 14:27:17 UTC
(In reply to Michel Rouzic from comment #2)
> Thank you, that mostly solves it, however now when resizing the window in
> any direction the window turns permanently white. I updated my code to
> handle resizing properly but then I realised that the bug appears
> regardless, so the test program you have should give you that issue with the
> latest DLL.

This bug is fixed now, too: https://hg.libsdl.org/SDL/rev/f167f874ae55

Sorry about that!

--ryan.